Modernize packaging and use newely appeared versioned tarball URI.

Tue, 28 Aug 2012 18:33:30 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:33:30 +0200
changeset 558
d05aa91cd793
parent 557
00e3ab20fe25
child 559
5366946896cd

Modernize packaging and use newely appeared versioned tarball URI.

m2tstoavi/m2tstoavi.spec file | annotate | diff | comparison | revisions
     1.1 --- a/m2tstoavi/m2tstoavi.spec	Tue Aug 28 18:33:20 2012 +0200
     1.2 +++ b/m2tstoavi/m2tstoavi.spec	Tue Aug 28 18:33:30 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  m2tstoavi.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -21,6 +21,9 @@
    1.12  ##  SUCH DAMAGE.
    1.13  ##
    1.14  
    1.15 +#   package versions
    1.16 +%define       V_m2tstoavi_jm  18.4
    1.17 +
    1.18  #   package information
    1.19  Name:         m2tstoavi
    1.20  Summary:      AVCHD Video File Conversion Kit
    1.21 @@ -32,20 +35,16 @@
    1.22  Group:        Video
    1.23  License:      Unknown
    1.24  Version:      1
    1.25 -Release:      20081128
    1.26 +Release:      20120800
    1.27  
    1.28  #   list of sources
    1.29  Source0:      http://www.olmosconsulting.com/m2ts.tar.gz
    1.30  Source1:      http://www.w6rz.net/xport.zip
    1.31 -Source2:      http://iphome.hhi.de/suehring/tml/download/jm14.2.zip
    1.32 +Source2:      http://iphome.hhi.de/suehring/tml/download/jm%{V_m2tstoavi_jm}.zip
    1.33  
    1.34  #   build information
    1.35 -Prefix:       %{l_prefix}
    1.36 -BuildRoot:    %{l_buildroot}
    1.37 -BuildPreReq:  OpenPKG, openpkg >= 20040130, make, infozip
    1.38 -PreReq:       OpenPKG, openpkg >= 20040130, ffmpeg, tcsh
    1.39 -AutoReq:      no
    1.40 -AutoReqProv:  no
    1.41 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make, infozip
    1.42 +PreReq:       OpenPKG, openpkg >= 20100101, ffmpeg, tcsh
    1.43  
    1.44  %description
    1.45      M2ts is for people who have recorded .m2ts videos using a high
    1.46 @@ -62,7 +61,7 @@
    1.47  %prep
    1.48      %setup -q -c %{name}
    1.49      %{l_prefix}/bin/unzip -x -d xport %{SOURCE xport.zip}
    1.50 -    %{l_prefix}/bin/unzip -x %{SOURCE jm14.0.zip}
    1.51 +    %{l_prefix}/bin/unzip -x %{SOURCE jm%{V_m2tstoavi_jm}.zip}
    1.52      %{l_shtool} subst -e 's;/bin/csh;%{l_prefix}/bin/tcsh;' m2ts/*
    1.53      %{l_shtool} mkdir -f -p -m 755 JM/ldecod/obj
    1.54  
    1.55 @@ -77,8 +76,6 @@
    1.56      ) || exit $?
    1.57  
    1.58  %install
    1.59 -    rm -rf $RPM_BUILD_ROOT
    1.60 -
    1.61      #   create installation tree
    1.62      %{l_shtool} mkdir -f -p -m 755 \
    1.63          $RPM_BUILD_ROOT%{l_prefix}/bin
    1.64 @@ -101,5 +98,4 @@
    1.65  %files -f files
    1.66  
    1.67  %clean
    1.68 -    rm -rf $RPM_BUILD_ROOT
    1.69  

mercurial