]> git.pld-linux.org Git - packages/flac.git/blame - flac.spec
fixes from chromium (rather minor one in md5.c)
[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
27b8e245 19URL: http://flac.sourceforge.net/
20BuildRequires: autoconf
94159bd9
JB
21BuildRequires: automake >= 1:1.7
22# for AM_ICONV
6ca2e66f 23BuildRequires: gettext-devel
61361cc3 24BuildRequires: libogg-devel >= 2:1.0
8c896b25 25BuildRequires: libstdc++-devel
d878a8f5
JB
26BuildRequires: libtool >= 2:1.4d-3
27%{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125}
28%{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1}
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
JB
44Requires: libogg-devel >= 2:1.0
45# for -c++ only
46#Requires: libstdc++-devel
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}
85
86%description c++-devel
87Header files for FLAC++ library.
88
89%description c++-devel -l pl.UTF-8
90Pliki nagłówkowe biblioteki FLAC++.
91
92%package c++-static
93Summary: Static FLAC++ library
94Summary(pl.UTF-8): Statyczna biblioteka FLAC++
95Group: Development/Libraries
96Requires: %{name}-c++-devel = %{version}-%{release}
97
98%description c++-static
99Static FLAC++ library.
100
101%description c++-static -l pl.UTF-8
102Statyczna biblioteka FLAC++.
103
27b8e245 104%package -n xmms-input-flac
029ad246 105Summary: Free Lossless Audio Codec - XMMS plugin
3caef61b 106Summary(pl.UTF-8): Wtyczka FLAC dla XMMS
94159bd9 107License: GPL v2+
27b8e245 108Group: Libraries
4cae232c 109Requires: %{name} = %{version}-%{release}
dd43a64f 110Requires: xmms
27b8e245 111
112%description -n xmms-input-flac
113FLAC input plugin for XMMS.
114
7eefc9db
JR
115%description -n xmms-input-flac -l pl.UTF-8
116Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC.
27b8e245 117
118%prep
119%setup -q
3730ca3f 120%{!?with_xmms:%patch0 -p1}
4406e427
MB
121%patch1 -p1
122%patch2 -p1
5f0f203e 123%patch3 -p1
94159bd9 124
5f0f203e 125%{__rm} m4/ogg.m4
1193aa41 126
27b8e245 127%build
27b8e245 128%{__libtoolize}
4406e427 129%{__aclocal} -I m4
27b8e245 130%{__autoconf}
94159bd9 131%{__autoheader}
27b8e245 132%{__automake}
ec1aa008
KK
133%configure \
134 %{!?with_static_libs:--disable-static}
f06c2744 135
27b8e245 136%{__make}
137
138%install
139rm -rf $RPM_BUILD_ROOT
140
dd43a64f 141%{__make} install \
142 DESTDIR=$RPM_BUILD_ROOT
27b8e245 143
87900f4c 144# no makefiles in doc dirs
4406e427 145rm -f doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*}
4cae232c 146rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
87900f4c 147
27b8e245 148%clean
dd43a64f 149rm -rf $RPM_BUILD_ROOT
27b8e245 150
151%post -p /sbin/ldconfig
152%postun -p /sbin/ldconfig
153
ef4d7dd5
JB
154%post c++ -p /sbin/ldconfig
155%postun c++ -p /sbin/ldconfig
156
27b8e245 157%files
27b8e245 158%defattr(644,root,root,755)
94159bd9 159%doc AUTHORS COPYING.Xiph README doc/html/{*.html,images}
87900f4c 160%lang(ru) %doc doc/html/ru
94159bd9
JB
161%attr(755,root,root) %{_bindir}/flac
162%attr(755,root,root) %{_bindir}/metaflac
163%attr(755,root,root) %{_libdir}/libFLAC.so.*.*.*
4406e427 164%attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8
94159bd9
JB
165%{_mandir}/man1/flac.1*
166%{_mandir}/man1/metaflac.1*
27b8e245 167
168%files devel
169%defattr(644,root,root,755)
94159bd9 170%attr(755,root,root) %{_libdir}/libFLAC.so
94159bd9 171%{_libdir}/libFLAC.la
94159bd9 172%{_includedir}/FLAC
3730ca3f 173%{_pkgconfigdir}/flac.pc
94159bd9 174%{_aclocaldir}/libFLAC.m4
27b8e245 175
ec1aa008 176%if %{with static_libs}
27b8e245 177%files static
178%defattr(644,root,root,755)
94159bd9 179%{_libdir}/libFLAC.a
ef4d7dd5
JB
180%endif
181
182%files c++
183%defattr(644,root,root,755)
184%attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.*
4406e427 185%attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6
ef4d7dd5
JB
186
187%files c++-devel
188%defattr(644,root,root,755)
189%attr(755,root,root) %{_libdir}/libFLAC++.so
190%{_libdir}/libFLAC++.la
191%{_includedir}/FLAC++
192%{_pkgconfigdir}/flac++.pc
193%{_aclocaldir}/libFLAC++.m4
194
195%if %{with static_libs}
196%files c++-static
197%defattr(644,root,root,755)
94159bd9 198%{_libdir}/libFLAC++.a
ec1aa008 199%endif
27b8e245 200
d878a8f5 201%if %{with xmms}
27b8e245 202%files -n xmms-input-flac
203%defattr(644,root,root,755)
94159bd9 204%attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so
51cc0dde 205%endif
This page took 0.063486 seconds and 4 git commands to generate.