%global __strip %{_mingw32_strip} %global __objdump %{_mingw32_objdump} %global _use_internal_dependency_generator 0 %global __find_requires %{_mingw32_findrequires} %global __find_provides %{_mingw32_findprovides} %global basepkgname libogg Name: mingw32-%{basepkgname} Version: 1.1.4 Release: 4%{?dist} Summary: MinGW Windows Ogg bitstream file format library License: BSD Group: Development/Libraries URL: http://www.xiph.org/ Source0: http://downloads.xiph.org/releases/ogg/%{basepkgname}-%{version}.tar.gz Patch0: %{basepkgname}-m4.patch Patch1: %{basepkgname}-acconf.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: mingw32-filesystem >= 49 BuildRequires: mingw32-gcc BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig Requires: mingw32-filesystem >= 49 Requires: pkgconfig %description Libogg is a library for manipulating Ogg bitstream file formats. Libogg supports both making Ogg bitstreams and getting packets from Ogg bitstreams. This is the MinGW Windows port of the library. # Automatically create a debuginfo package %{_mingw32_debug_package} %prep %setup -q -n %{basepkgname}-%{version} %patch0 -p1 %patch1 -p1 %build # Update libtool, config.sub and config.guess (shipped versions are ancient) libtoolize --force --copy aclocal -I m4 rm -f config.sub config.guess automake --add-missing autoconf # Replace original compilation flags: # -O20 is plain wrong, gcc currently only understands -O0 up to -O3 # -ffast-math often introduces subtle bugs at runtime sed -i -e "s/-O20/%{?_mingw32_cflags}/g" -e "s/-ffast-math//g" configure %{_mingw32_configure} --disable-static --enable-shared make %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install # Remove documentation, duplicates host system docs rm -rf %{buildroot}%{_mingw32_datadir}/doc # Uncomment and unescape to strip the debug symbols from the resulting artifacts #%%{_mingw32_strip} --strip-unneeded %%{buildroot}%%{_mingw32_bindir}/libogg-0.dll %check # Uncomment and unescape to run the package checks. # The check stage will not work in mock (thus also not in koji). # To skip the checks for a particular run once uncommented, run rpmbuild # including the following command line argument: # --define 'check exit 0' #%%{_mingw32_make} check %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING %{_mingw32_bindir}/libogg-0.dll %{_mingw32_libdir}/libogg.dll.a %{_mingw32_libdir}/libogg.la %{_mingw32_libdir}/pkgconfig/ogg.pc %dir %{_mingw32_includedir}/ogg %{_mingw32_includedir}/ogg/*h %{_mingw32_datadir}/aclocal/*m4 %changelog * Tue Feb 2 2010 Stefan Riemens - 1.1.4-4 - Fix %%defattr line - Automatically create a debuginfo package * Mon Oct 19 2009 Mihai Limbasan - 1.1.4-3 - Removed -static package. - Added explicit Requirement on mingw32-filesystem. - aclocal and pkgconfig directories under _mingw32_libdir are no longer installed, mingw32-filesystem already provides them. - Removed redundant BuildRequire mingw32-binutils which is already Required by mingw32-gcc. - Moved checks to the proper build stage. - Corrected aclocal invocation. - Cosmetic cleanup. * Sun Oct 18 2009 Mihai Limbasan - 1.1.4-2 - Improved permissions on the built artifacts (Windows DLLs and the associated import libraries and libtool scripts do not need to be executable.) * Sun Oct 18 2009 Mihai Limbasan - 1.1.4-1 - Initial RPM release.