]>
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 |
3caef61b | 8 | Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio |
27b8e245 | 9 | Name: flac |
3730ca3f | 10 | Version: 1.1.4 |
94159bd9 JB |
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 |
3730ca3f JB |
15 | # Source0-md5: 3958cbd5b6ed8c14966792538e44223b |
16 | Patch0: %{name}-without_xmms.patch | |
27b8e245 | 17 | URL: http://flac.sourceforge.net/ |
18 | BuildRequires: autoconf | |
94159bd9 JB |
19 | BuildRequires: automake >= 1:1.7 |
20 | # for AM_ICONV | |
6ca2e66f | 21 | BuildRequires: gettext-devel |
61361cc3 | 22 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 23 | BuildRequires: libstdc++-devel |
d878a8f5 JB |
24 | BuildRequires: libtool >= 2:1.4d-3 |
25 | %{?with_xmms:BuildRequires: rpmbuild(macros) >= 1.125} | |
26 | %{?with_xmms:BuildRequires: xmms-devel >= 0.9.5.1} | |
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 | |
65 | %package -n xmms-input-flac | |
029ad246 | 66 | Summary: Free Lossless Audio Codec - XMMS plugin |
3caef61b | 67 | Summary(pl.UTF-8): Wtyczka FLAC dla XMMS |
94159bd9 | 68 | License: GPL v2+ |
27b8e245 | 69 | Group: Libraries |
4cae232c | 70 | Requires: %{name} = %{version}-%{release} |
dd43a64f | 71 | Requires: xmms |
27b8e245 | 72 | |
73 | %description -n xmms-input-flac | |
74 | FLAC input plugin for XMMS. | |
75 | ||
7eefc9db JR |
76 | %description -n xmms-input-flac -l pl.UTF-8 |
77 | Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC. | |
27b8e245 | 78 | |
79 | %prep | |
80 | %setup -q | |
3730ca3f | 81 | %{!?with_xmms:%patch0 -p1} |
94159bd9 | 82 | |
27b8e245 | 83 | %build |
27b8e245 | 84 | %{__libtoolize} |
b702c07e | 85 | %{__aclocal} |
27b8e245 | 86 | %{__autoconf} |
94159bd9 | 87 | %{__autoheader} |
27b8e245 | 88 | %{__automake} |
ec1aa008 KK |
89 | %configure \ |
90 | %{!?with_static_libs:--disable-static} | |
f06c2744 | 91 | |
27b8e245 | 92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
dd43a64f | 97 | %{__make} install \ |
98 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 99 | |
87900f4c JB |
100 | # no makefiles in doc dirs |
101 | rm -f doc/html/{Makefile*,images/Makefile*,ru/Makefile*} | |
4cae232c | 102 | rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la |
87900f4c | 103 | |
27b8e245 | 104 | %clean |
dd43a64f | 105 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 106 | |
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
27b8e245 | 111 | %defattr(644,root,root,755) |
94159bd9 | 112 | %doc AUTHORS COPYING.Xiph README doc/html/{*.html,images} |
87900f4c | 113 | %lang(ru) %doc doc/html/ru |
94159bd9 JB |
114 | %attr(755,root,root) %{_bindir}/flac |
115 | %attr(755,root,root) %{_bindir}/metaflac | |
116 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
117 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
118 | %{_mandir}/man1/flac.1* | |
119 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
94159bd9 JB |
123 | %attr(755,root,root) %{_libdir}/libFLAC.so |
124 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
125 | %{_libdir}/libFLAC.la | |
126 | %{_libdir}/libFLAC++.la | |
127 | %{_includedir}/FLAC | |
128 | %{_includedir}/FLAC++ | |
3730ca3f JB |
129 | %{_pkgconfigdir}/flac.pc |
130 | %{_pkgconfigdir}/flac++.pc | |
94159bd9 JB |
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 |