]>
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 |
e7c3645f | 9 | Version: 1.3.0 |
3ee523f4 | 10 | Release: 2 |
e7c3645f | 11 | License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins) |
27b8e245 | 12 | Group: Libraries |
e7c3645f JB |
13 | Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 13b5c214cee8373464d3d65dee362cdd | |
15 | URL: http://xiph.org/flac/ | |
16 | BuildRequires: autoconf >= 2.60 | |
17 | BuildRequires: automake >= 1:1.11 | |
94159bd9 | 18 | # for AM_ICONV |
6ca2e66f | 19 | BuildRequires: gettext-devel |
61361cc3 | 20 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 21 | BuildRequires: libstdc++-devel |
e7c3645f | 22 | BuildRequires: libtool >= 2:2 |
d878a8f5 | 23 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} |
e7c3645f | 24 | BuildRequires: tar >= 1:1.22 |
d878a8f5 | 25 | %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1} |
e7c3645f | 26 | BuildRequires: xz |
27b8e245 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a77945de | 28 | |
27b8e245 | 29 | %description |
30 | FLAC is an Open Source lossless audio codec developed by Josh Coalson. | |
31 | ||
7eefc9db JR |
32 | %description -l pl.UTF-8 |
33 | FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym | |
14d1df27 | 34 | przez Josha Coalsona. |
27b8e245 | 35 | |
36 | %package devel | |
a77945de | 37 | Summary: FLAC - development files |
3caef61b | 38 | Summary(pl.UTF-8): FLAC - pliki nagłówkowe |
94159bd9 | 39 | License: BSD |
27b8e245 | 40 | Group: Development/Libraries |
4cae232c | 41 | Requires: %{name} = %{version}-%{release} |
94159bd9 JB |
42 | Requires: libogg-devel >= 2:1.0 |
43 | # for -c++ only | |
44 | #Requires: libstdc++-devel | |
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} | |
83 | ||
84 | %description c++-devel | |
85 | Header files for FLAC++ library. | |
86 | ||
87 | %description c++-devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe biblioteki FLAC++. | |
89 | ||
90 | %package c++-static | |
91 | Summary: Static FLAC++ library | |
92 | Summary(pl.UTF-8): Statyczna biblioteka FLAC++ | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-c++-devel = %{version}-%{release} | |
95 | ||
96 | %description c++-static | |
97 | Static FLAC++ library. | |
98 | ||
99 | %description c++-static -l pl.UTF-8 | |
100 | Statyczna biblioteka FLAC++. | |
101 | ||
27b8e245 | 102 | %package -n xmms-input-flac |
029ad246 | 103 | Summary: Free Lossless Audio Codec - XMMS plugin |
3caef61b | 104 | Summary(pl.UTF-8): Wtyczka FLAC dla XMMS |
94159bd9 | 105 | License: GPL v2+ |
27b8e245 | 106 | Group: Libraries |
4cae232c | 107 | Requires: %{name} = %{version}-%{release} |
e7c3645f | 108 | Requires: xmms >= 0.9.5.1 |
27b8e245 | 109 | |
110 | %description -n xmms-input-flac | |
111 | FLAC input plugin for XMMS. | |
112 | ||
7eefc9db JR |
113 | %description -n xmms-input-flac -l pl.UTF-8 |
114 | Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC. | |
27b8e245 | 115 | |
116 | %prep | |
117 | %setup -q | |
94159bd9 | 118 | |
5f0f203e | 119 | %{__rm} m4/ogg.m4 |
1193aa41 | 120 | |
27b8e245 | 121 | %build |
27b8e245 | 122 | %{__libtoolize} |
4406e427 | 123 | %{__aclocal} -I m4 |
27b8e245 | 124 | %{__autoconf} |
94159bd9 | 125 | %{__autoheader} |
27b8e245 | 126 | %{__automake} |
ec1aa008 | 127 | %configure \ |
e7c3645f JB |
128 | --disable-silent-rules \ |
129 | %{?with_static_libs:--enable-static} \ | |
130 | %{!?with_xmms:--disable-xmms-plugin} | |
f06c2744 | 131 | |
27b8e245 | 132 | %{__make} |
133 | ||
3ee523f4 ER |
134 | rm -rf doc-html |
135 | cp -a doc/html doc-html | |
136 | # no makefiles in doc dirs | |
137 | %{__rm} doc-html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*} | |
138 | ||
27b8e245 | 139 | %install |
140 | rm -rf $RPM_BUILD_ROOT | |
dd43a64f | 141 | %{__make} install \ |
142 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 143 | |
3ee523f4 ER |
144 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
145 | ||
e7c3645f JB |
146 | %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la |
147 | %if %{with static_libs} | |
148 | %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a | |
149 | %endif | |
87900f4c | 150 | |
27b8e245 | 151 | %clean |
dd43a64f | 152 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 153 | |
154 | %post -p /sbin/ldconfig | |
155 | %postun -p /sbin/ldconfig | |
156 | ||
ef4d7dd5 JB |
157 | %post c++ -p /sbin/ldconfig |
158 | %postun c++ -p /sbin/ldconfig | |
159 | ||
27b8e245 | 160 | %files |
27b8e245 | 161 | %defattr(644,root,root,755) |
3ee523f4 | 162 | %doc AUTHORS COPYING.Xiph README |
94159bd9 JB |
163 | %attr(755,root,root) %{_bindir}/flac |
164 | %attr(755,root,root) %{_bindir}/metaflac | |
165 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
4406e427 | 166 | %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8 |
94159bd9 JB |
167 | %{_mandir}/man1/flac.1* |
168 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 169 | |
170 | %files devel | |
171 | %defattr(644,root,root,755) | |
3ee523f4 ER |
172 | %doc doc-html/{*.html,images} |
173 | %lang(ru) %doc doc-html/ru | |
94159bd9 | 174 | %attr(755,root,root) %{_libdir}/libFLAC.so |
94159bd9 | 175 | %{_libdir}/libFLAC.la |
94159bd9 | 176 | %{_includedir}/FLAC |
3730ca3f | 177 | %{_pkgconfigdir}/flac.pc |
94159bd9 | 178 | %{_aclocaldir}/libFLAC.m4 |
27b8e245 | 179 | |
ec1aa008 | 180 | %if %{with static_libs} |
27b8e245 | 181 | %files static |
182 | %defattr(644,root,root,755) | |
94159bd9 | 183 | %{_libdir}/libFLAC.a |
ef4d7dd5 JB |
184 | %endif |
185 | ||
186 | %files c++ | |
187 | %defattr(644,root,root,755) | |
188 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
4406e427 | 189 | %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6 |
ef4d7dd5 JB |
190 | |
191 | %files c++-devel | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
194 | %{_libdir}/libFLAC++.la | |
195 | %{_includedir}/FLAC++ | |
196 | %{_pkgconfigdir}/flac++.pc | |
197 | %{_aclocaldir}/libFLAC++.m4 | |
198 | ||
199 | %if %{with static_libs} | |
200 | %files c++-static | |
201 | %defattr(644,root,root,755) | |
94159bd9 | 202 | %{_libdir}/libFLAC++.a |
ec1aa008 | 203 | %endif |
27b8e245 | 204 | |
d878a8f5 | 205 | %if %{with xmms} |
27b8e245 | 206 | %files -n xmms-input-flac |
207 | %defattr(644,root,root,755) | |
94159bd9 | 208 | %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so |
51cc0dde | 209 | %endif |