1 # maybe TODO: split (c++, ogg?)
4 %bcond_without xmms # don't build XMMS plugin
6 Summary: Free Lossless Audio Codec
7 Summary(pl): Free Lossless Audio Codec - Wolnodostêpny bezstratny kodek audio
13 Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
14 # Source0-md5: c6ccddccf8ad344065698047c2fc7280
15 Patch0: %{name}-without_xmms.patch
16 URL: http://flac.sourceforge.net/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 %{?with_xmms:BuildRequires: id3lib-devel >= 3.8.0}
20 BuildRequires: libogg-devel >= 1:1.0
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.4d-3
23 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
24 %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
31 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
35 Summary: FLAC - development files
36 Summary(pl): FLAC - pliki nag³ówkowe
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 The package contains the development header files for FLAC libraries.
43 %description devel -l pl
44 Ten pakiet zawiera pliki nag³ówkowe bibliotek FLAC.
47 Summary: FLAC - static libraries
48 Summary(pl): FLAC - biblioteki statyczne
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 The package contains FLAC static libraries.
55 %description static -l pl
56 Ten pakiet zawiera biblioteki statyczne FLAC.
58 %package -n xmms-input-flac
59 Summary: Free Lossless Audio Codec - XMMS plugin
60 Summary(pl): Wtyczka FLAC dla XMMS
63 Requires: %{name} = %{version}-%{release}
66 %description -n xmms-input-flac
67 FLAC input plugin for XMMS.
69 %description -n xmms-input-flac -l pl
70 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
74 %{!?with_xmms:%patch0 -p1}
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 # no makefiles in doc dirs
92 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
93 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %doc AUTHORS README doc/html/{*.html,images}
104 %lang(ru) %doc doc/html/ru
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/lib*.so
117 %defattr(644,root,root,755)
121 %files -n xmms-input-flac
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{xmms_input_plugindir}/*.so