- 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 Name: libogg
Version: 1.1.3 Version: 1.1.3
Release: 6%{?dist} Release: 7%{?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://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz Source: http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
Patch0: libogg-1.0-m4.patch Patch0: libogg-1.0-m4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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
@ -26,15 +28,18 @@ Libogg is a library used for manipulating Ogg bitstreams. The
libogg-devel package contains the header files and documentation libogg-devel package contains the header files and documentation
needed for development using libogg. needed for development using libogg.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1 -b .m4 %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 --disable-static %configure --disable-static
make make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -47,6 +52,15 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
mkdir -p _doc/libogg mkdir -p _doc/libogg
cp -p doc/libogg/*.html doc/libogg/*.css _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 %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS CHANGES COPYING README %doc AUTHORS CHANGES COPYING README
@ -66,14 +80,12 @@ cp -p doc/libogg/*.html doc/libogg/*.css _doc/libogg
%{_libdir}/pkgconfig/ogg.pc %{_libdir}/pkgconfig/ogg.pc
%{_datadir}/aclocal/ogg.m4 %{_datadir}/aclocal/ogg.m4
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog %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 * 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) - Don't install Makefile's as %doc, avoiding a multilib conflict (bz 342281)