]>
Commit | Line | Data |
---|---|---|
4464bdf7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
5 | Summary: High-level Opus encoding library | |
6 | Summary(pl.UTF-8): Wysokopoziomowa biblioteka do kodowania w formacie Opus | |
7 | Name: libopusenc | |
628162b6 | 8 | Version: 0.2.1 |
4464bdf7 JB |
9 | Release: 1 |
10 | License: BSD | |
11 | Group: Libraries | |
12 | Source0: https://archive.mozilla.org/pub/opus/%{name}-%{version}.tar.gz | |
628162b6 | 13 | # Source0-md5: f038ea0f4168d184c76b42d293697c57 |
4464bdf7 JB |
14 | URL: http://opus-codec.org/ |
15 | BuildRequires: doxygen | |
16 | BuildRequires: opus-devel >= 1.1 | |
17 | Requires: opus >= 1.1 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | The libopusenc library provides a high-level API for encoding .opus | |
22 | files. libopusenc depends only on libopus. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Biblioteka libopusenc udostępnia wysokopoziomowe API do kodowania | |
26 | plików .opus. libopusenc zależy tylko od libopus. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for libopusenc library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libopusenc | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | Requires: opus-devel >= 1.1 | |
34 | ||
35 | %description devel | |
36 | Header files for libopusenc library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libopusenc. | |
40 | ||
41 | %package static | |
42 | Summary: Static libopusenc library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka libopusenc | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libopusenc library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka libopusenc. | |
52 | ||
53 | %package apidocs | |
54 | Summary: API documentation for libopusenc library | |
55 | Summary(pl.UTF-8): Dokumentacja API biblioteki libopusenc | |
56 | Group: Documentation | |
4464bdf7 | 57 | BuildArch: noarch |
4464bdf7 JB |
58 | |
59 | %description apidocs | |
60 | API documentation for libopusenc library. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API biblioteki libopusenc. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure \ | |
70 | --disable-silent-rules \ | |
71 | %{!?with_static_libs:--disable-static} | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | # obsoleted by pkg-config | |
81 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopusenc.la | |
82 | # packaged as %doc | |
83 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libopusenc | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS COPYING README.md | |
94 | %attr(755,root,root) %{_libdir}/libopusenc.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libopusenc.so.0 | |
96 | ||
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libopusenc.so | |
100 | %{_includedir}/opus/opusenc.h | |
101 | %{_pkgconfigdir}/libopusenc.pc | |
102 | ||
103 | %if %{with static_libs} | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/libopusenc.a | |
107 | %endif | |
108 | ||
109 | %files apidocs | |
110 | %defattr(644,root,root,755) | |
111 | %doc doc/html/{search,*.css,*.html,*.js,*.png} |