]> git.pld-linux.org Git - packages/opusfile.git/blob - opusfile.spec
rebuild with openssl 3.0.0
[packages/opusfile.git] / opusfile.spec
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
4 Version:        0.12
5 Release:        2
6 License:        BSD
7 Group:          Libraries
8 Source0:        https://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
9 # Source0-md5:  45e8c62f6cd413395223c82f06bfa8ec
10 URL:            https://opus-codec.org/
11 BuildRequires:  libogg-devel >= 2:1.3
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}
30 Requires:       libogg-devel >= 2:1.3
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
66 # obsoleted by pkg-config
67 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopus*.la
68
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)
80 %doc AUTHORS COPYING README.md
81 %attr(755,root,root) %{_libdir}/libopusfile.so.*.*.*
82 %attr(755,root,root) %ghost %{_libdir}/libopusfile.so.0
83 %attr(755,root,root) %{_libdir}/libopusurl.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libopusurl.so.0
85
86 %files devel
87 %defattr(644,root,root,755)
88 %doc doc/html/*
89 %attr(755,root,root) %{_libdir}/libopusfile.so
90 %attr(755,root,root) %{_libdir}/libopusurl.so
91 %{_includedir}/opus/opusfile.h
92 %{_pkgconfigdir}/opusfile.pc
93 %{_pkgconfigdir}/opusurl.pc
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libopusfile.a
98 %{_libdir}/libopusurl.a
This page took 0.089144 seconds and 3 git commands to generate.