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