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