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 Patch2: %{name}-plugin_xmms.patch
18 URL: http://flac.sourceforge.net/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: gettext-devel
22 BuildRequires: libogg-devel >= 2:1.0
23 BuildRequires: libstdc++-devel
24 BuildRequires: libtool >= 2:1.4d-3
25 %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
26 %{?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.
33 FLAC jest bezstratnym kodekiem audio z otwartymi ¼ród³ami, rozwijanym
37 Summary: FLAC - development files
38 Summary(pl): FLAC - pliki nag³ówkowe
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 The package contains the development header files for FLAC libraries.
45 %description devel -l pl
46 Ten pakiet zawiera pliki nag³ówkowe bibliotek FLAC.
49 Summary: FLAC - static libraries
50 Summary(pl): FLAC - biblioteki statyczne
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 The package contains FLAC static libraries.
57 %description static -l pl
58 Ten pakiet zawiera biblioteki statyczne FLAC.
60 %package -n xmms-input-flac
61 Summary: Free Lossless Audio Codec - XMMS plugin
62 Summary(pl): Wtyczka FLAC dla XMMS
65 Requires: %{name} = %{version}-%{release}
68 %description -n xmms-input-flac
69 FLAC input plugin for XMMS.
71 %description -n xmms-input-flac -l pl
72 Wtyczka dla XMMS umo¿liwiaj±ca odtwarzanie plików w formacie FLAC.
76 %{!?with_xmms:%patch0 -p1}
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 # no makefiles in doc dirs
95 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
96 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
99 rm -rf $RPM_BUILD_ROOT
101 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
105 %defattr(644,root,root,755)
106 %doc AUTHORS README doc/html/{*.html,images}
107 %lang(ru) %doc doc/html/ru
108 %attr(755,root,root) %{_bindir}/*
109 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/lib*.so
120 %defattr(644,root,root,755)
124 %files -n xmms-input-flac
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{xmms_input_plugindir}/*.so