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