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