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