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