]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
- really apply opt patch; release 3
[packages/flac.git] / flac.spec
CommitLineData
51cc0dde 1#
2# Conditional build:
ec1aa008
KK
3%bcond_without static_libs # don't build static library
4%bcond_without xmms # don't build XMMS plugin
5f0f203e 5
029ad246 6Summary: Free Lossless Audio Codec
3caef61b 7Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
27b8e245 8Name: flac
aa2c4437 9Version: 1.3.1
3d7e59e8 10Release: 3
e7c3645f 11License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins)
27b8e245 12Group: Libraries
e7c3645f 13Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
aa2c4437 14# Source0-md5: b9922c9a0378c88d3e901b234f852698
061b946c 15Patch0: %{name}-opt.patch
e7c3645f
JB
16URL: http://xiph.org/flac/
17BuildRequires: autoconf >= 2.60
18BuildRequires: automake >= 1:1.11
94159bd9 19# for AM_ICONV
6ca2e66f 20BuildRequires: gettext-devel
61361cc3 21BuildRequires: libogg-devel >= 2:1.0
8c896b25 22BuildRequires: libstdc++-devel
e7c3645f 23BuildRequires: libtool >= 2:2
d878a8f5 24%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
e7c3645f 25BuildRequires: tar >= 1:1.22
d878a8f5 26%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
e7c3645f 27BuildRequires: xz
27b8e245 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a77945de 29
27b8e245 30%description
31FLAC is an Open Source lossless audio codec developed by Josh Coalson.
32
7eefc9db
JR
33%description -l pl.UTF-8
34FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
14d1df27 35przez Josha Coalsona.
27b8e245 36
37%package devel
a77945de 38Summary: FLAC - development files
3caef61b 39Summary(pl.UTF-8): FLAC - pliki nagłówkowe
94159bd9 40License: BSD
27b8e245 41Group: Development/Libraries
4cae232c 42Requires: %{name} = %{version}-%{release}
94159bd9 43Requires: libogg-devel >= 2:1.0
27b8e245 44
45%description devel
d878a8f5 46The package contains the development header files for FLAC libraries.
27b8e245 47
7eefc9db
JR
48%description devel -l pl.UTF-8
49Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
27b8e245 50
51%package static
a77945de 52Summary: FLAC - static libraries
3caef61b 53Summary(pl.UTF-8): FLAC - biblioteki statyczne
94159bd9 54License: BSD
27b8e245 55Group: Development/Libraries
4cae232c 56Requires: %{name}-devel = %{version}-%{release}
27b8e245 57
58%description static
d878a8f5 59The package contains FLAC static libraries.
27b8e245 60
7eefc9db 61%description static -l pl.UTF-8
d878a8f5 62Ten pakiet zawiera biblioteki statyczne FLAC.
27b8e245 63
ef4d7dd5
JB
64%package c++
65Summary: FLAC++ - C++ API for FLAC codec
66Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
67Group: Libraries
68Requires: %{name} = %{version}-%{release}
69
70%description c++
71FLAC++ - C++ API for FLAC codec.
72
73%description c++ -l pl.UTF-8
74FLAC++ - API C++ do kodeka FLAC.
75
76%package c++-devel
77Summary: Header files for FLAC++ library
78Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
79Group: Development/Libraries
80Requires: %{name}-c++ = %{version}-%{release}
81Requires: %{name}-devel = %{version}-%{release}
061b946c 82Requires: libstdc++-devel
ef4d7dd5
JB
83
84%description c++-devel
85Header files for FLAC++ library.
86
87%description c++-devel -l pl.UTF-8
88Pliki nagłówkowe biblioteki FLAC++.
89
90%package c++-static
91Summary: Static FLAC++ library
92Summary(pl.UTF-8): Statyczna biblioteka FLAC++
93Group: Development/Libraries
94Requires: %{name}-c++-devel = %{version}-%{release}
95
96%description c++-static
97Static FLAC++ library.
98
99%description c++-static -l pl.UTF-8
100Statyczna biblioteka FLAC++.
101
27b8e245 102%package -n xmms-input-flac
029ad246 103Summary: Free Lossless Audio Codec - XMMS plugin
3caef61b 104Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
94159bd9 105License: GPL v2+
27b8e245 106Group: Libraries
4cae232c 107Requires: %{name} = %{version}-%{release}
e7c3645f 108Requires: xmms >= 0.9.5.1
27b8e245 109
110%description -n xmms-input-flac
111FLAC input plugin for XMMS.
112
7eefc9db
JR
113%description -n xmms-input-flac -l pl.UTF-8
114Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
27b8e245 115
116%prep
117%setup -q
3d7e59e8 118%patch0 -p1
94159bd9 119
5f0f203e 120%{__rm} m4/ogg.m4
1193aa41 121
27b8e245 122%build
27b8e245 123%{__libtoolize}
4406e427 124%{__aclocal} -I m4
27b8e245 125%{__autoconf}
94159bd9 126%{__autoheader}
27b8e245 127%{__automake}
ec1aa008 128%configure \
e7c3645f
JB
129 --disable-silent-rules \
130 %{?with_static_libs:--enable-static} \
131 %{!?with_xmms:--disable-xmms-plugin}
f06c2744 132
27b8e245 133%{__make}
134
3ee523f4
ER
135rm -rf doc-html
136cp -a doc/html doc-html
137# no makefiles in doc dirs
aa2c4437 138find doc-html -name 'Makefile*' | xargs %{__rm}
3ee523f4 139
27b8e245 140%install
141rm -rf $RPM_BUILD_ROOT
dd43a64f 142%{__make} install \
143 DESTDIR=$RPM_BUILD_ROOT
27b8e245 144
3ee523f4
ER
145%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
146
e7c3645f
JB
147%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
148%if %{with static_libs}
149%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a
150%endif
87900f4c 151
27b8e245 152%clean
dd43a64f 153rm -rf $RPM_BUILD_ROOT
27b8e245 154
155%post -p /sbin/ldconfig
156%postun -p /sbin/ldconfig
157
ef4d7dd5
JB
158%post c++ -p /sbin/ldconfig
159%postun c++ -p /sbin/ldconfig
160
27b8e245 161%files
27b8e245 162%defattr(644,root,root,755)
3ee523f4 163%doc AUTHORS COPYING.Xiph README
94159bd9
JB
164%attr(755,root,root) %{_bindir}/flac
165%attr(755,root,root) %{_bindir}/metaflac
166%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
4406e427 167%attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
94159bd9
JB
168%{_mandir}/man1/flac.1*
169%{_mandir}/man1/metaflac.1*
27b8e245 170
171%files devel
172%defattr(644,root,root,755)
3ee523f4 173%doc doc-html/{*.html,images}
94159bd9 174%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 175%{_libdir}/libFLAC.la
94159bd9 176%{_includedir}/FLAC
3730ca3f 177%{_pkgconfigdir}/flac.pc
94159bd9 178%{_aclocaldir}/libFLAC.m4
27b8e245 179
ec1aa008 180%if %{with static_libs}
27b8e245 181%files static
182%defattr(644,root,root,755)
94159bd9 183%{_libdir}/libFLAC.a
ef4d7dd5
JB
184%endif
185
186%files c++
187%defattr(644,root,root,755)
188%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
4406e427 189%attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
ef4d7dd5
JB
190
191%files c++-devel
192%defattr(644,root,root,755)
193%attr(755,root,root) %{_libdir}/libFLAC++.so
194%{_libdir}/libFLAC++.la
195%{_includedir}/FLAC++
196%{_pkgconfigdir}/flac++.pc
197%{_aclocaldir}/libFLAC++.m4
198
199%if %{with static_libs}
200%files c++-static
201%defattr(644,root,root,755)
94159bd9 202%{_libdir}/libFLAC++.a
ec1aa008 203%endif
27b8e245 204
d878a8f5 205%if %{with xmms}
27b8e245 206%files -n xmms-input-flac
207%defattr(644,root,root,755)
94159bd9 208%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 209%endif
This page took 0.112754 seconds and 4 git commands to generate.