m2tstoavi/m2tstoavi.spec

changeset 1
52e8b53d33be
child 2
415696e65b05
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/m2tstoavi/m2tstoavi.spec	Thu Nov 27 14:27:51 2008 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +##
     1.5 +##  m2tstoavi.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2007 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         m2tstoavi
    1.29 +Summary:      AVCHD Video File Conversion Kit
    1.30 +URL:          http://www.olmosconsulting.com/hdr-sr1/
    1.31 +Vendor:       Axel Olmos
    1.32 +Packager:     Michael Schloh von Bennewitz
    1.33 +Distribution: Europalab Production
    1.34 +Class:        EVAL
    1.35 +Group:        Video
    1.36 +License:      Unknown
    1.37 +Version:      1
    1.38 +Release:      20080610
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      http://www.olmosconsulting.com/m2ts.tar.gz
    1.42 +Source1:      http://www.w6rz.net/xport.zip
    1.43 +Source2:      http://iphome.hhi.de/suehring/tml/download/jm14.2.zip
    1.44 +
    1.45 +#   build information
    1.46 +Prefix:       %{l_prefix}
    1.47 +BuildRoot:    %{l_buildroot}
    1.48 +BuildPreReq:  OpenPKG, openpkg >= 20040130, infozip
    1.49 +PreReq:       OpenPKG, openpkg >= 20040130, ffmpeg, tcsh
    1.50 +AutoReq:      no
    1.51 +AutoReqProv:  no
    1.52 +
    1.53 +%description
    1.54 +    M2ts is for people who have recorded .m2ts videos using a high
    1.55 +    definition camcorder and want to play them on their computer,
    1.56 +    or want to convert them to another format.
    1.57 +
    1.58 +%track
    1.59 +    prog m2tstoavi = {
    1.60 +        version   = %{version}
    1.61 +        url       = http://www.olmosconsulting.com/
    1.62 +        regex     = m2ts\.tar\.gz
    1.63 +    }
    1.64 +
    1.65 +%prep
    1.66 +    %setup -q -c %{name}
    1.67 +    %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip}
    1.68 +    %{l_prefix}/bin/unzip -x %{SOURCE jm14.0.zip}
    1.69 +    %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/*
    1.70 +    %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj
    1.71 +
    1.72 +%build
    1.73 +    #   build package
    1.74 +    ( cd xport
    1.75 +      %{l_cc} -o xporthdmv xport.c
    1.76 +    ) || exit $?
    1.77 +    ( cd JM/ldecod
    1.78 +      touch dependencies
    1.79 +      %{l_make} %{l_mflags -O} bin
    1.80 +    ) || exit $?
    1.81 +
    1.82 +%install
    1.83 +    rm -rf $RPM_BUILD_ROOT
    1.84 +
    1.85 +    #   create installation tree
    1.86 +    %{l_shtool} mkdir -f -p -m 755 \
    1.87 +        $RPM_BUILD_ROOT%{l_prefix}/bin
    1.88 +
    1.89 +    #   install package
    1.90 +    %{l_shtool} install -c -s -m 755 \
    1.91 +        JM/bin/ldecod.exe $RPM_BUILD_ROOT%{l_prefix}/bin/ldecod
    1.92 +    %{l_shtool} install -c -s -m 755 \
    1.93 +        xport/xporthdmv $RPM_BUILD_ROOT%{l_prefix}/bin/xporthdmv
    1.94 +    %{l_shtool} install -c -m 755 \
    1.95 +        m2ts/m2tstoavi.fifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-fifo
    1.96 +    %{l_shtool} install -c -m 755 \
    1.97 +        m2ts/m2tstoavi.nofifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-nofifo
    1.98 +    %{l_shtool} install -c -m 755 \
    1.99 +        m2ts/m2tstoavi.mencoder $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-mencoder
   1.100 +
   1.101 +    #   determine installation files
   1.102 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.103 +
   1.104 +%files -f files
   1.105 +
   1.106 +%clean
   1.107 +    rm -rf $RPM_BUILD_ROOT
   1.108 +

mercurial