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