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