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 v2+ (programs and plugins)
13 Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
14 # Source0-md5: 13b5c214cee8373464d3d65dee362cdd
15 URL: http://xiph.org/flac/
16 BuildRequires: autoconf >= 2.60
17 BuildRequires: automake >= 1:1.11
19 BuildRequires: gettext-devel
20 BuildRequires: libogg-devel >= 2:1.0
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:2
23 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
24 BuildRequires: tar >= 1:1.22
25 %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
32 %description -l pl.UTF-8
33 FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
37 Summary: FLAC - development files
38 Summary(pl.UTF-8): FLAC - pliki nagłówkowe
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libogg-devel >= 2:1.0
44 #Requires: libstdc++-devel
47 The package contains the development header files for FLAC libraries.
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
53 Summary: FLAC - static libraries
54 Summary(pl.UTF-8): FLAC - biblioteki statyczne
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 The package contains FLAC static libraries.
62 %description static -l pl.UTF-8
63 Ten pakiet zawiera biblioteki statyczne FLAC.
66 Summary: FLAC++ - C++ API for FLAC codec
67 Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
69 Requires: %{name} = %{version}-%{release}
72 FLAC++ - C++ API for FLAC codec.
74 %description c++ -l pl.UTF-8
75 FLAC++ - API C++ do kodeka FLAC.
78 Summary: Header files for FLAC++ library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
80 Group: Development/Libraries
81 Requires: %{name}-c++ = %{version}-%{release}
82 Requires: %{name}-devel = %{version}-%{release}
84 %description c++-devel
85 Header files for FLAC++ library.
87 %description c++-devel -l pl.UTF-8
88 Pliki nagłówkowe biblioteki FLAC++.
91 Summary: Static FLAC++ library
92 Summary(pl.UTF-8): Statyczna biblioteka FLAC++
93 Group: Development/Libraries
94 Requires: %{name}-c++-devel = %{version}-%{release}
96 %description c++-static
97 Static FLAC++ library.
99 %description c++-static -l pl.UTF-8
100 Statyczna biblioteka FLAC++.
102 %package -n xmms-input-flac
103 Summary: Free Lossless Audio Codec - XMMS plugin
104 Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
107 Requires: %{name} = %{version}-%{release}
108 Requires: xmms >= 0.9.5.1
110 %description -n xmms-input-flac
111 FLAC input plugin for XMMS.
113 %description -n xmms-input-flac -l pl.UTF-8
114 Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
128 --disable-silent-rules \
129 %{?with_static_libs:--enable-static} \
130 %{!?with_xmms:--disable-xmms-plugin}
135 rm -rf $RPM_BUILD_ROOT
138 DESTDIR=$RPM_BUILD_ROOT
140 # no makefiles in doc dirs
141 %{__rm} doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*}
142 %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
143 %if %{with static_libs}
144 %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a
148 rm -rf $RPM_BUILD_ROOT
150 %post -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
153 %post c++ -p /sbin/ldconfig
154 %postun c++ -p /sbin/ldconfig
157 %defattr(644,root,root,755)
158 %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
159 %lang(ru) %doc doc/html/ru
160 %attr(755,root,root) %{_bindir}/flac
161 %attr(755,root,root) %{_bindir}/metaflac
162 %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
164 %{_mandir}/man1/flac.1*
165 %{_mandir}/man1/metaflac.1*
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/libFLAC.so
170 %{_libdir}/libFLAC.la
172 %{_pkgconfigdir}/flac.pc
173 %{_aclocaldir}/libFLAC.m4
175 %if %{with static_libs}
177 %defattr(644,root,root,755)
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
184 %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/libFLAC++.so
189 %{_libdir}/libFLAC++.la
190 %{_includedir}/FLAC++
191 %{_pkgconfigdir}/flac++.pc
192 %{_aclocaldir}/libFLAC++.m4
194 %if %{with static_libs}
196 %defattr(644,root,root,755)
197 %{_libdir}/libFLAC++.a
201 %files -n xmms-input-flac
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so