]>
Commit | Line | Data |
---|---|---|
4893b918 | 1 | # |
95ebac5f | 2 | # Conditional build: |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
99a73753 | 5 | Summary: Ogg Bitstream Library |
f7e4589b ER |
6 | Summary(pl.UTF-8): Biblioteka obsługi strumieni bitowych Ogg |
7 | Summary(pt_BR.UTF-8): Biblioteca libogg | |
99a73753 | 8 | Name: libogg |
50e007ba | 9 | Version: 1.3.4 |
92dcd8d6 | 10 | Release: 1 |
3dbeeca9 | 11 | Epoch: 2 |
2ad21628 | 12 | License: BSD |
dd48fe45 | 13 | Group: Libraries |
92dcd8d6 | 14 | Source0: https://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.xz |
50e007ba | 15 | # Source0-md5: eadef24aad6e3e8379ba0d14971fd64a |
bf87f688 | 16 | Patch0: %{name}-ac_fixes.patch |
50e007ba | 17 | URL: https://www.xiph.org/ogg/ |
92dcd8d6 | 18 | BuildRequires: autoconf >= 2.50 |
50e007ba JB |
19 | BuildRequires: automake >= 1:1.11 |
20 | BuildRequires: libtool >= 2:2 | |
3aa34eea JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
ba96b84a | 23 | Obsoletes: libogg0 |
48608515 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
99a73753 | 25 | |
26 | %description | |
f5b2e9e8 | 27 | Libogg is a library for manipulating Ogg bitstreams. It handles both |
28 | making Ogg bitstreams and getting packets from Ogg bitstreams. | |
99a73753 | 29 | |
fe4ff0c9 JR |
30 | %description -l pl.UTF-8 |
31 | Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg. | |
32 | Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów | |
bf87f688 AM |
33 | ze strumieni. |
34 | ||
fe4ff0c9 JR |
35 | %description -l pt_BR.UTF-8 |
36 | Ogg e' uma familia de diversos projetos de multimídia e processamento | |
37 | de sinais. libogg é a biblioteca do formato de codec bitstream para o | |
38 | codec Vorbis, formando o encoder/decoder de áudio Ogg Vorbis. | |
dd504e92 | 39 | |
99a73753 | 40 | %package devel |
dd48fe45 | 41 | Summary: Ogg Bitstream Library Development |
f7e4589b ER |
42 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja developerska |
43 | Summary(pt_BR.UTF-8): Bibliotecas para desenvolvimento com o Ogg Vorbis | |
99a73753 | 44 | Group: Development/Libraries |
48608515 | 45 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ba96b84a | 46 | Obsoletes: libogg0-devel |
99a73753 | 47 | |
48 | %description devel | |
49 | The libogg-devel package contains the header files and documentation | |
50 | needed to develop applications with libogg. | |
51 | ||
fe4ff0c9 JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe i dokumentacja potrzebna do rozwijania aplikacji | |
54 | używających biblioteki libogg. | |
bf87f688 | 55 | |
fe4ff0c9 JR |
56 | %description devel -l pt_BR.UTF-8 |
57 | Bibliotecas e arquivos de inclusão para desenvolvimento com o Ogg | |
dd504e92 | 58 | Vorbis. |
59 | ||
99a73753 | 60 | %package static |
bf87f688 | 61 | Summary: Ogg Bitstream Static Library |
f7e4589b ER |
62 | Summary(pl.UTF-8): Biblioteka statyczna Ogg |
63 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com o Ogg Vorbis | |
99a73753 | 64 | Group: Development/Libraries |
48608515 | 65 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
99a73753 | 66 | |
67 | %description static | |
68 | The libogg-static package contains the static libraries of libogg. | |
69 | ||
fe4ff0c9 | 70 | %description static -l pl.UTF-8 |
bf87f688 AM |
71 | Statyczna biblioteka libogg. |
72 | ||
fe4ff0c9 JR |
73 | %description static -l pt_BR.UTF-8 |
74 | Bibliotecas estáticas para desenvolvimento com o Ogg Vorbis. | |
dd504e92 | 75 | |
99a73753 | 76 | %prep |
128b75e8 | 77 | %setup -q |
99a73753 | 78 | %patch0 -p1 |
79 | ||
80 | %build | |
3172ee6c | 81 | %{__libtoolize} |
a8bf4e1e | 82 | %{__aclocal} |
9c2055ab | 83 | %{__autoconf} |
84 | %{__automake} | |
95ebac5f | 85 | %configure \ |
86 | %{!?with_static_libs:--disable-static} | |
99a73753 | 87 | %{__make} |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
dd48fe45 | 91 | |
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT \ | |
94 | m4datadir=%{_aclocaldir} | |
95 | ||
4b5ce94a | 96 | mv -f $RPM_BUILD_ROOT%{_docdir}/%{name} devel-docs |
dd48fe45 | 97 | |
128b75e8 | 98 | %clean |
dd48fe45 | 99 | rm -rf $RPM_BUILD_ROOT |
99a73753 | 100 | |
a27aa9dd JB |
101 | %post -p /sbin/ldconfig |
102 | %postun -p /sbin/ldconfig | |
103 | ||
99a73753 | 104 | %files |
105 | %defattr(644,root,root,755) | |
92dcd8d6 | 106 | %doc AUTHORS CHANGES COPYING README.md |
950efba3 JB |
107 | %attr(755,root,root) %{_libdir}/libogg.so.*.*.* |
108 | %attr(755,root,root) %ghost %{_libdir}/libogg.so.0 | |
99a73753 | 109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
a27aa9dd | 112 | %doc devel-docs/* |
950efba3 JB |
113 | %attr(755,root,root) %{_libdir}/libogg.so |
114 | %{_libdir}/libogg.la | |
dd48fe45 | 115 | %{_includedir}/ogg |
116 | %{_aclocaldir}/ogg.m4 | |
6046e239 | 117 | %{_pkgconfigdir}/ogg.pc |
99a73753 | 118 | |
95ebac5f | 119 | %if %{with static_libs} |
99a73753 | 120 | %files static |
dd48fe45 | 121 | %defattr(644,root,root,755) |
950efba3 | 122 | %{_libdir}/libogg.a |
95ebac5f | 123 | %endif |