]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
Fix -Werror=format-security errors. rebased for current tree
[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
0f08bf41 9Version: 1.2.1
5f0f203e 10Release: 7
94159bd9 11License: BSD (libFLAC/libFLAC++), GPL (programs and plugins)
27b8e245 12Group: Libraries
d878a8f5 13Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz
0f08bf41 14# Source0-md5: 153c8b15a54da428d1f0fadc756c22c7
3730ca3f 15Patch0: %{name}-without_xmms.patch
4406e427
MB
16Patch1: %{name}-lt.patch
17Patch2: %{name}-gcc44.patch
5f0f203e 18Patch3: crbug-111390.patch
c8de40f5 19Patch4: deb-643377.patch
27b8e245 20URL: http://flac.sourceforge.net/
21BuildRequires: autoconf
94159bd9
JB
22BuildRequires: automake >= 1:1.7
23# for AM_ICONV
6ca2e66f 24BuildRequires: gettext-devel
61361cc3 25BuildRequires: libogg-devel >= 2:1.0
8c896b25 26BuildRequires: libstdc++-devel
d878a8f5
JB
27BuildRequires: libtool >= 2:1.4d-3
28%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
29%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
27b8e245 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a77945de 31
27b8e245 32%description
33FLAC is an Open Source lossless audio codec developed by Josh Coalson.
34
7eefc9db
JR
35%description -l pl.UTF-8
36FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym
14d1df27 37przez Josha Coalsona.
27b8e245 38
39%package devel
a77945de 40Summary: FLAC - development files
3caef61b 41Summary(pl.UTF-8): FLAC - pliki nagłówkowe
94159bd9 42License: BSD
27b8e245 43Group: Development/Libraries
4cae232c 44Requires: %{name} = %{version}-%{release}
94159bd9
JB
45Requires: libogg-devel >= 2:1.0
46# for -c++ only
47#Requires: libstdc++-devel
27b8e245 48
49%description devel
d878a8f5 50The package contains the development header files for FLAC libraries.
27b8e245 51
7eefc9db
JR
52%description devel -l pl.UTF-8
53Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC.
27b8e245 54
55%package static
a77945de 56Summary: FLAC - static libraries
3caef61b 57Summary(pl.UTF-8): FLAC - biblioteki statyczne
94159bd9 58License: BSD
27b8e245 59Group: Development/Libraries
4cae232c 60Requires: %{name}-devel = %{version}-%{release}
27b8e245 61
62%description static
d878a8f5 63The package contains FLAC static libraries.
27b8e245 64
7eefc9db 65%description static -l pl.UTF-8
d878a8f5 66Ten pakiet zawiera biblioteki statyczne FLAC.
27b8e245 67
ef4d7dd5
JB
68%package c++
69Summary: FLAC++ - C++ API for FLAC codec
70Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC
71Group: Libraries
72Requires: %{name} = %{version}-%{release}
73
74%description c++
75FLAC++ - C++ API for FLAC codec.
76
77%description c++ -l pl.UTF-8
78FLAC++ - API C++ do kodeka FLAC.
79
80%package c++-devel
81Summary: Header files for FLAC++ library
82Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
83Group: Development/Libraries
84Requires: %{name}-c++ = %{version}-%{release}
85Requires: %{name}-devel = %{version}-%{release}
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}
dd43a64f 111Requires: xmms
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
3730ca3f 121%{!?with_xmms:%patch0 -p1}
4406e427
MB
122%patch1 -p1
123%patch2 -p1
5f0f203e 124%patch3 -p1
c8de40f5 125%patch4 -p1
94159bd9 126
5f0f203e 127%{__rm} m4/ogg.m4
1193aa41 128
27b8e245 129%build
27b8e245 130%{__libtoolize}
4406e427 131%{__aclocal} -I m4
27b8e245 132%{__autoconf}
94159bd9 133%{__autoheader}
27b8e245 134%{__automake}
ec1aa008
KK
135%configure \
136 %{!?with_static_libs:--disable-static}
f06c2744 137
27b8e245 138%{__make}
139
140%install
141rm -rf $RPM_BUILD_ROOT
142
dd43a64f 143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT
27b8e245 145
87900f4c 146# no makefiles in doc dirs
4406e427 147rm -f doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*}
4cae232c 148rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
87900f4c 149
27b8e245 150%clean
dd43a64f 151rm -rf $RPM_BUILD_ROOT
27b8e245 152
153%post -p /sbin/ldconfig
154%postun -p /sbin/ldconfig
155
ef4d7dd5
JB
156%post c++ -p /sbin/ldconfig
157%postun c++ -p /sbin/ldconfig
158
27b8e245 159%files
27b8e245 160%defattr(644,root,root,755)
94159bd9 161%doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
87900f4c 162%lang(ru) %doc doc/html/ru
94159bd9
JB
163%attr(755,root,root) %{_bindir}/flac
164%attr(755,root,root) %{_bindir}/metaflac
165%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
4406e427 166%attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
94159bd9
JB
167%{_mandir}/man1/flac.1*
168%{_mandir}/man1/metaflac.1*
27b8e245 169
170%files devel
171%defattr(644,root,root,755)
94159bd9 172%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 173%{_libdir}/libFLAC.la
94159bd9 174%{_includedir}/FLAC
3730ca3f 175%{_pkgconfigdir}/flac.pc
94159bd9 176%{_aclocaldir}/libFLAC.m4
27b8e245 177
ec1aa008 178%if %{with static_libs}
27b8e245 179%files static
180%defattr(644,root,root,755)
94159bd9 181%{_libdir}/libFLAC.a
ef4d7dd5
JB
182%endif
183
184%files c++
185%defattr(644,root,root,755)
186%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
4406e427 187%attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
ef4d7dd5
JB
188
189%files c++-devel
190%defattr(644,root,root,755)
191%attr(755,root,root) %{_libdir}/libFLAC++.so
192%{_libdir}/libFLAC++.la
193%{_includedir}/FLAC++
194%{_pkgconfigdir}/flac++.pc
195%{_aclocaldir}/libFLAC++.m4
196
197%if %{with static_libs}
198%files c++-static
199%defattr(644,root,root,755)
94159bd9 200%{_libdir}/libFLAC++.a
ec1aa008 201%endif
27b8e245 202
d878a8f5 203%if %{with xmms}
27b8e245 204%files -n xmms-input-flac
205%defattr(644,root,root,755)
94159bd9 206%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 207%endif
This page took 0.094218 seconds and 4 git commands to generate.