]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
- x32 rebuild
[packages/flac.git] / flac.spec
CommitLineData
51cc0dde 1#
2# Conditional build:
ec1aa008
KK
3%bcond_without static_libs # don't build static library
4%bcond_without xmms # don't build XMMS plugin
5f0f203e 5
029ad246 6Summary: Free Lossless Audio Codec
3caef61b 7Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
27b8e245 8Name: flac
aa2c4437 9Version: 1.3.1
70f8a954 10Release: 4
e7c3645f 11License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins)
27b8e245 12Group: Libraries
e7c3645f 13Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
aa2c4437 14# Source0-md5: b9922c9a0378c88d3e901b234f852698
061b946c 15Patch0: %{name}-opt.patch
85c00d19 16Patch1: x32.patch
e7c3645f
JB
17URL: http://xiph.org/flac/
18BuildRequires: autoconf >= 2.60
19BuildRequires: automake >= 1:1.11
94159bd9 20# for AM_ICONV
649e3bf9 21BuildRequires: gettext-tools
61361cc3 22BuildRequires: libogg-devel >= 2:1.0
8c896b25 23BuildRequires: libstdc++-devel
e7c3645f 24BuildRequires: libtool >= 2:2
d878a8f5 25%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
e7c3645f 26BuildRequires: tar >= 1:1.22
d878a8f5 27%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
e7c3645f 28BuildRequires: xz
27b8e245 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a77945de 30
27b8e245 31%description
32FLAC is an Open Source lossless audio codec developed by Josh Coalson.
33
7eefc9db
JR
34%description -l pl.UTF-8
35FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
14d1df27 36przez Josha Coalsona.
27b8e245 37
38%package devel
a77945de 39Summary: FLAC - development files
3caef61b 40Summary(pl.UTF-8): FLAC - pliki nagłówkowe
94159bd9 41License: BSD
27b8e245 42Group: Development/Libraries
4cae232c 43Requires: %{name} = %{version}-%{release}
94159bd9 44Requires: libogg-devel >= 2:1.0
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
ef4d7dd5
JB
65%package c++
66Summary: FLAC++ - C++ API for FLAC codec
67Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
68Group: Libraries
69Requires: %{name} = %{version}-%{release}
70
71%description c++
72FLAC++ - C++ API for FLAC codec.
73
74%description c++ -l pl.UTF-8
75FLAC++ - API C++ do kodeka FLAC.
76
77%package c++-devel
78Summary: Header files for FLAC++ library
79Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
80Group: Development/Libraries
81Requires: %{name}-c++ = %{version}-%{release}
82Requires: %{name}-devel = %{version}-%{release}
061b946c 83Requires: libstdc++-devel
ef4d7dd5
JB
84
85%description c++-devel
86Header files for FLAC++ library.
87
88%description c++-devel -l pl.UTF-8
89Pliki nagłówkowe biblioteki FLAC++.
90
91%package c++-static
92Summary: Static FLAC++ library
93Summary(pl.UTF-8): Statyczna biblioteka FLAC++
94Group: Development/Libraries
95Requires: %{name}-c++-devel = %{version}-%{release}
96
97%description c++-static
98Static FLAC++ library.
99
100%description c++-static -l pl.UTF-8
101Statyczna biblioteka FLAC++.
102
27b8e245 103%package -n xmms-input-flac
029ad246 104Summary: Free Lossless Audio Codec - XMMS plugin
3caef61b 105Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
94159bd9 106License: GPL v2+
27b8e245 107Group: Libraries
4cae232c 108Requires: %{name} = %{version}-%{release}
e7c3645f 109Requires: xmms >= 0.9.5.1
27b8e245 110
111%description -n xmms-input-flac
112FLAC input plugin for XMMS.
113
7eefc9db
JR
114%description -n xmms-input-flac -l pl.UTF-8
115Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
27b8e245 116
117%prep
118%setup -q
3d7e59e8 119%patch0 -p1
85c00d19 120%patch1 -p1
94159bd9 121
5f0f203e 122%{__rm} m4/ogg.m4
1193aa41 123
27b8e245 124%build
27b8e245 125%{__libtoolize}
4406e427 126%{__aclocal} -I m4
27b8e245 127%{__autoconf}
94159bd9 128%{__autoheader}
27b8e245 129%{__automake}
ec1aa008 130%configure \
e7c3645f
JB
131 --disable-silent-rules \
132 %{?with_static_libs:--enable-static} \
133 %{!?with_xmms:--disable-xmms-plugin}
f06c2744 134
27b8e245 135%{__make}
136
3ee523f4
ER
137rm -rf doc-html
138cp -a doc/html doc-html
139# no makefiles in doc dirs
aa2c4437 140find doc-html -name 'Makefile*' | xargs %{__rm}
3ee523f4 141
27b8e245 142%install
143rm -rf $RPM_BUILD_ROOT
dd43a64f 144%{__make} install \
145 DESTDIR=$RPM_BUILD_ROOT
27b8e245 146
3ee523f4
ER
147%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
148
85c00d19 149%if %{with xmms}
e7c3645f
JB
150%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
151%if %{with static_libs}
152%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a
153%endif
85c00d19 154%endif
87900f4c 155
27b8e245 156%clean
dd43a64f 157rm -rf $RPM_BUILD_ROOT
27b8e245 158
159%post -p /sbin/ldconfig
160%postun -p /sbin/ldconfig
161
ef4d7dd5
JB
162%post c++ -p /sbin/ldconfig
163%postun c++ -p /sbin/ldconfig
164
27b8e245 165%files
27b8e245 166%defattr(644,root,root,755)
3ee523f4 167%doc AUTHORS COPYING.Xiph README
94159bd9
JB
168%attr(755,root,root) %{_bindir}/flac
169%attr(755,root,root) %{_bindir}/metaflac
170%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
4406e427 171%attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
94159bd9
JB
172%{_mandir}/man1/flac.1*
173%{_mandir}/man1/metaflac.1*
27b8e245 174
175%files devel
176%defattr(644,root,root,755)
3ee523f4 177%doc doc-html/{*.html,images}
94159bd9 178%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 179%{_libdir}/libFLAC.la
94159bd9 180%{_includedir}/FLAC
3730ca3f 181%{_pkgconfigdir}/flac.pc
94159bd9 182%{_aclocaldir}/libFLAC.m4
27b8e245 183
ec1aa008 184%if %{with static_libs}
27b8e245 185%files static
186%defattr(644,root,root,755)
94159bd9 187%{_libdir}/libFLAC.a
ef4d7dd5
JB
188%endif
189
190%files c++
191%defattr(644,root,root,755)
192%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
4406e427 193%attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
ef4d7dd5
JB
194
195%files c++-devel
196%defattr(644,root,root,755)
197%attr(755,root,root) %{_libdir}/libFLAC++.so
198%{_libdir}/libFLAC++.la
199%{_includedir}/FLAC++
200%{_pkgconfigdir}/flac++.pc
201%{_aclocaldir}/libFLAC++.m4
202
203%if %{with static_libs}
204%files c++-static
205%defattr(644,root,root,755)
94159bd9 206%{_libdir}/libFLAC++.a
ec1aa008 207%endif
27b8e245 208
d878a8f5 209%if %{with xmms}
27b8e245 210%files -n xmms-input-flac
211%defattr(644,root,root,755)
94159bd9 212%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 213%endif
This page took 0.177418 seconds and 4 git commands to generate.