libvorbis.spec.in 3.24 KB
Newer Older
Michael Smith's avatar
Michael Smith committed
1
Name:		libvorbis
2
Version:	@VERSION@
3 4
Release:	0.xiph.1
Summary:	The Vorbis General Audio Compression Codec.
Michael Smith's avatar
Michael Smith committed
5 6 7

Group:		System Environment/Libraries
License:	BSD
Monty's avatar
 
Monty committed
8
URL:		http://www.xiph.org/
9
Vendor:		Xiph.org Foundation <team@xiph.org>
10
Source:		http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
11
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Michael Smith's avatar
Michael Smith committed
12 13 14 15 16 17 18 19 20

# We're forced to use an epoch since both Red Hat and Ximian use it in their
# rc packages
Epoch:          2
# Dirty trick to tell rpm that this package actually provides what the
# last rc and beta was offering
Provides:       %{name} = %{epoch}:1.0rc3-%{release}
Provides:       %{name} = %{epoch}:1.0beta4-%{release}

21 22
Requires:	libogg >= 1.1
BuildRequires:	libogg-devel >= 1.1
Monty's avatar
 
Monty committed
23 24 25 26 27

%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.
28 29

%package devel
Monty's avatar
 
Monty committed
30 31
Summary: 	Vorbis Library Development
Group: 		Development/Libraries
32
Requires:	libogg-devel >= 1.1
33
Requires:	libvorbis = %{version}
Michael Smith's avatar
Michael Smith committed
34 35 36 37
# Dirty trick to tell rpm that this package actually provides what the
# last rc and beta was offering
Provides:       %{name}-devel = %{epoch}:1.0rc3-%{release}
Provides:       %{name}-devel = %{epoch}:1.0beta4-%{release}
38 39

%description devel
Michael Smith's avatar
Michael Smith committed
40 41
The libvorbis-devel package contains the header files, static libraries 
and documentation needed to develop applications with libvorbis.
42 43

%prep
Monty's avatar
 
Monty committed
44
%setup -q -n %{name}-%{version}
45 46

%build
Michael Smith's avatar
Michael Smith committed
47
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --enable-static
Monty's avatar
 
Monty committed
48
make
49 50

%install
51
rm -rf $RPM_BUILD_ROOT
Michael Smith's avatar
Michael Smith committed
52

Monty's avatar
 
Monty committed
53
make DESTDIR=$RPM_BUILD_ROOT install
54

Michael Smith's avatar
Michael Smith committed
55
%clean 
56
rm -rf $RPM_BUILD_ROOT
Michael Smith's avatar
Michael Smith committed
57

58
%post -p /sbin/ldconfig
Michael Smith's avatar
Michael Smith committed
59

60
%postun -p /sbin/ldconfig
Michael Smith's avatar
Michael Smith committed
61

62 63
%files
%defattr(-,root,root)
64
%doc AUTHORS COPYING README
65 66 67
%{_libdir}/libvorbis.so.*
%{_libdir}/libvorbisfile.so.*
%{_libdir}/libvorbisenc.so.*
68 69

%files devel
Monty's avatar
 
Monty committed
70 71
%doc doc/*.html
%doc doc/*.png
72
%doc doc/*.txt
73 74
%doc doc/vorbisfile
%doc doc/vorbisenc
75
%{_datadir}/aclocal/vorbis.m4
76
%dir %{_includedir}/vorbis
77 78 79 80
%{_includedir}/vorbis/codec.h
%{_includedir}/vorbis/vorbisfile.h
%{_includedir}/vorbis/vorbisenc.h
%{_libdir}/libvorbis.a
81
%{_libdir}/libvorbis.la
82 83
%{_libdir}/libvorbis.so
%{_libdir}/libvorbisfile.a
84
%{_libdir}/libvorbisfile.la
85 86
%{_libdir}/libvorbisfile.so
%{_libdir}/libvorbisenc.a
87
%{_libdir}/libvorbisenc.la
88
%{_libdir}/libvorbisenc.so
89 90 91
%{_libdir}/pkgconfig/vorbis.pc
%{_libdir}/pkgconfig/vorbisfile.pc
%{_libdir}/pkgconfig/vorbisenc.pc
Monty's avatar
 
Monty committed
92

93
%changelog
94 95 96
* Sat May  3 2008 Ralph Giles <giles@xiph.org>
- updated source location

97 98 99 100 101 102 103 104
* Thu Jun 10 2004 Thomas Vander Stichele <thomas at apestaart dot org>
- autogenerate from configure
- fix download location
- remove Prefix
- own include dir
- move ldconfig runs to -p scripts
- change Release tag to include xiph

105 106 107
* Tue Oct 07 2003 Warren Dukes <shank@xiph.org>
- update for 1.0.1 release

Michael Smith's avatar
Michael Smith committed
108 109 110 111
* Sun Jul 14 2002 Thomas Vander Stichele <thomas@apestaart.org>
- Added BuildRequires:
- updated for 1.0 release

112 113
* Sat May 25 2002 Michael Smith <msmith@icecast.org>
- Fixed requires, copyright string.
Jack Moffitt's avatar
Jack Moffitt committed
114 115 116
* Sun Dec 31 2001 Jack Moffitt <jack@xiph.org>
- Updated for rc3 release.

117 118 119
* Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
- Updated for configurable prefixes

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