]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
- updated to 1.1.4
[packages/flac.git] / flac.spec
CommitLineData
94159bd9 1# TODO: separate c++
51cc0dde 2#
3# Conditional build:
ec1aa008
KK
4%bcond_without static_libs # don't build static library
5%bcond_without xmms # don't build XMMS plugin
d878a8f5 6#
029ad246 7Summary: Free Lossless Audio Codec
3caef61b 8Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
27b8e245 9Name: flac
3730ca3f 10Version: 1.1.4
94159bd9
JB
11Release: 1
12License: BSD (libFLAC/libFLAC++), GPL (programs and plugins)
27b8e245 13Group: Libraries
d878a8f5 14Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
3730ca3f
JB
15# Source0-md5: 3958cbd5b6ed8c14966792538e44223b
16Patch0: %{name}-without_xmms.patch
27b8e245 17URL: http://flac.sourceforge.net/
18BuildRequires: autoconf
94159bd9
JB
19BuildRequires: automake >= 1:1.7
20# for AM_ICONV
6ca2e66f 21BuildRequires: gettext-devel
61361cc3 22BuildRequires: libogg-devel >= 2:1.0
8c896b25 23BuildRequires: libstdc++-devel
d878a8f5
JB
24BuildRequires: libtool >= 2:1.4d-3
25%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
26%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
27b8e245 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a77945de 28
27b8e245 29%description
30FLAC is an Open Source lossless audio codec developed by Josh Coalson.
31
7eefc9db
JR
32%description -l pl.UTF-8
33FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
14d1df27 34przez Josha Coalsona.
27b8e245 35
36%package devel
a77945de 37Summary: FLAC - development files
3caef61b 38Summary(pl.UTF-8): FLAC - pliki nagłówkowe
94159bd9 39License: BSD
27b8e245 40Group: Development/Libraries
4cae232c 41Requires: %{name} = %{version}-%{release}
94159bd9
JB
42Requires: libogg-devel >= 2:1.0
43# for -c++ only
44#Requires: libstdc++-devel
27b8e245 45
46%description devel
d878a8f5 47The package contains the development header files for FLAC libraries.
27b8e245 48
7eefc9db
JR
49%description devel -l pl.UTF-8
50Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
27b8e245 51
52%package static
a77945de 53Summary: FLAC - static libraries
3caef61b 54Summary(pl.UTF-8): FLAC - biblioteki statyczne
94159bd9 55License: BSD
27b8e245 56Group: Development/Libraries
4cae232c 57Requires: %{name}-devel = %{version}-%{release}
27b8e245 58
59%description static
d878a8f5 60The package contains FLAC static libraries.
27b8e245 61
7eefc9db 62%description static -l pl.UTF-8
d878a8f5 63Ten pakiet zawiera biblioteki statyczne FLAC.
27b8e245 64
65%package -n xmms-input-flac
029ad246 66Summary: Free Lossless Audio Codec - XMMS plugin
3caef61b 67Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
94159bd9 68License: GPL v2+
27b8e245 69Group: Libraries
4cae232c 70Requires: %{name} = %{version}-%{release}
dd43a64f 71Requires: xmms
27b8e245 72
73%description -n xmms-input-flac
74FLAC input plugin for XMMS.
75
7eefc9db
JR
76%description -n xmms-input-flac -l pl.UTF-8
77Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
27b8e245 78
79%prep
80%setup -q
3730ca3f 81%{!?with_xmms:%patch0 -p1}
94159bd9 82
27b8e245 83%build
27b8e245 84%{__libtoolize}
b702c07e 85%{__aclocal}
27b8e245 86%{__autoconf}
94159bd9 87%{__autoheader}
27b8e245 88%{__automake}
ec1aa008
KK
89%configure \
90 %{!?with_static_libs:--disable-static}
f06c2744 91
27b8e245 92%{__make}
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
dd43a64f 97%{__make} install \
98 DESTDIR=$RPM_BUILD_ROOT
27b8e245 99
87900f4c
JB
100# no makefiles in doc dirs
101rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*}
4cae232c 102rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
87900f4c 103
27b8e245 104%clean
dd43a64f 105rm -rf $RPM_BUILD_ROOT
27b8e245 106
107%post -p /sbin/ldconfig
108%postun -p /sbin/ldconfig
109
110%files
27b8e245 111%defattr(644,root,root,755)
94159bd9 112%doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
87900f4c 113%lang(ru) %doc doc/html/ru
94159bd9
JB
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*
27b8e245 120
121%files devel
122%defattr(644,root,root,755)
94159bd9
JB
123%attr(755,root,root) %{_libdir}/libFLAC.so
124%attr(755,root,root) %{_libdir}/libFLAC++.so
125%{_libdir}/libFLAC.la
126%{_libdir}/libFLAC++.la
127%{_includedir}/FLAC
128%{_includedir}/FLAC++
3730ca3f
JB
129%{_pkgconfigdir}/flac.pc
130%{_pkgconfigdir}/flac++.pc
94159bd9
JB
131%{_aclocaldir}/libFLAC.m4
132%{_aclocaldir}/libFLAC++.m4
27b8e245 133
ec1aa008 134%if %{with static_libs}
27b8e245 135%files static
136%defattr(644,root,root,755)
94159bd9
JB
137%{_libdir}/libFLAC.a
138%{_libdir}/libFLAC++.a
ec1aa008 139%endif
27b8e245 140
d878a8f5 141%if %{with xmms}
27b8e245 142%files -n xmms-input-flac
143%defattr(644,root,root,755)
94159bd9 144%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 145%endif
This page took 0.088031 seconds and 4 git commands to generate.