Summary: A library of functions for manipulating PNG image format files Name: libpng Version: 1.6.31 Release: 1%{?dist} License: zlib Group: System Environment/Libraries URL: http://www.libpng.org/pub/png/ Vendor: bww bitwise works GmbH %scm_source svn http://svn.netlabs.org/repos/ports/libpng/trunk 2227 BuildRequires: zlib-devel, pkgconfig BuildRequires: libtool, autoconf >= 2.65 BuildRequires: automake %description The libpng package contains a library of functions for creating and manipulating PNG (Portable Network Graphics) image format files. PNG is a bit-mapped graphics format similar to the GIF format. PNG was created to replace the GIF format, since GIF uses a patented data compression algorithm. Libpng should be installed if you need to manipulate PNG format image files. %package devel Summary: Development tools for programs to manipulate PNG image format files Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: zlib-devel pkgconfig %description devel The libpng-devel package contains header files and documentation necessary for developing programs using the PNG (Portable Network Graphics) library. If you want to develop programs which will manipulate PNG image format files, you should install libpng-devel. You'll also need to install the libpng package. %package static Summary: Static PNG image format file library Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static The libpng-static package contains the statically linkable version of libpng. Linking to static libraries is discouraged for most applications, but it is necessary for some boot packages. %package tools Summary: Tools for PNG image format file library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description tools The libpng-tools package contains tools used by the authors of libpng. %debug_package %prep %scm_setup autoreconf -fvi %build export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export VENDOR="%{vendor}" %configure make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install # We don't ship .la files rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la %check #to run make check use "--with check" %if %{?_with_check:1}%{!?_with_check:0} make check %endif %clean rm -rf $RPM_BUILD_ROOT #post -p /sbin/ldconfig #postun -p /sbin/ldconfig %files %{!?_licensedir:%global license %%doc} %license LICENSE %{_libdir}/png*.dll %{_mandir}/man5/* %files devel %doc libpng-manual.txt example.c TODO CHANGES %{_bindir}/*.exe %exclude %{_bindir}/pngfix.exe %{_bindir}/*-config %{_includedir}/* %{_libdir}/png*_dll.a %{_libdir}/libpng_dll.a %{_libdir}/pkgconfig/libpng*.pc %{_mandir}/man3/* %files static %{_libdir}/png*.a %exclude %{_libdir}/png*_dll.a %{_libdir}/libpng.a %files tools %{_bindir}/pngfix.exe %changelog * Wed Aug 09 2017 Silvan Scherrer 1.6.31-1 - updated libpng to 1.6.31 * Mon Feb 06 2017 Silvan Scherrer 1.6.28-1 - updated libpng to 1.6.28 - use new scm_source and scm_setup macro - add bldlevel info to the dll * Thu Apr 7 2016 Silvan Scherrer 1.6.21-3 - added apng support used patch from https://sourceforge.net/projects/libpng-apng/files - removed -Zbin-files, as not needed * Fri Feb 26 2016 Silvan Scherrer 1.6.21-2 - remove %{?_isa} macro * Fri Feb 26 2016 Silvan Scherrer 1.6.21-1 - updated libpng to 1.6.21 - adjusted debug package creation to latest rpm macros * Tue Sep 15 2015 Silvan Scherrer 1.6.18-1 - updated libpng to 1.6.18 * Mon Feb 16 2015 Silvan Scherrer 1.6.16-1 - updated libpng to 1.6.16 - add symlink for libpng * Tue Feb 10 2015 Silvan Scherrer 1.6.14-1 - updated libpng to 1.6.14 - added .dbg files * Thu Apr 17 2014 yd - first public build.