Changes of Revision 4
[-] | Changed | twolame.spec |
x 1
2 # 3 # Please submit bugfixes or comments to toni@links2linux.de 4 5 -# norootforbuild 6 - 7 -Name: twolame 8 -Summary: TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder 9 -Version: 0.3.12 10 -Release: 2.4 11 -License: GPL 12 -Group: Productivity/Multimedia/Sound/Utilities 13 -URL: http://www.twolame.org/ 14 -Source: http://prdownloads.sourceforge.net/twolame/%{name}-%{version}.tar.bz2 15 -BuildRoot: %{_tmppath}/%{name}-%{version}-build 16 -BuildRequires: flac-devel 17 -BuildRequires: libsndfile-devel 18 -BuildRequires: pkgconfig 19 -BuildRequires: autoconf automake 20 +Name: twolame 21 +Version: 0.3.13 22 +%define sonum 0 23 +Release: 2.5 24 +License: LGPL-2.1 25 +Summary: An optimised MPEG Audio Layer 2 (MP2) encoder 26 +Url: http://www.twolame.org/ 27 +Group: Productivity/Multimedia/Sound/Utilities 28 +Source0: http://prdownloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz 29 +Source1: baselibs.conf 30 +BuildRequires: flac-devel 31 +BuildRequires: libsndfile-devel 32 +BuildRequires: pkgconfig 33 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 34 35 %description 36 TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on 37
38 code and portions of LAME. TwoLAME includes libtwolame, a fully 39 thread-safe shared library with an API very similar to LAME's. 40 41 -%package -n libtwolame0 42 -Summary: Shared libraries for TwoLame 43 -Group: System/Libraries 44 +%package -n lib%{name}%{sonum} 45 +Summary: Shared libraries for TwoLame 46 +Group: System/Libraries 47 48 -%description -n libtwolame0 49 +%description -n lib%{name}%{sonum} 50 TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on 51 tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 52 code and portions of LAME. TwoLAME includes libtwolame, a fully 53
54 55 This package contains the shared libraries for TwoLame. 56 57 -%package -n libtwolame-devel 58 -Summary: Include Files and Libraries mandatory for Development 59 -Group: Development/Libraries/C and C++ 60 -Requires: libtwolame0 = %{version} 61 -Provides: twolame-devel = 0.3.10 62 -Obsoletes: twolame-devel < 0.3.10 63 +%package -n lib%{name}-devel 64 +Summary: Include Files and Libraries mandatory for Development 65 +Group: Development/Libraries/C and C++ 66 +Requires: lib%{name}%{sonum} = %{version} 67 +Provides: %{name}-devel = 0.3.10 68 +Obsoletes: %{name}-devel < 0.3.10 69 70 -%description -n libtwolame-devel 71 +%description -n lib%{name}-devel 72 This package contains all necessary include files and libraries needed 73 to develop applications that require these. 74 75 %prep 76 -%setup -q -n %{name}-%{version} 77 -%{?suse_update_config:%{suse_update_config -f}} 78 +%setup -q 79 80 -%__sed -i 's|\r||g' doc/html/*.html 81 -%__chmod 644 doc/html/*.html 82 +sed -i 's|\r||g' doc/html/*.html 83 +chmod 644 doc/html/*.html 84 85 %build 86 %configure --disable-static 87 -%__make %{?jobs:-j%{jobs}} 88 +make %{?_smp_mflags} 89 90 %install 91 %makeinstall 92 93 -%__install -dm 755 %{buildroot}%{_docdir} 94 -%__mv %{buildroot}%{_datadir}/doc/%{name} \ 95 - %{buildroot}%{_docdir}/%{name}-devel 96 +install -dm 755 %{buildroot}%{_docdir} 97 +mv %{buildroot}%{_datadir}/doc/%{name} \ 98 + %{buildroot}%{_docdir}/%{name}-devel 99 100 -%__rm %{buildroot}%{_libdir}/*.la 101 +rm %{buildroot}%{_libdir}/*.la 102 103 %clean 104 -[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot} 105 - 106 -%post -n libtwolame0 -p /sbin/ldconfig 107 +[ -d %{buildroot} -a %{buildroot} != "" ] && rm -rf %{buildroot} 108 109 -%postun -n libtwolame0 -p /sbin/ldconfig 110 +%post -n lib%{name}%{sonum} -p /sbin/ldconfig 111 +%postun -n lib%{name}%{sonum} -p /sbin/ldconfig 112 113 %files 114 %defattr(-,root,root) 115 %doc AUTHORS COPYING ChangeLog README TODO 116 -%{_bindir}/twolame 117 -%{_mandir}/man1/twolame.1* 118 +%{_bindir}/%{name} 119 +%{_mandir}/man1/%{name}.1* 120 121 -%files -n libtwolame0 122 +%files -n lib%{name}%{sonum} 123 %defattr(-,root,root) 124 -%{_libdir}/libtwolame.so.0 125 -%{_libdir}/libtwolame.so.0.*.* 126 +%{_libdir}/lib%{name}.so.%{sonum}* 127 +%{_libdir}/lib%{name}.so.%{sonum} 128 129 -%files -n libtwolame-devel 130 +%files -n lib%{name}-devel 131 %defattr(-,root,root) 132 -%doc %{_docdir}/twolame-devel 133 -%{_includedir}/* 134 -%{_libdir}/libtwolame.so 135 +%doc %{_docdir}/%{name}-devel 136 %{_includedir}/* 137 -%{_libdir}/pkgconfig/twolame.pc 138 +%{_libdir}/lib%{name}.so 139 +%{_libdir}/pkgconfig/%{name}.pc 140 141 %changelog 142 -* Wed Jan 9 2008 toni@links2linux.de 143 -- update to 3.12 144 -- changed package layout according Shared Library Packaging Policy 145 -* Wed Mar 21 2007 toni@links2linux.de 146 -- update to 3.10 147 -* Sun Dec 31 2006 toni@links2linux.de 148 -- update to 3.9 149 -* Sun Sep 17 2006 toni@links2linux.de 150 -- build for packman 151 -* Sat Jul 29 2006 oc2pus@arcor.de 152 -- initial release 0.3.8 153 |
||
[+] | Added | baselibs.conf ^ |
@@ -0,0 +1 @@ +libtwolame0 | ||
Changed | twolame-0.3.13.tar.gz ^ |