diff -r 8d4f047ad6f8 -r 52e8b53d33be m2tstoavi/m2tstoavi.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m2tstoavi/m2tstoavi.spec Thu Nov 27 14:27:51 2008 +0100 @@ -0,0 +1,105 @@ +## +## m2tstoavi.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2007 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: m2tstoavi +Summary: AVCHD Video File Conversion Kit +URL: http://www.olmosconsulting.com/hdr-sr1/ +Vendor: Axel Olmos +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Production +Class: EVAL +Group: Video +License: Unknown +Version: 1 +Release: 20080610 + +# list of sources +Source0: http://www.olmosconsulting.com/m2ts.tar.gz +Source1: http://www.w6rz.net/xport.zip +Source2: http://iphome.hhi.de/suehring/tml/download/jm14.2.zip + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, infozip +PreReq: OpenPKG, openpkg >= 20040130, ffmpeg, tcsh +AutoReq: no +AutoReqProv: no + +%description + M2ts is for people who have recorded .m2ts videos using a high + definition camcorder and want to play them on their computer, + or want to convert them to another format. + +%track + prog m2tstoavi = { + version = %{version} + url = http://www.olmosconsulting.com/ + regex = m2ts\.tar\.gz + } + +%prep + %setup -q -c %{name} + %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip} + %{l_prefix}/bin/unzip -x %{SOURCE jm14.0.zip} + %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/* + %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj + +%build + # build package + ( cd xport + %{l_cc} -o xporthdmv xport.c + ) || exit $? + ( cd JM/ldecod + touch dependencies + %{l_make} %{l_mflags -O} bin + ) || exit $? + +%install + rm -rf $RPM_BUILD_ROOT + + # create installation tree + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin + + # install package + %{l_shtool} install -c -s -m 755 \ + JM/bin/ldecod.exe $RPM_BUILD_ROOT%{l_prefix}/bin/ldecod + %{l_shtool} install -c -s -m 755 \ + xport/xporthdmv $RPM_BUILD_ROOT%{l_prefix}/bin/xporthdmv + %{l_shtool} install -c -m 755 \ + m2ts/m2tstoavi.fifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-fifo + %{l_shtool} install -c -m 755 \ + m2ts/m2tstoavi.nofifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-nofifo + %{l_shtool} install -c -m 755 \ + m2ts/m2tstoavi.mencoder $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-mencoder + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +