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