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: 2bfc127cdda02834d0491ab531a20960
15 Patch0: %{name}-without_xmms.patch
16 Patch1: %{name}-read_only_relocs.patch
17 URL: http://flac.sourceforge.net/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: gettext-devel
21 BuildRequires: libogg-devel >= 2:1.0
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool >= 2:1.4d-3
24 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
25 %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 FLAC is an Open Source lossless audio codec developed by Josh Coalson.
32 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
36 Summary: FLAC - development files
37 Summary(pl): FLAC - pliki nag³ówkowe
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 The package contains the development header files for FLAC libraries.
44 %description devel -l pl
45 Ten pakiet zawiera pliki nag³ówkowe bibliotek FLAC.
48 Summary: FLAC - static libraries
49 Summary(pl): FLAC - biblioteki statyczne
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 The package contains FLAC static libraries.
56 %description static -l pl
57 Ten pakiet zawiera biblioteki statyczne FLAC.
59 %package -n xmms-input-flac
60 Summary: Free Lossless Audio Codec - XMMS plugin
61 Summary(pl): Wtyczka FLAC dla XMMS
64 Requires: %{name} = %{version}-%{release}
67 %description -n xmms-input-flac
68 FLAC input plugin for XMMS.
70 %description -n xmms-input-flac -l pl
71 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
75 %{!?with_xmms:%patch0 -p1}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 # no makefiles in doc dirs
94 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
95 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS README doc/html/{*.html,images}
106 %lang(ru) %doc doc/html/ru
107 %attr(755,root,root) %{_bindir}/*
108 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so
119 %defattr(644,root,root,755)
123 %files -n xmms-input-flac
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{xmms_input_plugindir}/*.so