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