| 1 | Summary: A library of functions for manipulating PNG image format files
|
|---|
| 2 | Name: libpng
|
|---|
| 3 | Version: 1.6.28
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: zlib
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | URL: http://www.libpng.org/pub/png/
|
|---|
| 8 |
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source svn http://svn.netlabs.org/repos/ports/libpng/trunk 1984
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: zlib-devel, pkgconfig
|
|---|
| 13 | BuildRequires: libtool, autoconf >= 2.65
|
|---|
| 14 | BuildRequires: automake
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | The libpng package contains a library of functions for creating and
|
|---|
| 18 | manipulating PNG (Portable Network Graphics) image format files. PNG
|
|---|
| 19 | is a bit-mapped graphics format similar to the GIF format. PNG was
|
|---|
| 20 | created to replace the GIF format, since GIF uses a patented data
|
|---|
| 21 | compression algorithm.
|
|---|
| 22 |
|
|---|
| 23 | Libpng should be installed if you need to manipulate PNG format image
|
|---|
| 24 | files.
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Development tools for programs to manipulate PNG image format files
|
|---|
| 28 | Group: Development/Libraries
|
|---|
| 29 | Requires: %{name} = %{version}-%{release}
|
|---|
| 30 | Requires: zlib-devel pkgconfig
|
|---|
| 31 |
|
|---|
| 32 | %description devel
|
|---|
| 33 | The libpng-devel package contains header files and documentation necessary
|
|---|
| 34 | for developing programs using the PNG (Portable Network Graphics) library.
|
|---|
| 35 |
|
|---|
| 36 | If you want to develop programs which will manipulate PNG image format
|
|---|
| 37 | files, you should install libpng-devel. You'll also need to install
|
|---|
| 38 | the libpng package.
|
|---|
| 39 |
|
|---|
| 40 | %package static
|
|---|
| 41 | Summary: Static PNG image format file library
|
|---|
| 42 | Group: Development/Libraries
|
|---|
| 43 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 44 |
|
|---|
| 45 | %description static
|
|---|
| 46 | The libpng-static package contains the statically linkable version of libpng.
|
|---|
| 47 | Linking to static libraries is discouraged for most applications, but it is
|
|---|
| 48 | necessary for some boot packages.
|
|---|
| 49 |
|
|---|
| 50 | %package tools
|
|---|
| 51 | Summary: Tools for PNG image format file library
|
|---|
| 52 | Group: Development/Libraries
|
|---|
| 53 | Requires: %{name} = %{version}-%{release}
|
|---|
| 54 |
|
|---|
| 55 | %description tools
|
|---|
| 56 | The libpng-tools package contains tools used by the authors of libpng.
|
|---|
| 57 |
|
|---|
| 58 | %debug_package
|
|---|
| 59 |
|
|---|
| 60 | %prep
|
|---|
| 61 | %scm_setup
|
|---|
| 62 |
|
|---|
| 63 | autoreconf -fvi
|
|---|
| 64 |
|
|---|
| 65 | %build
|
|---|
| 66 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 67 | export VENDOR="%{vendor}"
|
|---|
| 68 |
|
|---|
| 69 | %configure
|
|---|
| 70 | make %{?_smp_mflags}
|
|---|
| 71 |
|
|---|
| 72 | %install
|
|---|
| 73 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 74 |
|
|---|
| 75 | # We don't ship .la files
|
|---|
| 76 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 77 |
|
|---|
| 78 | %clean
|
|---|
| 79 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 80 |
|
|---|
| 81 | #post -p /sbin/ldconfig
|
|---|
| 82 |
|
|---|
| 83 | #postun -p /sbin/ldconfig
|
|---|
| 84 |
|
|---|
| 85 | %files
|
|---|
| 86 | %{!?_licensedir:%global license %%doc}
|
|---|
| 87 | %license LICENSE
|
|---|
| 88 | %{_libdir}/png*.dll
|
|---|
| 89 | %{_mandir}/man5/*
|
|---|
| 90 |
|
|---|
| 91 | %files devel
|
|---|
| 92 | %doc libpng-manual.txt example.c TODO CHANGES
|
|---|
| 93 | %{_bindir}/*.exe
|
|---|
| 94 | %exclude %{_bindir}/pngfix.exe
|
|---|
| 95 | %{_bindir}/*-config
|
|---|
| 96 | %{_includedir}/*
|
|---|
| 97 | %{_libdir}/png*_dll.a
|
|---|
| 98 | %{_libdir}/libpng_dll.a
|
|---|
| 99 | %{_libdir}/pkgconfig/libpng*.pc
|
|---|
| 100 | %{_mandir}/man3/*
|
|---|
| 101 |
|
|---|
| 102 | %files static
|
|---|
| 103 | %{_libdir}/png*.a
|
|---|
| 104 | %exclude %{_libdir}/png*_dll.a
|
|---|
| 105 | %{_libdir}/libpng.a
|
|---|
| 106 |
|
|---|
| 107 | %files tools
|
|---|
| 108 | %{_bindir}/pngfix.exe
|
|---|
| 109 |
|
|---|
| 110 | %changelog
|
|---|
| 111 | * Mon Feb 06 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.28-1
|
|---|
| 112 | - updated libpng to 1.6.28
|
|---|
| 113 | - use new scm_source and scm_setup macro
|
|---|
| 114 | - add bldlevel info to the dll
|
|---|
| 115 |
|
|---|
| 116 | * Thu Apr 7 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-3
|
|---|
| 117 | - added apng support
|
|---|
| 118 | used patch from https://sourceforge.net/projects/libpng-apng/files
|
|---|
| 119 | - removed -Zbin-files, as not needed
|
|---|
| 120 |
|
|---|
| 121 | * Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-2
|
|---|
| 122 | - remove %{?_isa} macro
|
|---|
| 123 |
|
|---|
| 124 | * Fri Feb 26 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.21-1
|
|---|
| 125 | - updated libpng to 1.6.21
|
|---|
| 126 | - adjusted debug package creation to latest rpm macros
|
|---|
| 127 |
|
|---|
| 128 | * Tue Sep 15 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.18-1
|
|---|
| 129 | - updated libpng to 1.6.18
|
|---|
| 130 |
|
|---|
| 131 | * Mon Feb 16 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.16-1
|
|---|
| 132 | - updated libpng to 1.6.16
|
|---|
| 133 | - add symlink for libpng
|
|---|
| 134 |
|
|---|
| 135 | * Tue Feb 10 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.6.14-1
|
|---|
| 136 | - updated libpng to 1.6.14
|
|---|
| 137 | - added .dbg files
|
|---|
| 138 |
|
|---|
| 139 | * Thu Apr 17 2014 yd
|
|---|
| 140 | - first public build.
|
|---|