libogg.spec.in 2.87 KB
Newer Older
1
Name:		libogg
2 3 4
Version:	@VERSION@
Release:	0.xiph.1
Summary:	Ogg Bitstream Library.
5 6 7

Group:		System Environment/Libraries
License:	BSD
Jack Moffitt's avatar
Jack Moffitt committed
8
URL:		http://www.xiph.org/
Stan Seibert's avatar
Stan Seibert committed
9
Vendor:		Xiph.org Foundation <team@xiph.org>
10
Source:		http://www.vorbis.com/files/1.0.1/unix/%{name}-%{version}.tar.gz
11
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
12

13 14 15 16 17 18 19
# 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}
Jack Moffitt's avatar
Jack Moffitt committed
20 21 22 23 24 25

%description
Libogg is a library for manipulating ogg bitstreams.  It handles
both making ogg bitstreams and getting packets from ogg bitstreams.

%package devel
26 27 28 29 30 31 32 33
Summary: 	Ogg Bitstream Library Development
Group: 		Development/Libraries
Requires: 	libogg = %{version}
# 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}

Jack Moffitt's avatar
Jack Moffitt committed
34
%description devel
35 36
The libogg-devel package contains the header files, static libraries
and documentation needed to develop applications with libogg.
Jack Moffitt's avatar
Jack Moffitt committed
37 38 39 40 41

%prep
%setup -q -n %{name}-%{version}

%build
42
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --enable-static
Jack Moffitt's avatar
Jack Moffitt committed
43 44 45
make

%install
46
rm -rf $RPM_BUILD_ROOT
47

Jack Moffitt's avatar
Jack Moffitt committed
48 49
make DESTDIR=$RPM_BUILD_ROOT install

50
%clean
51
rm -rf $RPM_BUILD_ROOT
52

53
%post -p /sbin/ldconfig
54

55
%postun -p /sbin/ldconfig
56

Jack Moffitt's avatar
Jack Moffitt committed
57 58
%files
%defattr(-,root,root)
59
%doc AUTHORS CHANGES COPYING README
60
%{_libdir}/libogg.so.*
Jack Moffitt's avatar
Jack Moffitt committed
61 62

%files devel
63
%defattr(-,root,root)
Jack Moffitt's avatar
Jack Moffitt committed
64 65 66 67 68 69
%doc doc/index.html
%doc doc/framing.html
%doc doc/oggstream.html
%doc doc/white-ogg.png
%doc doc/white-xifish.png
%doc doc/stream.png
70 71
%doc doc/libogg/*.html
%doc doc/libogg/style.css
72
%dir %{_includedir}/ogg
73 74 75 76
%{_includedir}/ogg/ogg.h
%{_includedir}/ogg/os_types.h
%{_includedir}/ogg/config_types.h
%{_libdir}/libogg.a
77
%{_libdir}/libogg.la
78
%{_libdir}/libogg.so
79
%{_libdir}/pkgconfig/ogg.pc
80
%{_datadir}/aclocal/ogg.m4
Jack Moffitt's avatar
Jack Moffitt committed
81 82

%changelog
83 84 85
* Thu Nov 08 2007 Conrad Parker <conrad@metadecks.org>
- update doc dir (reported by thosmos on #vorbis)

86 87 88 89 90 91 92 93
* 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

94 95 96
* Tue Oct 07 2003 Warren Dukes <shank@xiph.org>
- update for 1.1 release

97 98 99 100 101
* Sun Jul 14 2002 Thomas Vander Stichele <thomas@apestaart.org>
- update for 1.0 release
- conform Group to Red Hat's idea of it
- take out case where configure doesn't exist; a tarball should have it

102 103 104
* Tue Dec 18 2001 Jack Moffitt <jack@xiph.org>
- Update for RC3 release

105 106 107
* Sun Oct 07 2001 Jack Moffitt <jack@xiph.org>
- add support for configurable prefixes

Jack Moffitt's avatar
Jack Moffitt committed
108 109
* Sat Sep 02 2000 Jack Moffitt <jack@icecast.org>
- initial spec file created