]>
Commit | Line | Data |
---|---|---|
2fc55d00 JB |
1 | Summary: Library for decoding .opus files, including seeking support |
2 | Summary(pl.UTF-8): Biblioteka do dekodowania plików .opus wraz z obsługą przewijania | |
3 | Name: opusfile | |
70a490fd | 4 | Version: 0.12 |
a5f27bb8 | 5 | Release: 1 |
2fc55d00 JB |
6 | License: BSD |
7 | Group: Libraries | |
70a490fd JB |
8 | Source0: https://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 45e8c62f6cd413395223c82f06bfa8ec | |
10 | URL: https://opus-codec.org/ | |
ff1ca251 | 11 | BuildRequires: libogg-devel >= 2:1.3 |
2fc55d00 JB |
12 | BuildRequires: openssl-devel |
13 | BuildRequires: opus-devel >= 1.0.1 | |
14 | BuildRequires: pkgconfig | |
15 | Requires: libogg >= 1:1.3 | |
16 | Requires: opus >= 1.0.1 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Library for decoding .opus files, including seeking support. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Biblioteka do dekodowania plików .opus wraz z obsługą przewijania. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for opusfile library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki opusfile | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
ff1ca251 | 30 | Requires: libogg-devel >= 2:1.3 |
2fc55d00 JB |
31 | Requires: openssl-devel |
32 | Requires: opus-devel >= 1.0.1 | |
33 | ||
34 | %description devel | |
35 | Header files for opusfile library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki opusfile. | |
39 | ||
40 | %package static | |
41 | Summary: Static opusfile library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka opusfile | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static opusfile library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka opusfile. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | %configure \ | |
57 | --disable-silent-rules | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
d5a86082 JB |
66 | # obsoleted by pkg-config |
67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopus*.la | |
68 | ||
2fc55d00 JB |
69 | # packaged as %doc |
70 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/opusfile | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
d5a86082 | 80 | %doc AUTHORS COPYING README.md |
2fc55d00 JB |
81 | %attr(755,root,root) %{_libdir}/libopusfile.so.*.*.* |
82 | %attr(755,root,root) %ghost %{_libdir}/libopusfile.so.0 | |
10340c6c JB |
83 | %attr(755,root,root) %{_libdir}/libopusurl.so.*.*.* |
84 | %attr(755,root,root) %ghost %{_libdir}/libopusurl.so.0 | |
2fc55d00 JB |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %doc doc/html/* | |
89 | %attr(755,root,root) %{_libdir}/libopusfile.so | |
10340c6c | 90 | %attr(755,root,root) %{_libdir}/libopusurl.so |
2fc55d00 JB |
91 | %{_includedir}/opus/opusfile.h |
92 | %{_pkgconfigdir}/opusfile.pc | |
10340c6c | 93 | %{_pkgconfigdir}/opusurl.pc |
2fc55d00 JB |
94 | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libopusfile.a | |
10340c6c | 98 | %{_libdir}/libopusurl.a |