]>
Commit | Line | Data |
---|---|---|
51cc0dde | 1 | # |
2 | # Conditional build: | |
0142c34f | 3 | %bcond_without static_libs # 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 |
2048bebf JP |
8 | Version: 1.4.3 |
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 |
2048bebf | 13 | # Source0-md5: 7cab20b46e0bc859234bf5ba7da81625 |
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 |
0142c34f JB |
25 | # flac 1.4.2 dropped xmms plugin; for now we build plugin in xmms-input-flac.spec from flac 1.4.1 sources. |
26 | # Uncomment this Obsoletes in case xmms-input-flac.spec doesn't build any longer: | |
27 | #Obsoletes: xmms-input-flac < 1.4.2 | |
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 |
3caef61b | 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 | 43 | Requires: libogg-devel >= 2:1.0 |
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} | |
061b946c | 82 | Requires: libstdc++-devel |
ef4d7dd5 JB |
83 | |
84 | %description c++-devel | |
85 | Header files for FLAC++ library. | |
86 | ||
87 | %description c++-devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe biblioteki FLAC++. | |
89 | ||
90 | %package c++-static | |
91 | Summary: Static FLAC++ library | |
92 | Summary(pl.UTF-8): Statyczna biblioteka FLAC++ | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-c++-devel = %{version}-%{release} | |
95 | ||
96 | %description c++-static | |
97 | Static FLAC++ library. | |
98 | ||
99 | %description c++-static -l pl.UTF-8 | |
100 | Statyczna biblioteka FLAC++. | |
101 | ||
27b8e245 | 102 | %prep |
103 | %setup -q | |
94159bd9 | 104 | |
5f0f203e | 105 | %{__rm} m4/ogg.m4 |
1193aa41 | 106 | |
27b8e245 | 107 | %build |
27b8e245 | 108 | %{__libtoolize} |
4406e427 | 109 | %{__aclocal} -I m4 |
27b8e245 | 110 | %{__autoconf} |
94159bd9 | 111 | %{__autoheader} |
27b8e245 | 112 | %{__automake} |
ec1aa008 | 113 | %configure \ |
e7c3645f | 114 | --disable-silent-rules \ |
b0fb0a30 | 115 | %{?with_static_libs:--enable-static} |
f06c2744 | 116 | |
27b8e245 | 117 | %{__make} |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
0a440035 | 121 | |
dd43a64f | 122 | %{__make} install \ |
123 | DESTDIR=$RPM_BUILD_ROOT | |
27b8e245 | 124 | |
f7542552 JB |
125 | # packaged as %doc in -devel |
126 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
3ee523f4 | 127 | |
27b8e245 | 128 | %clean |
dd43a64f | 129 | rm -rf $RPM_BUILD_ROOT |
27b8e245 | 130 | |
131 | %post -p /sbin/ldconfig | |
132 | %postun -p /sbin/ldconfig | |
133 | ||
ef4d7dd5 JB |
134 | %post c++ -p /sbin/ldconfig |
135 | %postun c++ -p /sbin/ldconfig | |
136 | ||
27b8e245 | 137 | %files |
27b8e245 | 138 | %defattr(644,root,root,755) |
0a440035 | 139 | %doc AUTHORS CHANGELOG.md COPYING.Xiph README.md |
94159bd9 JB |
140 | %attr(755,root,root) %{_bindir}/flac |
141 | %attr(755,root,root) %{_bindir}/metaflac | |
142 | %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* | |
61385d8e | 143 | %attr(755,root,root) %ghost %{_libdir}/libFLAC.so.12 |
94159bd9 JB |
144 | %{_mandir}/man1/flac.1* |
145 | %{_mandir}/man1/metaflac.1* | |
27b8e245 | 146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
61385d8e | 149 | %doc doc/api/*.{html,png} doc/images/logo*.{gif,svg} |
94159bd9 | 150 | %attr(755,root,root) %{_libdir}/libFLAC.so |
94159bd9 | 151 | %{_libdir}/libFLAC.la |
94159bd9 | 152 | %{_includedir}/FLAC |
3730ca3f | 153 | %{_pkgconfigdir}/flac.pc |
94159bd9 | 154 | %{_aclocaldir}/libFLAC.m4 |
27b8e245 | 155 | |
ec1aa008 | 156 | %if %{with static_libs} |
27b8e245 | 157 | %files static |
158 | %defattr(644,root,root,755) | |
94159bd9 | 159 | %{_libdir}/libFLAC.a |
ef4d7dd5 JB |
160 | %endif |
161 | ||
162 | %files c++ | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_libdir}/libFLAC++.so.*.*.* | |
61385d8e | 165 | %attr(755,root,root) %ghost %{_libdir}/libFLAC++.so.10 |
ef4d7dd5 JB |
166 | |
167 | %files c++-devel | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libFLAC++.so | |
170 | %{_libdir}/libFLAC++.la | |
171 | %{_includedir}/FLAC++ | |
172 | %{_pkgconfigdir}/flac++.pc | |
173 | %{_aclocaldir}/libFLAC++.m4 | |
174 | ||
175 | %if %{with static_libs} | |
176 | %files c++-static | |
177 | %defattr(644,root,root,755) | |
94159bd9 | 178 | %{_libdir}/libFLAC++.a |
ec1aa008 | 179 | %endif |