]> git.pld-linux.org Git - packages/libmpcdec.git/blame - libmpcdec.spec
- download URL, note SV7 format in descriptions
[packages/libmpcdec.git] / libmpcdec.spec
CommitLineData
e9ccf522
KK
1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
4#
baa8dff5
JB
5Summary: Musepack SV7 decoding library
6Summary(pl.UTF-8): Biblioteka do dekodowania formatu musepack SV7
3240cf8c 7Name: libmpcdec
3a226f1c 8Version: 1.2.6
bdbacd8c 9Release: 4
3240cf8c 10License: BSD
11Group: Libraries
baa8dff5 12#Source0Download: https://www.musepack.net/index.php?pg=src
54b7af2c 13Source0: http://files.musepack.net/source/%{name}-%{version}.tar.bz2
3a226f1c 14# Source0-md5: 7f7a060e83b4278acf4b77d7a7b9d2c0
bdbacd8c 15Patch0: ac.patch
54b7af2c 16URL: https://www.musepack.net/
baa8dff5 17BuildRequires: autoconf >= 2.50
3240cf8c 18BuildRequires: automake
3240cf8c 19BuildRequires: libtool
e9ccf522 20BuildRequires: sed >= 4.0
3240cf8c 21Obsoletes: libmusepack
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25This library handles decoding of the MPC format, which is an audio
26compression format with a strong emphasis on high quality. It's not
27lossless, but it is designed for transparency, so that you won't be
28able to hear differences between the original wave file and the much
29smaller MPC file. It is based on the MPEG-1 Layer-2 / MP2 algorithms,
30but since 1997 it has rapidly developed and vastly improved and is now
31at an advanced stage in which it contains heavily optimized and
32patentless code.
33
baa8dff5
JB
34This library handles SV7 (StreamVersion7) format.
35
04a1780e
JR
36%description -l pl.UTF-8
37Ta biblioteka obsługuje dekodowanie formatu MPC, który jest formatem
38kompresji dźwięku z naciskiem na wysoką jakość. Nie jest bezstratny,
39ale jest zaprojektowany dla przezroczystości tak, że nie można
40usłyszeć różnicy między oryginalnym plikiem wave a dużo mniejszym
2dfec635 41plikiem MPC. Jest oparty na algorytmach MPEG-1 Layer-2 / MP2, ale od
04a1780e
JR
421997 roku został znacznie rozwinięty i ulepszony, a teraz jest w
43zaawansowanym stadium, w którym zawiera silnie zoptymalizowany i nie
44objęty patentami kod.
3240cf8c 45
baa8dff5
JB
46Ta biblioteka obsługuje format SV7 (StreamVersion7).
47
3240cf8c 48%package devel
49Summary: Header files for libmpcdec
d3fd1150 50Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki libmpcdec
2dfec635
JB
51Group: Development/Libraries
52Requires: %{name} = %{version}-%{release}
2b76399a 53Obsoletes: libmusepack-devel
3240cf8c 54
55%description devel
56Header files for libmpcdec.
57
04a1780e
JR
58%description devel -l pl.UTF-8
59Pliki nagłówkowe do biblioteki libmpcdec.
3240cf8c 60
61%package static
2dfec635 62Summary: Static version of the libmpcdec library
d3fd1150 63Summary(pl.UTF-8): Statyczna wersja biblioteki libmpcdec
2dfec635
JB
64Group: Development/Libraries
65Requires: %{name}-devel = %{version}-%{release}
2b76399a 66Obsoletes: libmusepack-static
3240cf8c 67
68%description static
2dfec635 69Static version of the libmpcdec library.
3240cf8c 70
04a1780e 71%description static -l pl.UTF-8
2dfec635 72Statyczna wersja biblioteki libmpcdec.
3240cf8c 73
74%package examples
75Summary: Example of using libmpcdec with documentation
d3fd1150 76Summary(pl.UTF-8): Przykład użycia libmpcdec z dokumentacją
d2da02c4 77Group: Documentation
3240cf8c 78
79%description examples
80Example of using libmpcdec with documentation.
81
04a1780e
JR
82%description examples -l pl.UTF-8
83Przykład użycia libmpcdec z dokumentacją.
3240cf8c 84
85%prep
86%setup -q
bdbacd8c 87%patch0 -p1
3240cf8c 88
89%build
d2da02c4 90%{?debug:%{__sed} -i -e "s,-O3 -fomit-frame-pointer,,g" configure.ac}
3240cf8c 91%{__libtoolize}
92%{__aclocal}
93%{__autoconf}
94%{__autoheader}
95%{__automake}
e9ccf522
KK
96%configure \
97 %{!?with_static_libs:--disable-static}
3240cf8c 98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
2dfec635 102install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
3240cf8c 103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
baa8dff5 106cp -p src/sample.cpp $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
3240cf8c 107
108%clean
109rm -rf $RPM_BUILD_ROOT
110
2dfec635
JB
111%post -p /sbin/ldconfig
112%postun -p /sbin/ldconfig
3240cf8c 113
114%files
115%defattr(644,root,root,755)
116%doc AUTHORS ChangeLog
2dfec635 117%attr(755,root,root) %{_libdir}/libmpcdec.so.*.*.*
baa8dff5 118%attr(755,root,root) %ghost %{_libdir}/libmpcdec.so.5
3240cf8c 119
120%files devel
121%defattr(644,root,root,755)
2dfec635
JB
122%attr(755,root,root) %{_libdir}/libmpcdec.so
123%{_libdir}/libmpcdec.la
3240cf8c 124%{_includedir}/mpcdec
3240cf8c 125
e9ccf522 126%if %{with static_libs}
3240cf8c 127%files static
128%defattr(644,root,root,755)
129%{_libdir}/libmpcdec.a
e9ccf522 130%endif
2dfec635
JB
131
132%files examples
2dfec635
JB
133%defattr(644,root,root,755)
134%{_examplesdir}/%{name}-%{version}
This page took 0.110341 seconds and 4 git commands to generate.