diff --git a/.gitignore b/.gitignore index e69de29..734cdbe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +libpng-1.4.3.tar.bz2 +/libpng-1.4.8.tar.xz +/libpng-1.5.7.tar.xz diff --git a/mingw32-libpng.spec b/mingw32-libpng.spec new file mode 100644 index 0000000..97f365d --- /dev/null +++ b/mingw32-libpng.spec @@ -0,0 +1,157 @@ +%global __strip %{_mingw32_strip} +%global __objdump %{_mingw32_objdump} +%define __debug_install_post %{_mingw32_debug_install_post} + +Name: mingw32-libpng +Version: 1.5.7 +Release: 2%{?dist} +Summary: MinGW Windows Libpng library + +License: zlib +URL: http://www.libpng.org/pub/png/ +Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.xz + +Group: Development/Libraries + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 68 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils +BuildRequires: mingw32-zlib + +Requires: pkgconfig + +%description +MinGW Windows Libpng library. + + +%package static +Summary: Static version of MinGW Windows Libpng library +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries + +%description static +MinGW Windows Libpng library. + +This package contains static cross-compiled libraries. + +%{?_mingw32_debug_package} + + +%prep +%setup -q -n libpng-%{version} + + +%build +%{_mingw32_configure} +make %{?_smp_mflags} + + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +# Drop all .la files +find $RPM_BUILD_ROOT -name "*.la" -delete + +# No need to distribute manpages which appear in the Fedora +# native packages already. +rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir} + + +%files +%doc ANNOUNCE CHANGES LICENSE README TODO +%{_mingw32_bindir}/libpng-config +%{_mingw32_bindir}/libpng15-15.dll +%{_mingw32_bindir}/libpng15-config +%{_mingw32_includedir}/libpng15 +%{_mingw32_includedir}/png.h +%{_mingw32_includedir}/pngconf.h +%{_mingw32_includedir}/pnglibconf.h +%{_mingw32_libdir}/libpng.dll.a +%{_mingw32_libdir}/libpng15.dll.a +%{_mingw32_libdir}/pkgconfig/libpng.pc +%{_mingw32_libdir}/pkgconfig/libpng15.pc + +%files static +%{_mingw32_libdir}/libpng.a +%{_mingw32_libdir}/libpng15.a + +%changelog +* Mon Feb 27 2012 Erik van Pienbroek - 1.5.7-2 +- Rebuild against the mingw-w64 toolchain + +* Tue Jan 31 2012 Erik van Pienbroek - 1.5.7-1 +- Update to 1.5.7 +- Dropped .la files + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Dec 24 2011 Ivan Romanov - 1.4.8-2 +- New static subpackage + +* Fri Jul 22 2011 Kalev Lember - 1.4.8-1 +- Update to 1.4.8 (CVE-2011-2690, CVE-2011-2692) +- Generate debuginfo subpackage +- Removed static libs from the main package +- Spec cleanup + +* Wed Jun 29 2011 Richard W.M. Jones - 1.4.3-3 +- Include fix for CVE-2011-2501 (RHBZ#717510, RHBZ#717511). + +* Tue Feb 08 2011 Fedora Release Engineering - 1.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jul 4 2010 Erik van Pienbroek - 1.4.3-1 +- Update to 1.4.3 +- Fixes CVE-2010-1205 (BZ #608238) +- Fixes CVE-2010-2249 (BZ #608644) +- Use %%global instead of %%define +- Fixed %%defattr tag +- Dropped unneeded patches + +* Fri Nov 20 2009 Erik van Pienbroek - 1.2.40-2 +- In the previous build no symbols were exported in the resulting DLL making this + package unusable. This should be fixed for now (but may need more research) + +* Thu Nov 5 2009 Richard W.M. Jones - 1.2.40-1 +- New upstream version 1.2.40. + +* Sat Jul 25 2009 Fedora Release Engineering - 1.2.37-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 9 2009 Richard W.M. Jones - 1.2.37-1 +- New upstream version 1.2.37 to fix SECURITY bug RHBZ#504782. + +* Wed Feb 25 2009 Richard W.M. Jones - 1.2.35-1 +- Update to libpng 1.2.35, to fix CVE-2009-0040 (Tom Lane). + +* Wed Feb 25 2009 Fedora Release Engineering - 1.2.34-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Richard W.M. Jones - 1.2.34-3 +- Rebuild for mingw32-gcc 4.4 + +* Tue Jan 13 2009 Richard W.M. Jones - 1.2.34-2 +- Depend on mingw32-filesystem >= 40 so we can still build in F-10. + +* Tue Jan 13 2009 Richard W.M. Jones - 1.2.34-1 +- Rebase to 1.2.34 and patches from Fedora. +- Requires pkgconfig. +- Add documentation. + +* Wed Sep 24 2008 Richard W.M. Jones - 1.2.31-5 +- Rename mingw -> mingw32. + +* Mon Sep 22 2008 Daniel P. Berrange - 1.2.31-4 +- Add patches from rawhide RPM + +* Sun Sep 21 2008 Richard W.M. Jones - 1.2.31-3 +- Don't duplicate Fedora native manpages. + +* Wed Sep 10 2008 Richard W.M. Jones - 1.2.31-2 +- Remove static library. + +* Tue Sep 9 2008 Daniel P. Berrange - 1.2.31-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..c3b4e96 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c3ae9ce4e81ec0aafdd4ac961586ee0d libpng-1.5.7.tar.xz