Package review cleanups, don't ship static libraries

This commit is contained in:
Matthias Clasen 2007-02-08 14:33:27 +00:00
parent ccf8e7fec2
commit fc4fb63071

View File

@ -1,24 +1,23 @@
Summary: The Ogg bitstream file format library.
Summary: The Ogg bitstream file format library
Name: libogg
Version: 1.1.3
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 2
Group: System Environment/Libraries
License: BSD
URL: http://www.xiph.org/
Source: http://www.xiph.org/pub/ogg/vorbis/download/libogg-%{version}.tar.gz
Patch: libogg-1.0-m4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
Patch0: libogg-1.0-m4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Libogg is a library for manipulating Ogg bitstream file formats.
Libogg supports both making Ogg bitstreams and getting packets from
Ogg bitstreams.
%package devel
Summary: Files needed for development using libogg.
Summary: Files needed for development using libogg
Group: Development/Libraries
Requires: libogg = %{epoch}:%{version}
Requires: libogg = %{epoch}:%{version}-%{release}
Requires: pkgconfig
%description devel
@ -28,16 +27,16 @@ needed for development using libogg.
%prep
%setup -q -n %{name}-%{version}
%patch -p1
%patch0 -p1 -b .m4
%build
perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure
perl -p -i -e "s/-ffast-math//" configure
%configure
%configure --disable-static
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
@ -58,19 +57,22 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_includedir}/ogg/ogg.h
%{_includedir}/ogg/os_types.h
%{_includedir}/ogg/config_types.h
%{_libdir}/libogg.a
%{_libdir}/libogg.so
%{_libdir}/pkgconfig/ogg.pc
%{_datadir}/aclocal/ogg.m4
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Thu Feb 8 2007 Matthias Clasen <mclasen@redhat.com> - 2:1.1.3-3
- Package review cleanups
- Don't ship a static library
* Thu Aug 17 2006 Matthias Clasen <mclasen@redhat.com> - 2:1.1.3-2.fc6
- Fix 202280