]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
up to 1.3.4 (fixes CVE-2020-0499 CVE-2021-0561)
[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
42d45dc6 13Version: 1.3.4
fc1d5153 14Release: 1
e7c3645f 15License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins)
27b8e245 16Group: Libraries
f7542552 17Source0: https://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
42d45dc6 18# Source0-md5: bfdb2dd854d334b55a3309e3cd659f2c
f7542552 19URL: https://xiph.org/flac/
e7c3645f
JB
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
f7542552
JB
148# packaged as %doc in -devel
149%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
3ee523f4 150
85c00d19 151%if %{with xmms}
e7c3645f
JB
152%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
153%if %{with static_libs}
154%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a
155%endif
85c00d19 156%endif
87900f4c 157
27b8e245 158%clean
dd43a64f 159rm -rf $RPM_BUILD_ROOT
27b8e245 160
161%post -p /sbin/ldconfig
162%postun -p /sbin/ldconfig
163
ef4d7dd5
JB
164%post c++ -p /sbin/ldconfig
165%postun c++ -p /sbin/ldconfig
166
27b8e245 167%files
27b8e245 168%defattr(644,root,root,755)
3ee523f4 169%doc AUTHORS COPYING.Xiph README
94159bd9
JB
170%attr(755,root,root) %{_bindir}/flac
171%attr(755,root,root) %{_bindir}/metaflac
172%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
4406e427 173%attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
94159bd9
JB
174%{_mandir}/man1/flac.1*
175%{_mandir}/man1/metaflac.1*
27b8e245 176
177%files devel
178%defattr(644,root,root,755)
3ee523f4 179%doc doc-html/{*.html,images}
94159bd9 180%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 181%{_libdir}/libFLAC.la
94159bd9 182%{_includedir}/FLAC
3730ca3f 183%{_pkgconfigdir}/flac.pc
94159bd9 184%{_aclocaldir}/libFLAC.m4
27b8e245 185
ec1aa008 186%if %{with static_libs}
27b8e245 187%files static
188%defattr(644,root,root,755)
94159bd9 189%{_libdir}/libFLAC.a
ef4d7dd5
JB
190%endif
191
192%files c++
193%defattr(644,root,root,755)
194%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
4406e427 195%attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
ef4d7dd5
JB
196
197%files c++-devel
198%defattr(644,root,root,755)
199%attr(755,root,root) %{_libdir}/libFLAC++.so
200%{_libdir}/libFLAC++.la
201%{_includedir}/FLAC++
202%{_pkgconfigdir}/flac++.pc
203%{_aclocaldir}/libFLAC++.m4
204
205%if %{with static_libs}
206%files c++-static
207%defattr(644,root,root,755)
94159bd9 208%{_libdir}/libFLAC++.a
ec1aa008 209%endif
27b8e245 210
d878a8f5 211%if %{with xmms}
27b8e245 212%files -n xmms-input-flac
213%defattr(644,root,root,755)
94159bd9 214%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 215%endif
This page took 0.055087 seconds and 4 git commands to generate.