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