]>
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 | |
57 | %if "%{_rpmversion}" >= "5" | |
58 | BuildArch: noarch | |
59 | %endif | |
60 | ||
61 | %description apidocs | |
62 | API documentation for libopusenc library. | |
63 | ||
64 | %description apidocs -l pl.UTF-8 | |
65 | Dokumentacja API biblioteki libopusenc. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | ||
70 | %build | |
71 | %configure \ | |
72 | --disable-silent-rules \ | |
73 | %{!?with_static_libs:--disable-static} | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | # obsoleted by pkg-config | |
83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopusenc.la | |
84 | # packaged as %doc | |
85 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libopusenc | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc AUTHORS COPYING README.md | |
96 | %attr(755,root,root) %{_libdir}/libopusenc.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libopusenc.so.0 | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libopusenc.so | |
102 | %{_includedir}/opus/opusenc.h | |
103 | %{_pkgconfigdir}/libopusenc.pc | |
104 | ||
105 | %if %{with static_libs} | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libopusenc.a | |
109 | %endif | |
110 | ||
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
113 | %doc doc/html/{search,*.css,*.html,*.js,*.png} |