libvorbis.spec 2.17 KB
Newer Older
Monty's avatar
 
Monty committed
1
%define name	libvorbis
Monty's avatar
 
Monty committed
2
%define version	1.0rc3
Monty's avatar
 
Monty committed
3
%define release 1
4

Monty's avatar
 
Monty committed
5 6 7 8 9
Summary:	The Vorbis General Audio Compression Codec
Name:		%{name}
Version:	%{version}
Release:	%{release}
Group:		Libraries/Multimedia
10
Copyright:	BSD
Monty's avatar
 
Monty committed
11
URL:		http://www.xiph.org/
12
Vendor:		Xiph.org Foundation <team@xiph.org>
Monty's avatar
 
Monty committed
13 14
Source:		ftp://ftp.xiph.org/pub/ogg/vorbis/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-root
Jack Moffitt's avatar
Jack Moffitt committed
15
Requires:	libogg >= 1.0rc3
16
Prefix:		%{_prefix}
Monty's avatar
 
Monty committed
17 18 19 20 21

%description
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for audio and music at fixed 
and variable bitrates from 16 to 128 kbps/channel.
22 23

%package devel
Monty's avatar
 
Monty committed
24 25
Summary: 	Vorbis Library Development
Group: 		Development/Libraries
Jack Moffitt's avatar
Jack Moffitt committed
26
Requires:	libogg-devel >= 1.0rc3
27
Requires:	libvorbis = %{version}
28 29

%description devel
Monty's avatar
 
Monty committed
30 31
The libvorbis-devel package contains the header files and documentation
needed to develop applications with libvorbis.
32 33

%prep
Monty's avatar
 
Monty committed
34
%setup -q -n %{name}-%{version}
35 36

%build
Monty's avatar
 
Monty committed
37
if [ ! -f configure ]; then
38
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
Monty's avatar
 
Monty committed
39
else
40
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
Monty's avatar
 
Monty committed
41 42
fi
make
43 44

%install
Monty's avatar
 
Monty committed
45 46
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
47 48 49

%files
%defattr(-,root,root)
Monty's avatar
 
Monty committed
50
%doc COPYING
51
%doc AUTHORS
Monty's avatar
 
Monty committed
52
%doc README
53 54 55
%{_libdir}/libvorbis.so.*
%{_libdir}/libvorbisfile.so.*
%{_libdir}/libvorbisenc.so.*
56 57

%files devel
Monty's avatar
 
Monty committed
58 59
%doc doc/*.html
%doc doc/*.png
60
%doc doc/*.txt
61 62
%doc doc/vorbisfile
%doc doc/vorbisenc
63 64 65 66 67 68 69 70 71 72
%{_datadir}/aclocal/vorbis.m4
%{_includedir}/vorbis/codec.h
%{_includedir}/vorbis/vorbisfile.h
%{_includedir}/vorbis/vorbisenc.h
%{_libdir}/libvorbis.a
%{_libdir}/libvorbis.so
%{_libdir}/libvorbisfile.a
%{_libdir}/libvorbisfile.so
%{_libdir}/libvorbisenc.a
%{_libdir}/libvorbisenc.so
Monty's avatar
 
Monty committed
73 74 75 76 77 78 79 80 81

%clean 
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig
82 83

%changelog
84 85
* Sat May 25 2002 Michael Smith <msmith@icecast.org>
- Fixed requires, copyright string.
Jack Moffitt's avatar
Jack Moffitt committed
86 87 88
* Sun Dec 31 2001 Jack Moffitt <jack@xiph.org>
- Updated for rc3 release.

89 90 91
* Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
- Updated for configurable prefixes

Monty's avatar
 
Monty committed
92 93
* Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
- initial spec file created