- link to .pdf spec rather than ship redundant copy

- spec cleanups
This commit is contained in:
Warren Togami 2004-09-29 14:50:20 +00:00
parent 7f2d188fe0
commit 60d23ec6ff

View File

@ -1,10 +1,10 @@
Summary: The Vorbis General Audio Compression Codec.
Summary: The Vorbis General Audio Compression Codec.
Name: libvorbis
Version: 1.0.1
Release: 4
Release: 5
Epoch: 1
Group: System Environment/Libraries
Copyright: BSD
Group: System Environment/Libraries
License: BSD
URL: http://www.xiph.org/
Source: http://www.xiph.org/ogg/vorbis/download/%{name}-%{version}.tar.gz
Patch: libvorbis-1.0-m4.patch
@ -39,18 +39,23 @@ needed to develop applications with Ogg Vorbis.
%patch2 -p1 -b .underquoted
perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure
perl -p -i -e "s/-ffast-math//" configure
# link to .pdf spec rather than ship redundant copy
perl -p -i -e "s@Vorbis_I_spec.pdf@http://www.xiph.org/ogg/vorbis/doc/Vorbis_I_spec.pdf@" doc/index.html
rm -f doc/Vorbis_I_spec.pdf
%build
%configure --with-ogg-libraries=%{_libdir}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
@ -72,13 +77,17 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_datadir}/aclocal/vorbis.m4
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Wed Sep 29 2004 Warren Togami <wtogami@redhat.com> 1:1.0.1-5
- link to .pdf spec rather than ship redundant copy
- spec cleanups
* Thu Jul 15 2004 Tim Waugh <twaugh@redhat.com> 1:1.0.1-4
- Fixed warnings in shipped m4 file.