4 %bcond_without static_libs # don't build static library
5 %bcond_without xmms # don't build XMMS plugin
7 Summary: Free Lossless Audio Codec
8 Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
12 License: BSD (libFLAC/libFLAC++), GPL (programs and plugins)
14 Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
15 # Source0-md5: b084603948b60ee338e0c29978cc580c
16 Patch0: %{name}-link.patch
17 Patch1: %{name}-without_xmms.patch
18 URL: http://flac.sourceforge.net/
19 BuildRequires: autoconf
20 BuildRequires: automake >= 1:1.7
22 BuildRequires: gettext-devel
23 BuildRequires: libogg-devel >= 2:1.0
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtool >= 2:1.4d-3
26 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
27 %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
33 %description -l pl.UTF-8
34 FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
38 Summary: FLAC - development files
39 Summary(pl.UTF-8): FLAC - pliki nagłówkowe
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: libogg-devel >= 2:1.0
45 #Requires: libstdc++-devel
48 The package contains the development header files for FLAC libraries.
50 %description devel -l pl.UTF-8
51 Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
54 Summary: FLAC - static libraries
55 Summary(pl.UTF-8): FLAC - biblioteki statyczne
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 The package contains FLAC static libraries.
63 %description static -l pl.UTF-8
64 Ten pakiet zawiera biblioteki statyczne FLAC.
66 %package -n xmms-input-flac
67 Summary: Free Lossless Audio Codec - XMMS plugin
68 Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
71 Requires: %{name} = %{version}-%{release}
74 %description -n xmms-input-flac
75 FLAC input plugin for XMMS.
77 %description -n xmms-input-flac -l pl.UTF-8
78 Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
83 %{!?with_xmms:%patch1 -p1}
92 %{!?with_static_libs:--disable-static}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 # no makefiles in doc dirs
103 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
104 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
115 %lang(ru) %doc doc/html/ru
116 %attr(755,root,root) %{_bindir}/flac
117 %attr(755,root,root) %{_bindir}/metaflac
118 %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
119 %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
120 %{_mandir}/man1/flac.1*
121 %{_mandir}/man1/metaflac.1*
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libFLAC.so
126 %attr(755,root,root) %{_libdir}/libFLAC++.so
127 %{_libdir}/libFLAC.la
128 %{_libdir}/libFLAC++.la
130 %{_includedir}/FLAC++
131 %{_aclocaldir}/libFLAC.m4
132 %{_aclocaldir}/libFLAC++.m4
134 %if %{with static_libs}
136 %defattr(644,root,root,755)
138 %{_libdir}/libFLAC++.a
142 %files -n xmms-input-flac
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so