twolame/twolame.spec

changeset 1
4667f24fe848
parent 0
4f133201e207
     1.1 --- a/twolame/twolame.spec	Fri Mar 11 21:30:26 2011 +0100
     1.2 +++ b/twolame/twolame.spec	Fri Mar 11 21:36:51 2011 +0100
     1.3 @@ -1,71 +1,66 @@
     1.4 -Name:		twolame
     1.5 -Version:	0.3.12
     1.6 -Release:	5.4
     1.7 -Summary:	TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
     1.8 -Group:		Applications/Multimedia
     1.9 -License:	LGPLv2+
    1.10 -URL:		http://www.twolame.org/
    1.11 -Source:		http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz
    1.12 -BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.13 -BuildRequires:	libsndfile-devel
    1.14 -#BuildRequires:	libtool
    1.15 +Name:           twolame
    1.16 +Summary:        TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
    1.17 +Vendor:         Europalab Software
    1.18 +Packager:       Michael Schloh von Bennewitz
    1.19 +Distribution:   MeeGo Thirdparty
    1.20 +Group:          Applications/Multimedia
    1.21 +Version:        0.3.12
    1.22 +Release:        20101201
    1.23 +License:        LGPLv2+
    1.24 +URL:            http://www.twolame.org/
    1.25 +Source:         http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz
    1.26 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
    1.27 +BuildRequires:  libsndfile-devel
    1.28  
    1.29  %description
    1.30  TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
    1.31 -which in turn is based heavily on
    1.32 -- the ISO dist10 code
    1.33 -- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
    1.34 +which in turn is based heavily on the ISO dist10 code and improvement to
    1.35 +algorithms as part of the LAME project (www.sulaco.org/mp3).
    1.36  
    1.37  This package contains the command line frontend.
    1.38                                                                                  
    1.39  %package libs
    1.40 -Summary:	TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
    1.41 -Group:		System Environment/Libraries
    1.42 -Obsoletes:	%{name} < 0.3.12-1
    1.43 +Summary:    TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
    1.44 +Vendor:     Europalab Software
    1.45 +Packager:   Michael Schloh von Bennewitz
    1.46 +Distribution: MeeGo Thirdparty
    1.47 +Group:      System Environment/Libraries
    1.48 +Obsoletes:  %{name} < 0.3.12-1
    1.49  
    1.50  %description libs
    1.51  TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
    1.52 -which in turn is based heavily on
    1.53 -- the ISO dist10 code
    1.54 -- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
    1.55 +which in turn is based heavily on the ISO dist10 code and improvement to
    1.56 +algorithms as part of the LAME project (www.sulaco.org/mp3).
    1.57  
    1.58  This package contains the shared library.
    1.59  
    1.60  %package devel
    1.61 -Summary:	Development tools for TwoLAME applications
    1.62 -Group:		Development/Libraries
    1.63 -Requires:	%{name}-libs = %{version}-%{release}
    1.64 -Requires:	pkgconfig
    1.65 +Summary:   Development tools for TwoLAME applications
    1.66 +Vendor:    Europalab Software
    1.67 +Packager:   Michael Schloh von Bennewitz
    1.68 +Distribution: MeeGo Thirdparty
    1.69 +Group:     Development/Libraries
    1.70 +Requires:  %{name}-libs = %{version}-%{release}
    1.71 +Requires:  pkgconfig
    1.72  
    1.73  %description devel
    1.74 -This package contains the header files and documentation
    1.75 -needed to develop applications with TwoLAME.
    1.76 +TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
    1.77 +which in turn is based heavily on the ISO dist10 code and improvement to
    1.78 +algorithms as part of the LAME project (www.sulaco.org/mp3).
    1.79 +
    1.80 +This package contains the header files and documentation needed to
    1.81 +develop applications with TwoLAME.
    1.82  
    1.83  %prep
    1.84  %setup -q
    1.85 -# convert manpage to UTF8
    1.86 -pushd doc
    1.87 -iconv -f iso8859-1 -t utf8 %{name}.1 > %{name}.1.utf && mv %{name}.1.utf %{name}.1
    1.88 -# fix HTML docs line endings
    1.89 -for file in html/*.html ; do
    1.90 -	tr -d '\r' <$file >$file.unix && mv $file.unix $file
    1.91 -done
    1.92 -popd
    1.93  
    1.94  %build
    1.95 -#autoreconf -f -i
    1.96 -%configure --disable-static
    1.97 -
    1.98 -# remove rpath from libtool
    1.99 -sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
   1.100 -sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
   1.101 -
   1.102 +%configure
   1.103  %{__make} %{?_smp_mflags}
   1.104  
   1.105  %install
   1.106  rm -rf $RPM_BUILD_ROOT
   1.107  %{__make} DESTDIR=$RPM_BUILD_ROOT install
   1.108 -rm $RPM_BUILD_ROOT%{_libdir}/*.la
   1.109  rm -rf $RPM_BUILD_ROOT%{_docdir}
   1.110  
   1.111  %clean 
   1.112 @@ -89,10 +84,15 @@
   1.113  %defattr(644,root,root,755)
   1.114  %doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt
   1.115  %{_libdir}/pkgconfig/%{name}.pc
   1.116 +%{_libdir}/lib%{name}.a
   1.117 +%{_libdir}/lib%{name}.la
   1.118  %{_libdir}/lib%{name}.so
   1.119  %{_includedir}/%{name}.h
   1.120  
   1.121  %changelog
   1.122 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.3.12-20101201
   1.123 +- Adjust packaging
   1.124 +
   1.125  * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.3.12-5
   1.126  - Build for MeeGo 1.1
   1.127  

mercurial