1 # TODO: split (c++, ogg?)
5 Summary: Free Lossless Audio Codec
6 Summary(pl): Free Lossless Audio Codec - Darmowy Bezstratny Kodek Audio
12 Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13 Patch0: %{name}-lt.patch
14 Patch1: %{name}-without_xmms.patch
15 URL: http://flac.sourceforge.net/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libogg-devel
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:1.4d
21 %{!?_without_xmms:BuildRequires: xmms-devel}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %if %{!?_without_xmms:1}0
25 %define _xmms_input_path %(xmms-config --input-plugin-dir)
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}
42 The package contains the development header files for flac.
44 %description devel -l pl
45 Ten pakiet zawiera pliki nag³ówkowe biblioteki flac.
48 Summary: FLAC - static libraries
49 Summary(pl): FLAC - biblioteki statyczne
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}
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}
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.
76 %{?_without_xmms:%patch1 -p1}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc doc/html/{*.html,images/{*.gif,*.jpg}}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so
114 %defattr(644,root,root,755)
117 %if %{!?_without_xmms:1}0
118 %files -n xmms-input-flac
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_xmms_input_path}/*.so
121 %{_xmms_input_path}/*.la