m2tstoavi/m2tstoavi.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 85
e6a1cd7ed6ba
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     1 ##
     2 ##  m2tstoavi.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    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
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   package versions
    25 %define       V_m2tstoavi_jm  18.4
    27 #   package information
    28 Name:         m2tstoavi
    29 Summary:      AVCHD Video File Conversion Kit
    30 URL:          http://www.olmosconsulting.com/hdr-sr1/
    31 Vendor:       Axel Olmos
    32 Packager:     Michael Schloh von Bennewitz
    33 Distribution: Europalab Production
    34 Class:        EVAL
    35 Group:        Video
    36 License:      Unknown
    37 Version:      1
    38 Release:      20120800
    40 #   list of sources
    41 Source0:      http://www.olmosconsulting.com/m2ts.tar.gz
    42 Source1:      http://www.w6rz.net/xport.zip
    43 Source2:      http://iphome.hhi.de/suehring/tml/download/jm%{V_m2tstoavi_jm}.zip
    45 #   build information
    46 BuildPreReq:  OpenPKG, openpkg >= 20100101, make, infozip
    47 PreReq:       OpenPKG, openpkg >= 20100101, ffmpeg, tcsh
    49 %description
    50     M2ts is for people who have recorded .m2ts videos using a high
    51     definition camcorder and want to play them on their computer,
    52     or want to convert them to another format.
    54 %track
    55     prog m2tstoavi = {
    56         version   = %{version}
    57         url       = http://www.olmosconsulting.com/
    58         regex     = m2ts\.tar\.gz
    59     }
    61 %prep
    62     %setup -q -c %{name}
    63     %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip}
    64     %{l_prefix}/bin/unzip -x %{SOURCE jm%{V_m2tstoavi_jm}.zip}
    65     %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/*
    66     %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj
    68 %build
    69     #   build package
    70     ( cd xport
    71       %{l_cc} -o xporthdmv xport.c
    72     ) || exit $?
    73     ( cd JM/ldecod
    74       touch dependencies
    75       %{l_make} %{l_mflags -O} bin
    76     ) || exit $?
    78 %install
    79     #   create installation tree
    80     %{l_shtool} mkdir -f -p -m 755 \
    81         $RPM_BUILD_ROOT%{l_prefix}/bin
    83     #   install package
    84     %{l_shtool} install -c -s -m 755 \
    85         JM/bin/ldecod.exe $RPM_BUILD_ROOT%{l_prefix}/bin/ldecod
    86     %{l_shtool} install -c -s -m 755 \
    87         xport/xporthdmv $RPM_BUILD_ROOT%{l_prefix}/bin/xporthdmv
    88     %{l_shtool} install -c -m 755 \
    89         m2ts/m2tstoavi.fifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-fifo
    90     %{l_shtool} install -c -m 755 \
    91         m2ts/m2tstoavi.nofifo $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-nofifo
    92     %{l_shtool} install -c -m 755 \
    93         m2ts/m2tstoavi.mencoder $RPM_BUILD_ROOT%{l_prefix}/bin/m2tstoavi-mencoder
    95     #   determine installation files
    96     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    98 %files -f files
   100 %clean

mercurial