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