%define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} %define _use_internal_dependency_generator 0 %define __find_requires %{_mingw32_findrequires} %define __find_provides %{_mingw32_findprovides} Summary: The Ogg bitstream file format library Name: mingw32-libogg Version: 1.1.3 Release: 9%{?dist} Epoch: 2 Group: System Environment/Libraries License: BSD URL: http://www.xiph.org/ Source: http://downloads.xiph.org/releases/ogg/libogg-%{version}.tar.gz Patch0: libogg-1.0-m4.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: mingw32-filesystem >= 40 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils %description Libogg is a library for manipulating Ogg bitstream file formats. Libogg supports both making Ogg bitstreams and getting packets from Ogg bitstreams. %prep %setup -q -n libogg-%{version} %patch0 -p1 -b .m4 %build perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure perl -p -i -e "s/-ffast-math//" configure %{_mingw32_configure} \ --disable-static make %{?_smp_mflags} CFLAGS="$CFLAGS -D__MSVCRT_VERSION__=0x0601" %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/*.a # create a cleaned up (Makefile free) copy of doc/libogg for %doc #mkdir -p _doc/libogg #cp -p doc/libogg/*.html doc/libogg/*.css _doc/libogg # Remove documentation. rm -rf $RPM_BUILD_ROOT%{_mingw32_docdir}/libogg-1.1.3 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS CHANGES COPYING README #%{_mingw32_libdir}/libogg.dll.a %dir %{_mingw32_includedir}/ogg %{_mingw32_includedir}/ogg/ogg.h %{_mingw32_includedir}/ogg/os_types.h %{_mingw32_includedir}/ogg/config_types.h %{_mingw32_bindir}/libogg-0.dll %{_mingw32_libdir}/pkgconfig/ogg.pc %{_mingw32_datadir}/aclocal/ogg.m4 %changelog * Mon Mar 23 2009 Zoltan Seress - 2:1.1.3-9 - Windows cross compilation * Tue Feb 19 2008 Fedora Release Engineering - 2:1.1.3-9 - Autorebuild for GCC 4.3 * Wed Nov 14 2007 Hans de Goede - 2:1.1.3-8 - Some more small specfile cleanups for merge review (bz 226035) * Wed Nov 14 2007 Hans de Goede - 2:1.1.3-7 - Some small specfile cleanups - Add smpflags to make invocation (bz 226035) * Sun Oct 21 2007 Hans de Goede - 2:1.1.3-6 - Don't install Makefile's as %%doc, avoiding a multilib conflict (bz 342281) * Wed Aug 22 2007 Adam Jackson - 2:1.1.3-5 - Rebuild for PPC toolchain bug * Sun Jun 17 2007 Matthias Clasen - 2:1.1.3-4 - Require automake in the -devel package * Thu Feb 8 2007 Matthias Clasen - 2:1.1.3-3 - Package review cleanups - Don't ship a static library * Thu Aug 17 2006 Matthias Clasen - 2:1.1.3-2.fc6 - Fix 202280 * Wed Jul 12 2006 Jesse Keating - 2:1.1.3-1.2.1 - rebuild * Fri Feb 10 2006 Jesse Keating - 2:1.1.3-1.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2:1.1.3-1.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Jan 18 2006 John (J5) Palmieri 2:1.1.3-1 - Update to 1.1.3 - doc/ogg changed to doc/libogg * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Mar 02 2005 John (J5) Palmieri 2:1.1.2-2 - rebuild for gcc 4.0 * Wed Sep 29 2004 Colin Walters 2:1.1.2-1 - Update to 1.1.2 - Delete upstreamed libogg-1.1-64bit.patch - Delete upstreamed libogg-underquoted.patch * Thu Jul 15 2004 Tim Waugh 2:1.1-4 - Fixed warnings in shipped m4 file. * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Dec 11 2003 Bill Nottingham 2:1.1-1 - update to 1.1 * Sun Jun 8 2003 Tim Powers 2:1.0-5.1 - build for RHEL * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue Jun 3 2003 Jeff Johnson - add explicit epoch's where needed. * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Dec 11 2002 Bill Nottingham 2:1.0-3 - fix ogg.m4 * Fri Nov 29 2002 Tim Powers 2:1.0-2 - remove unpackaged files from the buildroot * Fri Jul 18 2002 Bill Nottingham 1.0-1 - one-dot-oh * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Tue Jan 1 2002 Bill Nottingham - update to 1.0rc3 * Mon Aug 13 2001 Bill Nottingham - update to 1.0rc2 * Fri Jul 6 2001 Bill Nottingham - own %%{_includedir}/ogg * Tue Jun 19 2001 Bill Nottingham - update to 1.0rc1 * Mon Feb 26 2001 Bill Nottingham - fix license tag * Mon Feb 26 2001 Bill Nottingham - beta4 * Tue Feb 6 2001 Bill Nottingham - update CVS in prep for beta4 * Thu Dec 27 2000 Bill Nottingham - update CVS * Tue Dec 11 2000 Bill Nottingham - fix bogus group * Fri Dec 01 2000 Bill Nottingham - rebuild because of broken fileutils * Mon Nov 13 2000 Bill Nottingham - clean up specfile slightly * Sat Sep 02 2000 Jack Moffitt - initial spec file created