]>
Commit | Line | Data |
---|---|---|
f7c08461 | 1 | # Conditional build: |
2 | %bcond_without static_libs # don't build static library | |
3 | # | |
1498a854 | 4 | Summary: A library for reading and writing Ogg encapsulated data |
b7da2411 | 5 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu danych w opakowaniu Ogg |
1498a854 JB |
6 | Name: liboggz |
7 | Version: 0.9.5 | |
8 | Release: 1 | |
9 | License: BSD | |
10 | Group: Libraries | |
11 | Source0: http://annodex.net/software/liboggz/download/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 781fab29dea3c5e9d39ecbd1d007fb98 | |
13 | URL: http://annodex.net/software/liboggz/index.html | |
f7c08461 | 14 | BuildRequires: docbook-to-man |
1498a854 JB |
15 | BuildRequires: libogg-devel >= 2:1.0 |
16 | BuildRequires: pkgconfig | |
17 | Requires: libogg >= 2:1.0 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | liboggz is a library that provides simple parsing and seeking of files | |
22 | and streams based on the Ogg file format. liboggz requires libogg to | |
23 | work. | |
24 | ||
25 | liboggz knows about Ogg Speex, Ogg Vorbis, Ogg Theora, and the Ogg | |
26 | based Annodex formats, thus allows parsing (though not decoding) of | |
27 | these files. For getting decoding and encoding functionality you will | |
28 | require in addition libspeex, libvorbis, libtheora, and libannodex | |
29 | respectively. | |
30 | ||
ffba339a JR |
31 | %description -l pl.UTF-8 |
32 | liboggz to biblioteka umożliwiająca prostą analizę i przeszukiwanie | |
33 | plików i strumieni opartych na formacie Ogg. liboggz wymaga do | |
34 | działania biblioteki libogg. | |
1498a854 JB |
35 | |
36 | liboggz wie o formatach Ogg Speex, Ogg Vorbis, Ogg Theora oraz | |
ffba339a JR |
37 | opartych na Ogg formatach Annodex, co pozwala analizować (ale nie |
38 | dekodować) pliki w tych formatach. Kodowanie i dekodowanie ich | |
1498a854 JB |
39 | wymaga dodatkowych bibliotek - odpowiednio: libspeex, libvorbis, |
40 | libtheora, libannodex. | |
41 | ||
42 | %package devel | |
43 | Summary: Header files for liboggz library | |
b7da2411 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liboggz |
1498a854 JB |
45 | Group: Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: libogg-devel >= 2:1.0 | |
48 | ||
49 | %description devel | |
50 | Header files for liboggz library. | |
51 | ||
ffba339a JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe biblioteki liboggz. | |
1498a854 JB |
54 | |
55 | %package static | |
56 | Summary: Static liboggz library | |
b7da2411 | 57 | Summary(pl.UTF-8): Statyczna biblioteka liboggz |
1498a854 JB |
58 | Group: Development/Libraries |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static liboggz library. | |
63 | ||
ffba339a | 64 | %description static -l pl.UTF-8 |
1498a854 JB |
65 | Statyczna 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 | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | rm -rf $RPM_BUILD_ROOT%{_docdir}/liboggz | |
82 | ||
83 | %clean | |
84 | rm -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 |