]>
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 |
c8de40f5 | 19 | Patch4: deb-643377.patch |
27b8e245 | 20 | URL: http://flac.sourceforge.net/ |
21 | BuildRequires: autoconf | |
94159bd9 JB |
22 | BuildRequires: automake >= 1:1.7 |
23 | # for AM_ICONV | |
6ca2e66f | 24 | BuildRequires: gettext-devel |
61361cc3 | 25 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 26 | BuildRequires: libstdc++-devel |
d878a8f5 JB |
27 | BuildRequires: libtool >= 2:1.4d-3 |
28 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} | |
29 | %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1} | |
27b8e245 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a77945de | 31 | |
27b8e245 | 32 | %description |
33 | FLAC is an Open Source lossless audio codec developed by Josh Coalson. | |
34 | ||
7eefc9db JR |
35 | %description -l pl.UTF-8 |
36 | FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym | |
14d1df27 | 37 | przez Josha Coalsona. |
27b8e245 | 38 | |
39 | %package devel | |
a77945de | 40 | Summary: FLAC - development files |
3caef61b | 41 | Summary(pl.UTF-8): FLAC - pliki nagłówkowe |
94159bd9 | 42 | License: BSD |
27b8e245 | 43 | Group: Development/Libraries |
4cae232c | 44 | Requires: %{name} = %{version}-%{release} |
94159bd9 JB |
45 | Requires: libogg-devel >= 2:1.0 |
46 | # for -c++ only | |
47 | #Requires: libstdc++-devel | |
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} | |
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} |
dd43a64f | 111 | Requires: xmms |
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 | |
3730ca3f | 121 | %{!?with_xmms:%patch0 -p1} |
4406e427 MB |
122 | %patch1 -p1 |
123 | %patch2 -p1 | |
5f0f203e | 124 | %patch3 -p1 |
c8de40f5 | 125 | %patch4 -p1 |
94159bd9 | 126 | |
5f0f203e | 127 | %{__rm} m4/ogg.m4 |
1193aa41 | 128 | |
27b8e245 | 129 | %build |
27b8e245 | 130 | %{__libtoolize} |
4406e427 | 131 | %{__aclocal} -I m4 |
27b8e245 | 132 | %{__autoconf} |
94159bd9 | 133 | %{__autoheader} |
27b8e245 | 134 | %{__automake} |
ec1aa008 KK |
135 | %configure \ |
136 | %{!?with_static_libs:--disable-static} | |
f06c2744 | 137 | |
27b8e245 | 138 | %{__make} |
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
dd43a64f | 143 | %{__make} install \ |
144 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 145 | |
87900f4c | 146 | # no makefiles in doc dirs |
4406e427 | 147 | rm -f doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*} |
4cae232c | 148 | rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la |
87900f4c | 149 | |
27b8e245 | 150 | %clean |
dd43a64f | 151 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 152 | |
153 | %post -p /sbin/ldconfig | |
154 | %postun -p /sbin/ldconfig | |
155 | ||
ef4d7dd5 JB |
156 | %post c++ -p /sbin/ldconfig |
157 | %postun c++ -p /sbin/ldconfig | |
158 | ||
27b8e245 | 159 | %files |
27b8e245 | 160 | %defattr(644,root,root,755) |
94159bd9 | 161 | %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images} |
87900f4c | 162 | %lang(ru) %doc doc/html/ru |
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) | |
94159bd9 | 172 | %attr(755,root,root) %{_libdir}/libFLAC.so |
94159bd9 | 173 | %{_libdir}/libFLAC.la |
94159bd9 | 174 | %{_includedir}/FLAC |
3730ca3f | 175 | %{_pkgconfigdir}/flac.pc |
94159bd9 | 176 | %{_aclocaldir}/libFLAC.m4 |
27b8e245 | 177 | |
ec1aa008 | 178 | %if %{with static_libs} |
27b8e245 | 179 | %files static |
180 | %defattr(644,root,root,755) | |
94159bd9 | 181 | %{_libdir}/libFLAC.a |
ef4d7dd5 JB |
182 | %endif |
183 | ||
184 | %files c++ | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
4406e427 | 187 | %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.6 |
ef4d7dd5 JB |
188 | |
189 | %files c++-devel | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
192 | %{_libdir}/libFLAC++.la | |
193 | %{_includedir}/FLAC++ | |
194 | %{_pkgconfigdir}/flac++.pc | |
195 | %{_aclocaldir}/libFLAC++.m4 | |
196 | ||
197 | %if %{with static_libs} | |
198 | %files c++-static | |
199 | %defattr(644,root,root,755) | |
94159bd9 | 200 | %{_libdir}/libFLAC++.a |
ec1aa008 | 201 | %endif |
27b8e245 | 202 | |
d878a8f5 | 203 | %if %{with xmms} |
27b8e245 | 204 | %files -n xmms-input-flac |
205 | %defattr(644,root,root,755) | |
94159bd9 | 206 | %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so |
51cc0dde | 207 | %endif |