From 3240cf8cef897b3e9a2db5339620ce26525cbdc8 Mon Sep 17 00:00:00 2001 From: djurban Date: Wed, 25 May 2005 19:24:39 +0000 Subject: [PATCH] - initial version 1.2 - obsolets libmusepack, didnt do the cvs mv since i rewrote the spec from scratch - need to check the examples group, maybe Documentation? - for debug build remove only -O3, with gcc4 and location lists -fomitfp doesnt break debug builds - docs in examples subpackage (no need to mess devel with apidocs, some who will want to learn the api will install the exampes pkg anyway) Changed files: libmpcdec.spec -> 1.1 --- libmpcdec.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 libmpcdec.spec diff --git a/libmpcdec.spec b/libmpcdec.spec new file mode 100644 index 0000000..b1a74ab --- /dev/null +++ b/libmpcdec.spec @@ -0,0 +1,108 @@ +Summary: Musepack decoding library +Summary(pl): Biblioteka do dekodowania formatu musepack +Name: libmpcdec +Version: 1.2 +Release: 1 +License: BSD +Group: Libraries +Source0: http://musepack.origean.net/files/source/%{name}-%{version}.tar.bz2 +# Source0-md5: f8465cc807c4d8acca6da250fd4ca9b0 +URL: http://www.musepack.net +BuildRequires: automake +BuildRequires: autoconf +BuildRequires: libtool +Obsoletes: libmusepack +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This library handles decoding of the MPC format, which is an audio +compression format with a strong emphasis on high quality. It's not +lossless, but it is designed for transparency, so that you won't be +able to hear differences between the original wave file and the much +smaller MPC file. It is based on the MPEG-1 Layer-2 / MP2 algorithms, +but since 1997 it has rapidly developed and vastly improved and is now +at an advanced stage in which it contains heavily optimized and +patentless code. + +##%description -l pl + +%package devel +Summary: Header files for libmpcdec +Summary(pl): Pliki nag³ówkowe do biblioteki libmpcdec +Group: Development + +%description devel +Header files for libmpcdec. + +%description devel -l pl +Pliki nag³ówkowe do biblioteki libmpcdec. + +%package static +Summary: Statically linked version of the libmpcdec library +Summary(pl): Statycznie zlinkowana wersja biblioteki libmpcdec +Group: Libraries + +%description static +Statically linked version of the libmpcdec library. + +%description static -l pl +Statycznie zlinkowana wersja biblioteki libmpcdec. + +%package examples +Summary: Example of using libmpcdec with documentation +Summary(pl): Przyk³ad u¿ycia libmpcdec z dokumentacj± +# Which group should be used? +Group: Examples + +%description examples +Example of using libmpcdec with documentation. + +%description examples -l pl +Przyk³ad u¿ycia libmpcdec z dokumentacj±. + +%prep +%setup -q + +%build +%{?debug:%{__sed} -i -e "s,-O3,,g" configure.ac} +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name} +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install src/sample.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog +%attr(755,root,root) %{_libdir}/libmpcdec.so.*.*.* + +%files devel +%defattr(644,root,root,755) +%{_includedir}/mpcdec +%{_libdir}/libmpcdec.so + +%files examples +%doc docs/html +%defattr(644,root,root,755) +%{_examplesdir}/%{name} + +%files static +%defattr(644,root,root,755) +%{_libdir}/libmpcdec.a +%{_libdir}/libmpcdec.la -- 2.44.0