]>
Commit | Line | Data |
---|---|---|
51cc0dde | 1 | # |
2 | # Conditional build: | |
ec1aa008 | 3 | %bcond_without static_libs # don't build static library |
5f0f203e | 4 | |
029ad246 | 5 | Summary: Free Lossless Audio Codec |
3caef61b | 6 | Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio |
27b8e245 | 7 | Name: flac |
b0fb0a30 | 8 | Version: 1.4.2 |
fc1d5153 | 9 | Release: 1 |
e7c3645f | 10 | License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins) |
27b8e245 | 11 | Group: Libraries |
f7542552 | 12 | Source0: https://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz |
b0fb0a30 | 13 | # Source0-md5: ca9140f37b286d2571e37d66aae50f92 |
f7542552 | 14 | URL: https://xiph.org/flac/ |
e7c3645f JB |
15 | BuildRequires: autoconf >= 2.60 |
16 | BuildRequires: automake >= 1:1.11 | |
61385d8e | 17 | BuildRequires: doxygen |
94159bd9 | 18 | # for AM_ICONV |
649e3bf9 | 19 | BuildRequires: gettext-tools |
61361cc3 | 20 | BuildRequires: libogg-devel >= 2:1.0 |
8c896b25 | 21 | BuildRequires: libstdc++-devel |
e7c3645f | 22 | BuildRequires: libtool >= 2:2 |
e7c3645f | 23 | BuildRequires: tar >= 1:1.22 |
e7c3645f | 24 | BuildRequires: xz |
b0fb0a30 | 25 | Obsoletes: xmms-input-flac < 1.4.2 |
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 | 41 | Requires: libogg-devel >= 2:1.0 |
27b8e245 | 42 | |
43 | %description devel | |
d878a8f5 | 44 | The package contains the development header files for FLAC libraries. |
27b8e245 | 45 | |
7eefc9db JR |
46 | %description devel -l pl.UTF-8 |
47 | Ten pakiet zawiera pliki nagłówkowe bibliotek FLAC. | |
27b8e245 | 48 | |
49 | %package static | |
a77945de | 50 | Summary: FLAC - static libraries |
3caef61b | 51 | Summary(pl.UTF-8): FLAC - biblioteki statyczne |
94159bd9 | 52 | License: BSD |
27b8e245 | 53 | Group: Development/Libraries |
4cae232c | 54 | Requires: %{name}-devel = %{version}-%{release} |
27b8e245 | 55 | |
56 | %description static | |
d878a8f5 | 57 | The package contains FLAC static libraries. |
27b8e245 | 58 | |
7eefc9db | 59 | %description static -l pl.UTF-8 |
d878a8f5 | 60 | Ten pakiet zawiera biblioteki statyczne FLAC. |
27b8e245 | 61 | |
ef4d7dd5 JB |
62 | %package c++ |
63 | Summary: FLAC++ - C++ API for FLAC codec | |
64 | Summary(pl.UTF-8): FLAC++ - API C++ do kodeka FLAC | |
65 | Group: Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description c++ | |
69 | FLAC++ - C++ API for FLAC codec. | |
70 | ||
71 | %description c++ -l pl.UTF-8 | |
72 | FLAC++ - API C++ do kodeka FLAC. | |
73 | ||
74 | %package c++-devel | |
75 | Summary: Header files for FLAC++ library | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++ | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-c++ = %{version}-%{release} | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
061b946c | 80 | Requires: libstdc++-devel |
ef4d7dd5 JB |
81 | |
82 | %description c++-devel | |
83 | Header files for FLAC++ library. | |
84 | ||
85 | %description c++-devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe biblioteki FLAC++. | |
87 | ||
88 | %package c++-static | |
89 | Summary: Static FLAC++ library | |
90 | Summary(pl.UTF-8): Statyczna biblioteka FLAC++ | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-c++-devel = %{version}-%{release} | |
93 | ||
94 | %description c++-static | |
95 | Static FLAC++ library. | |
96 | ||
97 | %description c++-static -l pl.UTF-8 | |
98 | Statyczna biblioteka FLAC++. | |
99 | ||
27b8e245 | 100 | %prep |
101 | %setup -q | |
94159bd9 | 102 | |
5f0f203e | 103 | %{__rm} m4/ogg.m4 |
1193aa41 | 104 | |
27b8e245 | 105 | %build |
27b8e245 | 106 | %{__libtoolize} |
4406e427 | 107 | %{__aclocal} -I m4 |
27b8e245 | 108 | %{__autoconf} |
94159bd9 | 109 | %{__autoheader} |
27b8e245 | 110 | %{__automake} |
ec1aa008 | 111 | %configure \ |
e7c3645f | 112 | --disable-silent-rules \ |
b0fb0a30 | 113 | %{?with_static_libs:--enable-static} |
f06c2744 | 114 | |
27b8e245 | 115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
0a440035 | 119 | |
dd43a64f | 120 | %{__make} install \ |
121 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 122 | |
f7542552 JB |
123 | # packaged as %doc in -devel |
124 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
3ee523f4 | 125 | |
27b8e245 | 126 | %clean |
dd43a64f | 127 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 128 | |
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
ef4d7dd5 JB |
132 | %post c++ -p /sbin/ldconfig |
133 | %postun c++ -p /sbin/ldconfig | |
134 | ||
27b8e245 | 135 | %files |
27b8e245 | 136 | %defattr(644,root,root,755) |
0a440035 | 137 | %doc AUTHORS CHANGELOG.md COPYING.Xiph README.md |
94159bd9 JB |
138 | %attr(755,root,root) %{_bindir}/flac |
139 | %attr(755,root,root) %{_bindir}/metaflac | |
140 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
61385d8e | 141 | %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.12 |
94159bd9 JB |
142 | %{_mandir}/man1/flac.1* |
143 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 144 | |
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
61385d8e | 147 | %doc doc/api/*.{html,png} doc/images/logo*.{gif,svg} |
94159bd9 | 148 | %attr(755,root,root) %{_libdir}/libFLAC.so |
94159bd9 | 149 | %{_libdir}/libFLAC.la |
94159bd9 | 150 | %{_includedir}/FLAC |
3730ca3f | 151 | %{_pkgconfigdir}/flac.pc |
94159bd9 | 152 | %{_aclocaldir}/libFLAC.m4 |
27b8e245 | 153 | |
ec1aa008 | 154 | %if %{with static_libs} |
27b8e245 | 155 | %files static |
156 | %defattr(644,root,root,755) | |
94159bd9 | 157 | %{_libdir}/libFLAC.a |
ef4d7dd5 JB |
158 | %endif |
159 | ||
160 | %files c++ | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
61385d8e | 163 | %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.10 |
ef4d7dd5 JB |
164 | |
165 | %files c++-devel | |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
168 | %{_libdir}/libFLAC++.la | |
169 | %{_includedir}/FLAC++ | |
170 | %{_pkgconfigdir}/flac++.pc | |
171 | %{_aclocaldir}/libFLAC++.m4 | |
172 | ||
173 | %if %{with static_libs} | |
174 | %files c++-static | |
175 | %defattr(644,root,root,755) | |
94159bd9 | 176 | %{_libdir}/libFLAC++.a |
ec1aa008 | 177 | %endif |