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