]> git.pld-linux.org Git - SPECS.git/blob - liboggz.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / liboggz.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        A library for reading and writing Ogg encapsulated data
6 Summary(pl.UTF-8):      Biblioteka do odczytu i zapisu danych w opakowaniu Ogg
7 Name:           liboggz
8 Version:        1.1.1
9 Release:        2
10 License:        BSD
11 Group:          Libraries
12 Source0:        http://downloads.xiph.org/releases/liboggz/%{name}-%{version}.tar.gz
13 # Source0-md5:  3649a657f8e368b881ba8b1b57381ff7
14 Patch0:         %{name}-destdir.patch
15 URL:            http://www.xiph.org/oggz/
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake
18 BuildRequires:  docbook-to-man
19 BuildRequires:  libogg-devel >= 2:1.0
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 Requires:       libogg >= 2:1.0
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 liboggz is a library that provides simple parsing and seeking of files
27 and streams based on the Ogg file format. liboggz requires libogg to
28 work.
29
30 liboggz knows about Ogg Speex, Ogg Vorbis, Ogg Theora, and the Ogg
31 based Annodex formats, thus allows parsing (though not decoding) of
32 these files. For getting decoding and encoding functionality you will
33 require in addition libspeex, libvorbis, libtheora, and libannodex
34 respectively.
35
36 %description -l pl.UTF-8
37 liboggz to biblioteka umożliwiająca prostą analizę i przeszukiwanie
38 plików i strumieni opartych na formacie Ogg. liboggz wymaga do
39 działania biblioteki libogg.
40
41 liboggz wie o formatach Ogg Speex, Ogg Vorbis, Ogg Theora oraz
42 opartych na Ogg formatach Annodex, co pozwala analizować (ale nie
43 dekodować) pliki w tych formatach. Kodowanie i dekodowanie ich
44 wymaga dodatkowych bibliotek - odpowiednio: libspeex, libvorbis,
45 libtheora, libannodex.
46
47 %package devel
48 Summary:        Header files for liboggz library
49 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki liboggz
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       libogg-devel >= 2:1.0
53
54 %description devel
55 Header files for liboggz library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki liboggz.
59
60 %package static
61 Summary:        Static liboggz library
62 Summary(pl.UTF-8):      Statyczna biblioteka liboggz
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static liboggz library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka liboggz.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal} -I m4
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         %{!?with_static_libs:--disable-static}
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/liboggz
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS COPYING ChangeLog README
103 %attr(755,root,root) %{_bindir}/oggz*
104 %attr(755,root,root) %{_libdir}/liboggz.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/liboggz.so.2
106 %{_mandir}/man1/oggz*.1*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %doc doc/liboggz/html/*
111 %attr(755,root,root) %{_libdir}/liboggz.so
112 %{_libdir}/liboggz.la
113 %{_includedir}/oggz
114 %{_pkgconfigdir}/oggz.pc
115
116 %if %{with static_libs}
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/liboggz.a
120 %endif
This page took 0.834718 seconds and 3 git commands to generate.