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