- Some small specfile cleanups

- Add smpflags to make invocation (bz 226035)
This commit is contained in:
Hans de Goede 2007-11-14 15:30:19 +00:00
parent d5ad8e61e1
commit 84c8515aac

View File

@ -1,19 +1,21 @@
Summary: The Ogg bitstream file format library
Summary: The Ogg bitstream file format library
Name: libogg
Version: 1.1.3
Release: 6%{?dist}
Release: 7%{?dist}
Epoch: 2
Group: System Environment/Libraries
License: BSD
Group: System Environment/Libraries
License: BSD
URL: http://www.xiph.org/
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
Group: Development/Libraries
@ -26,15 +28,18 @@ Libogg is a library used for manipulating Ogg bitstreams. The
libogg-devel package contains the header files and documentation
needed for development using libogg.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .m4
%build
perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure
perl -p -i -e "s/-ffast-math//" configure
%configure --disable-static
make
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
@ -47,6 +52,15 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
mkdir -p _doc/libogg
cp -p doc/libogg/*.html doc/libogg/*.css _doc/libogg
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS CHANGES COPYING README
@ -66,14 +80,12 @@ cp -p doc/libogg/*.html doc/libogg/*.css _doc/libogg
%{_libdir}/pkgconfig/ogg.pc
%{_datadir}/aclocal/ogg.m4
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Wed Nov 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 2:1.1.3-7
- Some small specfile cleanups
- Add smpflags to make invocation (bz 226035)
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 2:1.1.3-6
- Don't install Makefile's as %doc, avoiding a multilib conflict (bz 342281)