5 Summary: The Vorbis General Audio Compression Codec
6 Url: http://www.vorbis.com/
7 Group: System/Libraries
8 Source: %{name}-%{version}.tar.xz
11 BuildRequires: libogg-devel
12 BuildRequires: libtool
13 BuildRequires: pkgconfig
16 Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
17 general-purpose compressed audio format for audio and music at fixed
18 and variable bit rates from 16 to 128 kbps/channel.
20 The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
21 libmatroska (matroska) can also be used.
24 %package -n libvorbisenc
26 Summary: The Vorbis General Audio Compression Codec
27 Group: System/Libraries
29 %description -n libvorbisenc
30 Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
31 general-purpose compressed audio format for audio and music at fixed
32 and variable bit rates from 16 to 128 kbps/channel.
34 The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
35 libmatroska (matroska) can also be used.
37 %package -n libvorbisfile
39 Summary: The Vorbis General Audio Compression Codec
40 Group: System/Libraries
42 %description -n libvorbisfile
43 Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
44 general-purpose compressed audio format for audio and music at fixed
45 and variable bit rates from 16 to 128 kbps/channel.
47 The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
48 libmatroska (matroska) can also be used.
51 Summary: Include Files and Libraries mandatory for Ogg Vorbis Development
52 Group: Development/Libraries/C and C++
54 Requires: libogg-devel
55 Requires: libvorbis = %{version}
56 Requires: libvorbisenc = %{version}
57 Requires: libvorbisfile = %{version}
60 This package contains all necessary include files and libraries needed
61 to compile and develop applications that use libvorbis.
64 Summary: Documentation of Ogg/Vorbis library
65 Group: Documentation/Other
69 This package contains documents for Ogg/Vorbis library, including the
76 # Fix optimization level
77 sed -i s,-O20,-O3,g configure.ac
80 %configure --disable-examples --disable-static
88 mkdir -p %{buildroot}%{_docdir}/%{name}
89 mv %{buildroot}%{_datadir}/doc/libvorbis-* %{buildroot}%{_docdir}/%{name}
90 install -c -m 0644 doc/Vorbis_I_spec.* %{buildroot}%{_docdir}/%{name}
91 # remove unneeded files
92 find %{buildroot}%{_docdir}/ -empty -delete
93 %fdupes -s %{buildroot}%{_docdir}
96 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
100 %post -n libvorbisenc -p /sbin/ldconfig
102 %postun -n libvorbisenc -p /sbin/ldconfig
104 %post -n libvorbisfile -p /sbin/ldconfig
106 %postun -n libvorbisfile -p /sbin/ldconfig
109 %defattr(0644,root,root,0755)
111 %{_libdir}/libvorbis.so.0*
113 %files -n libvorbisenc
114 %defattr(0644,root,root,0755)
116 %{_libdir}/libvorbisenc.so.2*
118 %files -n libvorbisfile
119 %defattr(0644,root,root,0755)
121 %{_libdir}/libvorbisfile.so.3*
124 %defattr(-,root,root)
126 %{_datadir}/aclocal/*.m4
127 %{_includedir}/vorbis
129 %{_libdir}/pkgconfig/*.pc
132 %defattr(-,root,root)
133 %doc %{_docdir}/%{name}