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: 3958cbd5b6ed8c14966792538e44223b
16 Patch0: %{name}-without_xmms.patch
17 URL: http://flac.sourceforge.net/
18 BuildRequires: autoconf
19 BuildRequires: automake >= 1:1.7
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.
32 %description -l pl.UTF-8
33 FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
37 Summary: FLAC - development files
38 Summary(pl.UTF-8): FLAC - pliki nagłówkowe
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libogg-devel >= 2:1.0
44 #Requires: libstdc++-devel
47 The package contains the development header files for FLAC libraries.
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
53 Summary: FLAC - static libraries
54 Summary(pl.UTF-8): FLAC - biblioteki statyczne
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 The package contains FLAC static libraries.
62 %description static -l pl.UTF-8
63 Ten pakiet zawiera biblioteki statyczne FLAC.
65 %package -n xmms-input-flac
66 Summary: Free Lossless Audio Codec - XMMS plugin
67 Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
70 Requires: %{name} = %{version}-%{release}
73 %description -n xmms-input-flac
74 FLAC input plugin for XMMS.
76 %description -n xmms-input-flac -l pl.UTF-8
77 Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
81 %{!?with_xmms:%patch0 -p1}
90 %{!?with_static_libs:--disable-static}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 # no makefiles in doc dirs
101 rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
102 rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
113 %lang(ru) %doc doc/html/ru
114 %attr(755,root,root) %{_bindir}/flac
115 %attr(755,root,root) %{_bindir}/metaflac
116 %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
117 %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
118 %{_mandir}/man1/flac.1*
119 %{_mandir}/man1/metaflac.1*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libFLAC.so
124 %attr(755,root,root) %{_libdir}/libFLAC++.so
125 %{_libdir}/libFLAC.la
126 %{_libdir}/libFLAC++.la
128 %{_includedir}/FLAC++
129 %{_pkgconfigdir}/flac.pc
130 %{_pkgconfigdir}/flac++.pc
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