3 %bcond_without static_libs # don't build static library
4 %bcond_without xmms # don't build XMMS plugin
6 Summary: Free Lossless Audio Codec
7 Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
11 License: BSD (libFLAC/libFLAC++), GPL (programs and plugins)
13 Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
14 # Source0-md5: 153c8b15a54da428d1f0fadc756c22c7
15 Patch0: %{name}-without_xmms.patch
16 Patch1: %{name}-lt.patch
17 Patch2: %{name}-gcc44.patch
18 Patch3: crbug-111390.patch
19 Patch4: deb-643377.patch
20 URL: http://flac.sourceforge.net/
21 BuildRequires: autoconf
22 BuildRequires: automake >= 1:1.7
24 BuildRequires: gettext-devel
25 BuildRequires: libogg-devel >= 2:1.0
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool >= 2:1.4d-3
28 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
29 %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
35 %description -l pl.UTF-8
36 FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
40 Summary: FLAC - development files
41 Summary(pl.UTF-8): FLAC - pliki nagłówkowe
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: libogg-devel >= 2:1.0
47 #Requires: libstdc++-devel
50 The package contains the development header files for FLAC libraries.
52 %description devel -l pl.UTF-8
53 Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
56 Summary: FLAC - static libraries
57 Summary(pl.UTF-8): FLAC - biblioteki statyczne
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 The package contains FLAC static libraries.
65 %description static -l pl.UTF-8
66 Ten pakiet zawiera biblioteki statyczne FLAC.
69 Summary: FLAC++ - C++ API for FLAC codec
70 Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
72 Requires: %{name} = %{version}-%{release}
75 FLAC++ - C++ API for FLAC codec.
77 %description c++ -l pl.UTF-8
78 FLAC++ - API C++ do kodeka FLAC.
81 Summary: Header files for FLAC++ library
82 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
83 Group: Development/Libraries
84 Requires: %{name}-c++ = %{version}-%{release}
85 Requires: %{name}-devel = %{version}-%{release}
87 %description c++-devel
88 Header files for FLAC++ library.
90 %description c++-devel -l pl.UTF-8
91 Pliki nagłówkowe biblioteki FLAC++.
94 Summary: Static FLAC++ library
95 Summary(pl.UTF-8): Statyczna biblioteka FLAC++
96 Group: Development/Libraries
97 Requires: %{name}-c++-devel = %{version}-%{release}
99 %description c++-static
100 Static FLAC++ library.
102 %description c++-static -l pl.UTF-8
103 Statyczna biblioteka FLAC++.
105 %package -n xmms-input-flac
106 Summary: Free Lossless Audio Codec - XMMS plugin
107 Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
110 Requires: %{name} = %{version}-%{release}
113 %description -n xmms-input-flac
114 FLAC input plugin for XMMS.
116 %description -n xmms-input-flac -l pl.UTF-8
117 Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
121 %{!?with_xmms:%patch0 -p1}
136 %{!?with_static_libs:--disable-static}
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT
146 # no makefiles in doc dirs
147 rm -f doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*}
148 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
151 rm -rf $RPM_BUILD_ROOT
153 %post -p /sbin/ldconfig
154 %postun -p /sbin/ldconfig
156 %post c++ -p /sbin/ldconfig
157 %postun c++ -p /sbin/ldconfig
160 %defattr(644,root,root,755)
161 %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
162 %lang(ru) %doc doc/html/ru
163 %attr(755,root,root) %{_bindir}/flac
164 %attr(755,root,root) %{_bindir}/metaflac
165 %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
166 %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
167 %{_mandir}/man1/flac.1*
168 %{_mandir}/man1/metaflac.1*
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/libFLAC.so
173 %{_libdir}/libFLAC.la
175 %{_pkgconfigdir}/flac.pc
176 %{_aclocaldir}/libFLAC.m4
178 %if %{with static_libs}
180 %defattr(644,root,root,755)
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
187 %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/libFLAC++.so
192 %{_libdir}/libFLAC++.la
193 %{_includedir}/FLAC++
194 %{_pkgconfigdir}/flac++.pc
195 %{_aclocaldir}/libFLAC++.m4
197 %if %{with static_libs}
199 %defattr(644,root,root,755)
200 %{_libdir}/libFLAC++.a
204 %files -n xmms-input-flac
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so