1Name:		libvorbis
2Version:	@VERSION@
3Release:	0.xiph.1
4Summary:	The Vorbis General Audio Compression Codec.
5
6Group:		System Environment/Libraries
7License:	BSD
8URL:		http://www.xiph.org/
9Vendor:		Xiph.org Foundation <team@xiph.org>
10Source:		http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
11BuildRoot:	%{_tmppath}/%{name}-%{version}-root
12
13# We're forced to use an epoch since both Red Hat and Ximian use it in their
14# rc packages
15Epoch:          2
16# Dirty trick to tell rpm that this package actually provides what the
17# last rc and beta was offering
18Provides:       %{name} = %{epoch}:1.0rc3-%{release}
19Provides:       %{name} = %{epoch}:1.0beta4-%{release}
20
21Requires:	libogg >= 1.1
22BuildRequires:	libogg-devel >= 1.1
23
24%description
25Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
26general-purpose compressed audio format for audio and music at fixed 
27and variable bitrates from 16 to 128 kbps/channel.
28
29%package devel
30Summary: 	Vorbis Library Development
31Group: 		Development/Libraries
32Requires:	libogg-devel >= 1.1
33Requires:	libvorbis = %{version}
34# Dirty trick to tell rpm that this package actually provides what the
35# last rc and beta was offering
36Provides:       %{name}-devel = %{epoch}:1.0rc3-%{release}
37Provides:       %{name}-devel = %{epoch}:1.0beta4-%{release}
38
39%description devel
40The libvorbis-devel package contains the header files, static libraries 
41and documentation needed to develop applications with libvorbis.
42
43%prep
44%setup -q -n %{name}-%{version}
45
46%build
47CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --enable-static
48make
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53make DESTDIR=$RPM_BUILD_ROOT install
54
55%clean 
56rm -rf $RPM_BUILD_ROOT
57
58%post -p /sbin/ldconfig
59
60%postun -p /sbin/ldconfig
61
62%files
63%defattr(-,root,root)
64%doc AUTHORS COPYING README
65%{_libdir}/libvorbis.so.*
66%{_libdir}/libvorbisfile.so.*
67%{_libdir}/libvorbisenc.so.*
68
69%files devel
70%doc doc/*.html
71%doc doc/*.png
72%doc doc/*.txt
73%doc doc/vorbisfile
74%doc doc/vorbisenc
75%{_datadir}/aclocal/vorbis.m4
76%dir %{_includedir}/vorbis
77%{_includedir}/vorbis/codec.h
78%{_includedir}/vorbis/vorbisfile.h
79%{_includedir}/vorbis/vorbisenc.h
80%{_libdir}/libvorbis.a
81%{_libdir}/libvorbis.la
82%{_libdir}/libvorbis.so
83%{_libdir}/libvorbisfile.a
84%{_libdir}/libvorbisfile.la
85%{_libdir}/libvorbisfile.so
86%{_libdir}/libvorbisenc.a
87%{_libdir}/libvorbisenc.la
88%{_libdir}/libvorbisenc.so
89%{_libdir}/pkgconfig/vorbis.pc
90%{_libdir}/pkgconfig/vorbisfile.pc
91%{_libdir}/pkgconfig/vorbisenc.pc
92
93%changelog
94* Sat May  3 2008 Ralph Giles <giles@xiph.org>
95- updated source location
96
97* Thu Jun 10 2004 Thomas Vander Stichele <thomas at apestaart dot org>
98- autogenerate from configure
99- fix download location
100- remove Prefix
101- own include dir
102- move ldconfig runs to -p scripts
103- change Release tag to include xiph
104
105* Tue Oct 07 2003 Warren Dukes <shank@xiph.org>
106- update for 1.0.1 release
107
108* Sun Jul 14 2002 Thomas Vander Stichele <thomas@apestaart.org>
109- Added BuildRequires:
110- updated for 1.0 release
111
112* Sat May 25 2002 Michael Smith <msmith@icecast.org>
113- Fixed requires, copyright string.
114* Sun Dec 31 2001 Jack Moffitt <jack@xiph.org>
115- Updated for rc3 release.
116
117* Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
118- Updated for configurable prefixes
119
120* Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
121- initial spec file created
122