]>
Commit | Line | Data |
---|---|---|
94159bd9 | 1 | # TODO: separate c++ |
51cc0dde | 2 | # |
3 | # Conditional build: | |
ec1aa008 KK |
4 | %bcond_without static_libs # don't build static library |
5 | %bcond_without xmms # don't build XMMS plugin | |
d878a8f5 | 6 | # |
029ad246 | 7 | Summary: Free Lossless Audio Codec |
7eefc9db | 8 | Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio |
27b8e245 | 9 | Name: flac |
94159bd9 JB |
10 | Version: 1.1.3 |
11 | Release: 1 | |
12 | License: BSD (libFLAC/libFLAC++), GPL (programs and plugins) | |
27b8e245 | 13 | Group: Libraries |
d878a8f5 | 14 | Source0: http://dl.sourceforge.net/flac/%{name}-%{version}.tar.gz |
94159bd9 JB |
15 | # Source0-md5: b084603948b60ee338e0c29978cc580c |
16 | Patch0: %{name}-link.patch | |
17 | Patch1: %{name}-without_xmms.patch | |
27b8e245 | 18 | URL: http://flac.sourceforge.net/ |
19 | BuildRequires: autoconf | |
94159bd9 JB |
20 | BuildRequires: automake >= 1:1.7 |
21 | # for AM_ICONV | |
6ca2e66f | 22 | BuildRequires: gettext-devel |
61361cc3 | 23 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 24 | BuildRequires: libstdc++-devel |
d878a8f5 JB |
25 | BuildRequires: libtool >= 2:1.4d-3 |
26 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} | |
27 | %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1} | |
27b8e245 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a77945de | 29 | |
27b8e245 | 30 | %description |
31 | FLAC is an Open Source lossless audio codec developed by Josh Coalson. | |
32 | ||
7eefc9db JR |
33 | %description -l pl.UTF-8 |
34 | FLAC jest bezstratnym kodekiem audio z otwartymi źródłami, rozwijanym | |
14d1df27 | 35 | przez Josha Coalsona. |
27b8e245 | 36 | |
37 | %package devel | |
a77945de | 38 | Summary: FLAC - development files |
7eefc9db | 39 | Summary(pl.UTF-8): FLAC - pliki nagłówkowe |
94159bd9 | 40 | License: BSD |
27b8e245 | 41 | Group: Development/Libraries |
4cae232c | 42 | Requires: %{name} = %{version}-%{release} |
94159bd9 JB |
43 | Requires: libogg-devel >= 2:1.0 |
44 | # for -c++ only | |
45 | #Requires: libstdc++-devel | |
27b8e245 | 46 | |
47 | %description devel | |
d878a8f5 | 48 | The package contains the development header files for FLAC libraries. |
27b8e245 | 49 | |
7eefc9db JR |
50 | %description devel -l pl.UTF-8 |
51 | Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC. | |
27b8e245 | 52 | |
53 | %package static | |
a77945de | 54 | Summary: FLAC - static libraries |
7eefc9db | 55 | Summary(pl.UTF-8): FLAC - biblioteki statyczne |
94159bd9 | 56 | License: BSD |
27b8e245 | 57 | Group: Development/Libraries |
4cae232c | 58 | Requires: %{name}-devel = %{version}-%{release} |
27b8e245 | 59 | |
60 | %description static | |
d878a8f5 | 61 | The package contains FLAC static libraries. |
27b8e245 | 62 | |
7eefc9db | 63 | %description static -l pl.UTF-8 |
d878a8f5 | 64 | Ten pakiet zawiera biblioteki statyczne FLAC. |
27b8e245 | 65 | |
66 | %package -n xmms-input-flac | |
029ad246 | 67 | Summary: Free Lossless Audio Codec - XMMS plugin |
7eefc9db | 68 | Summary(pl.UTF-8): Wtyczka FLAC dla XMMS |
94159bd9 | 69 | License: GPL v2+ |
27b8e245 | 70 | Group: Libraries |
4cae232c | 71 | Requires: %{name} = %{version}-%{release} |
dd43a64f | 72 | Requires: xmms |
27b8e245 | 73 | |
74 | %description -n xmms-input-flac | |
75 | FLAC input plugin for XMMS. | |
76 | ||
7eefc9db JR |
77 | %description -n xmms-input-flac -l pl.UTF-8 |
78 | Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC. | |
27b8e245 | 79 | |
80 | %prep | |
81 | %setup -q | |
94159bd9 JB |
82 | %patch0 -p1 |
83 | %{!?with_xmms:%patch1 -p1} | |
84 | ||
27b8e245 | 85 | %build |
27b8e245 | 86 | %{__libtoolize} |
b702c07e | 87 | %{__aclocal} |
27b8e245 | 88 | %{__autoconf} |
94159bd9 | 89 | %{__autoheader} |
27b8e245 | 90 | %{__automake} |
ec1aa008 KK |
91 | %configure \ |
92 | %{!?with_static_libs:--disable-static} | |
f06c2744 | 93 | |
27b8e245 | 94 | %{__make} |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
dd43a64f | 99 | %{__make} install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 101 | |
87900f4c JB |
102 | # no makefiles in doc dirs |
103 | rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*} | |
4cae232c | 104 | rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la |
87900f4c | 105 | |
27b8e245 | 106 | %clean |
dd43a64f | 107 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 108 | |
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
27b8e245 | 113 | %defattr(644,root,root,755) |
94159bd9 | 114 | %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images} |
87900f4c | 115 | %lang(ru) %doc doc/html/ru |
94159bd9 JB |
116 | %attr(755,root,root) %{_bindir}/flac |
117 | %attr(755,root,root) %{_bindir}/metaflac | |
118 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
119 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
120 | %{_mandir}/man1/flac.1* | |
121 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
94159bd9 JB |
125 | %attr(755,root,root) %{_libdir}/libFLAC.so |
126 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
127 | %{_libdir}/libFLAC.la | |
128 | %{_libdir}/libFLAC++.la | |
129 | %{_includedir}/FLAC | |
130 | %{_includedir}/FLAC++ | |
131 | %{_aclocaldir}/libFLAC.m4 | |
132 | %{_aclocaldir}/libFLAC++.m4 | |
27b8e245 | 133 | |
ec1aa008 | 134 | %if %{with static_libs} |
27b8e245 | 135 | %files static |
136 | %defattr(644,root,root,755) | |
94159bd9 JB |
137 | %{_libdir}/libFLAC.a |
138 | %{_libdir}/libFLAC++.a | |
ec1aa008 | 139 | %endif |
27b8e245 | 140 | |
d878a8f5 | 141 | %if %{with xmms} |
27b8e245 | 142 | %files -n xmms-input-flac |
143 | %defattr(644,root,root,755) | |
94159bd9 | 144 | %attr(755,root,root) %{xmms_input_plugindir}/libxmms-flac.so |
51cc0dde | 145 | %endif |