m2tstoavi/m2tstoavi.spec

changeset 736
f3694f62f433
parent 85
e6a1cd7ed6ba
equal deleted inserted replaced
3:a9c3d085a804 4:5e8e7fc6c8eb
1 ## 1 ##
2 ## m2tstoavi.spec -- OpenPKG RPM Package Specification 2 ## m2tstoavi.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package versions
25 %define V_m2tstoavi_jm 18.4
26
24 # package information 27 # package information
25 Name: m2tstoavi 28 Name: m2tstoavi
26 Summary: AVCHD Video File Conversion Kit 29 Summary: AVCHD Video File Conversion Kit
27 URL: http://www.olmosconsulting.com/hdr-sr1/ 30 URL: http://www.olmosconsulting.com/hdr-sr1/
28 Vendor: Axel Olmos 31 Vendor: Axel Olmos
30 Distribution: Europalab Production 33 Distribution: Europalab Production
31 Class: EVAL 34 Class: EVAL
32 Group: Video 35 Group: Video
33 License: Unknown 36 License: Unknown
34 Version: 1 37 Version: 1
35 Release: 20081128 38 Release: 20120800
36 39
37 # list of sources 40 # list of sources
38 Source0: http://www.olmosconsulting.com/m2ts.tar.gz 41 Source0: http://www.olmosconsulting.com/m2ts.tar.gz
39 Source1: http://www.w6rz.net/xport.zip 42 Source1: http://www.w6rz.net/xport.zip
40 Source2: http://iphome.hhi.de/suehring/tml/download/jm14.2.zip 43 Source2: http://iphome.hhi.de/suehring/tml/download/jm%{V_m2tstoavi_jm}.zip
41 44
42 # build information 45 # build information
43 Prefix: %{l_prefix} 46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, infozip
44 BuildRoot: %{l_buildroot} 47 PreReq: OpenPKG, openpkg >= 20100101, ffmpeg, tcsh
45 BuildPreReq: OpenPKG, openpkg >= 20040130, make, infozip
46 PreReq: OpenPKG, openpkg >= 20040130, ffmpeg, tcsh
47 AutoReq: no
48 AutoReqProv: no
49 48
50 %description 49 %description
51 M2ts is for people who have recorded .m2ts videos using a high 50 M2ts is for people who have recorded .m2ts videos using a high
52 definition camcorder and want to play them on their computer, 51 definition camcorder and want to play them on their computer,
53 or want to convert them to another format. 52 or want to convert them to another format.
60 } 59 }
61 60
62 %prep 61 %prep
63 %setup -q -c %{name} 62 %setup -q -c %{name}
64 %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip} 63 %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip}
65 %{l_prefix}/bin/unzip -x %{SOURCE jm14.0.zip} 64 %{l_prefix}/bin/unzip -x %{SOURCE jm%{V_m2tstoavi_jm}.zip}
66 %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/* 65 %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/*
67 %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj 66 %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj
68 67
69 %build 68 %build
70 # build package 69 # build package
75 touch dependencies 74 touch dependencies
76 %{l_make} %{l_mflags -O} bin 75 %{l_make} %{l_mflags -O} bin
77 ) || exit $? 76 ) || exit $?
78 77
79 %install 78 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 # create installation tree 79 # create installation tree
83 %{l_shtool} mkdir -f -p -m 755 \ 80 %{l_shtool} mkdir -f -p -m 755 \
84 $RPM_BUILD_ROOT%{l_prefix}/bin 81 $RPM_BUILD_ROOT%{l_prefix}/bin
85 82
86 # install package 83 # install package
99 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
100 97
101 %files -f files 98 %files -f files
102 99
103 %clean 100 %clean
104 rm -rf $RPM_BUILD_ROOT
105 101

mercurial