]>
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 |
0f08bf41 | 9 | Version: 1.2.1 |
5f0f203e | 10 | Release: 7 |
94159bd9 | 11 | License: BSD (libFLAC/libFLAC++), GPL (programs and plugins) |
27b8e245 | 12 | Group: Libraries |
d878a8f5 | 13 | Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz |
0f08bf41 | 14 | # Source0-md5: 153c8b15a54da428d1f0fadc756c22c7 |
3730ca3f | 15 | Patch0: %{name}-without_xmms.patch |
4406e427 MB |
16 | Patch1: %{name}-lt.patch |
17 | Patch2: %{name}-gcc44.patch | |
5f0f203e | 18 | Patch3: crbug-111390.patch |
27b8e245 | 19 | URL: http://flac.sourceforge.net/ |
20 | BuildRequires: autoconf | |
94159bd9 JB |
21 | BuildRequires: automake >= 1:1.7 |
22 | # for AM_ICONV | |
6ca2e66f | 23 | BuildRequires: gettext-devel |
61361cc3 | 24 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 25 | BuildRequires: libstdc++-devel |
d878a8f5 JB |
26 | BuildRequires: libtool >= 2:1.4d-3 |
27 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} | |
28 | %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1} | |
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 JB |
44 | Requires: libogg-devel >= 2:1.0 |
45 | # for -c++ only | |
46 | #Requires: libstdc++-devel | |
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} | |
85 | ||
86 | %description c++-devel | |
87 | Header files for FLAC++ library. | |
88 | ||
89 | %description c++-devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe biblioteki FLAC++. | |
91 | ||
92 | %package c++-static | |
93 | Summary: Static FLAC++ library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka FLAC++ | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-c++-devel = %{version}-%{release} | |
97 | ||
98 | %description c++-static | |
99 | Static FLAC++ library. | |
100 | ||
101 | %description c++-static -l pl.UTF-8 | |
102 | Statyczna biblioteka FLAC++. | |
103 | ||
27b8e245 | 104 | %package -n xmms-input-flac |
029ad246 | 105 | Summary: Free Lossless Audio Codec - XMMS plugin |
3caef61b | 106 | Summary(pl.UTF-8): Wtyczka FLAC dla XMMS |
94159bd9 | 107 | License: GPL v2+ |
27b8e245 | 108 | Group: Libraries |
4cae232c | 109 | Requires: %{name} = %{version}-%{release} |
dd43a64f | 110 | Requires: xmms |
27b8e245 | 111 | |
112 | %description -n xmms-input-flac | |
113 | FLAC input plugin for XMMS. | |
114 | ||
7eefc9db JR |
115 | %description -n xmms-input-flac -l pl.UTF-8 |
116 | Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC. | |
27b8e245 | 117 | |
118 | %prep | |
119 | %setup -q | |
3730ca3f | 120 | %{!?with_xmms:%patch0 -p1} |
4406e427 MB |
121 | %patch1 -p1 |
122 | %patch2 -p1 | |
5f0f203e | 123 | %patch3 -p1 |
94159bd9 | 124 | |
5f0f203e | 125 | %{__rm} m4/ogg.m4 |
1193aa41 | 126 | |
27b8e245 | 127 | %build |
27b8e245 | 128 | %{__libtoolize} |
4406e427 | 129 | %{__aclocal} -I m4 |
27b8e245 | 130 | %{__autoconf} |
94159bd9 | 131 | %{__autoheader} |
27b8e245 | 132 | %{__automake} |
ec1aa008 KK |
133 | %configure \ |
134 | %{!?with_static_libs:--disable-static} | |
f06c2744 | 135 | |
27b8e245 | 136 | %{__make} |
137 | ||
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
dd43a64f | 141 | %{__make} install \ |
142 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 143 | |
87900f4c | 144 | # no makefiles in doc dirs |
4406e427 | 145 | rm -f doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*} |
4cae232c | 146 | rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la |
87900f4c | 147 | |
27b8e245 | 148 | %clean |
dd43a64f | 149 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 150 | |
151 | %post -p /sbin/ldconfig | |
152 | %postun -p /sbin/ldconfig | |
153 | ||
ef4d7dd5 JB |
154 | %post c++ -p /sbin/ldconfig |
155 | %postun c++ -p /sbin/ldconfig | |
156 | ||
27b8e245 | 157 | %files |
27b8e245 | 158 | %defattr(644,root,root,755) |
94159bd9 | 159 | %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images} |
87900f4c | 160 | %lang(ru) %doc doc/html/ru |
94159bd9 JB |
161 | %attr(755,root,root) %{_bindir}/flac |
162 | %attr(755,root,root) %{_bindir}/metaflac | |
163 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
4406e427 | 164 | %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.8 |
94159bd9 JB |
165 | %{_mandir}/man1/flac.1* |
166 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
94159bd9 | 170 | %attr(755,root,root) %{_libdir}/libFLAC.so |
94159bd9 | 171 | %{_libdir}/libFLAC.la |
94159bd9 | 172 | %{_includedir}/FLAC |
3730ca3f | 173 | %{_pkgconfigdir}/flac.pc |
94159bd9 | 174 | %{_aclocaldir}/libFLAC.m4 |
27b8e245 | 175 | |
ec1aa008 | 176 | %if %{with static_libs} |
27b8e245 | 177 | %files static |
178 | %defattr(644,root,root,755) | |
94159bd9 | 179 | %{_libdir}/libFLAC.a |
ef4d7dd5 JB |
180 | %endif |
181 | ||
182 | %files c++ | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
4406e427 | 185 | %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6 |
ef4d7dd5 JB |
186 | |
187 | %files c++-devel | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
190 | %{_libdir}/libFLAC++.la | |
191 | %{_includedir}/FLAC++ | |
192 | %{_pkgconfigdir}/flac++.pc | |
193 | %{_aclocaldir}/libFLAC++.m4 | |
194 | ||
195 | %if %{with static_libs} | |
196 | %files c++-static | |
197 | %defattr(644,root,root,755) | |
94159bd9 | 198 | %{_libdir}/libFLAC++.a |
ec1aa008 | 199 | %endif |
27b8e245 | 200 | |
d878a8f5 | 201 | %if %{with xmms} |
27b8e245 | 202 | %files -n xmms-input-flac |
203 | %defattr(644,root,root,755) | |
94159bd9 | 204 | %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so |
51cc0dde | 205 | %endif |