2004-09-09 07:37:41 +00:00
|
|
|
|
Summary: A library of functions for manipulating PNG image format files.
|
|
|
|
|
Name: libpng
|
2004-09-09 07:41:06 +00:00
|
|
|
|
Version: 1.2.2
|
|
|
|
|
Release: 5
|
|
|
|
|
License: OSI certified
|
2004-09-09 07:37:41 +00:00
|
|
|
|
Group: System Environment/Libraries
|
2004-09-09 07:37:47 +00:00
|
|
|
|
Source: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-%{version}.tar.bz2
|
2004-09-09 07:41:06 +00:00
|
|
|
|
Source2: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-1.2.2patch03-makefiles.tar.gz
|
|
|
|
|
Patch0: libpng-1.2.2-rhconf.patch
|
2004-09-09 07:37:47 +00:00
|
|
|
|
Patch1: libpng-1.0.9-badchunks.patch
|
2004-09-09 07:38:04 +00:00
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 07:37:41 +00:00
|
|
|
|
BuildPrereq: zlib-devel
|
|
|
|
|
URL: http://www.libpng.org/pub/png/
|
2004-09-09 07:41:06 +00:00
|
|
|
|
%define LIBVER 3.%{version}
|
2004-09-09 07:37:41 +00:00
|
|
|
|
Epoch: 2
|
2004-09-09 07:37:47 +00:00
|
|
|
|
Conflicts: qt < 2.2.2
|
2004-09-09 07:37:41 +00:00
|
|
|
|
|
|
|
|
|
%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
|
2004-09-09 07:38:04 +00:00
|
|
|
|
Requires: libpng = %{version}, zlib-devel
|
2004-09-09 07:37:41 +00:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The libpng-devel package contains the header files and static
|
|
|
|
|
libraries 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.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2004-09-09 07:41:06 +00:00
|
|
|
|
## dump in the fixed makefiles (remove this with 1.2.3, presumably)
|
|
|
|
|
(cd scripts && tar zxf %{SOURCE2})
|
|
|
|
|
|
2004-09-09 07:37:41 +00:00
|
|
|
|
ln -s scripts/makefile.linux Makefile
|
2004-09-09 07:38:21 +00:00
|
|
|
|
%patch0 -p1 -b .rhconf
|
2004-09-09 07:37:47 +00:00
|
|
|
|
%patch1 -p1 -b .badchunk
|
2004-09-09 07:37:41 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 07:37:53 +00:00
|
|
|
|
|
2004-09-09 07:37:41 +00:00
|
|
|
|
make install prefix=$RPM_BUILD_ROOT/usr
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{3,5}
|
|
|
|
|
install -c -m 644 *.3 $RPM_BUILD_ROOT%{_mandir}/man3
|
|
|
|
|
install -c -m 644 *.5 $RPM_BUILD_ROOT%{_mandir}/man5
|
2004-09-09 07:41:06 +00:00
|
|
|
|
|
|
|
|
|
ln -s libpng12/png.h $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
|
ln -s libpng12/pngconf.h $RPM_BUILD_ROOT%{_includedir}
|
2004-09-09 07:37:41 +00:00
|
|
|
|
|
|
|
|
|
# I don't know what this is doing here.
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/libpng.so*
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc *.txt example.c README TODO CHANGES
|
2004-09-09 07:41:06 +00:00
|
|
|
|
%{_libdir}/libpng*.so.*
|
2004-09-09 07:37:41 +00:00
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 07:41:06 +00:00
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/libpng*.a
|
|
|
|
|
%{_libdir}/libpng*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*
|
2004-09-09 07:37:47 +00:00
|
|
|
|
%{_mandir}/man3/*
|
2004-09-09 07:37:41 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 07:41:06 +00:00
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-4
|
|
|
|
|
- Don't own %{_libdir}/pkgconfig
|
|
|
|
|
- Don't strip library, that's up to rpm
|
|
|
|
|
|
|
|
|
|
* Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-3
|
|
|
|
|
- Forgot png.h
|
|
|
|
|
|
|
|
|
|
* Mon May 6 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-2
|
|
|
|
|
- Fix compatibility with everyone else.
|
|
|
|
|
|
|
|
|
|
* Thu May 2 2002 Havoc Pennington <hp@redhat.com>
|
|
|
|
|
- 1.2.2 plus makefile patches tarball
|
|
|
|
|
- update file list to contain versioned libpng only
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
2004-09-09 07:40:11 +00:00
|
|
|
|
|
2004-09-09 07:41:06 +00:00
|
|
|
|
* Mon Dec 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.1-1
|
|
|
|
|
- 1.2.1
|
2004-09-09 07:39:01 +00:00
|
|
|
|
|
2004-09-09 07:41:06 +00:00
|
|
|
|
* Wed Sep 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.0-1
|
|
|
|
|
- 1.2.0
|
2004-09-09 07:38:21 +00:00
|
|
|
|
|
2004-09-09 07:41:06 +00:00
|
|
|
|
* Mon Jul 16 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
2004-09-09 07:38:04 +00:00
|
|
|
|
- s/Copyright/License/
|
|
|
|
|
- fix weird versioning system (epoch was set to "2" in the main
|
|
|
|
|
package, serial to "1" in the devel package. Huh?)
|
|
|
|
|
|
2004-09-09 07:37:53 +00:00
|
|
|
|
* Wed Jun 20 2001 Than Ngo <than@redhat.com> 1.0.12-1
|
|
|
|
|
- update to 1.0.12
|
|
|
|
|
- add missing libpng symlink
|
|
|
|
|
|
|
|
|
|
* Thu May 3 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.0.11-2
|
|
|
|
|
- libpng-devel requires zlib-devel (since png.h includes zlib.h)
|
|
|
|
|
(#38883)
|
|
|
|
|
|
|
|
|
|
* Wed May 2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.0.11-1
|
|
|
|
|
- 1.0.11
|
|
|
|
|
|
|
|
|
|
* Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.0.10
|
|
|
|
|
|
2004-09-09 07:37:47 +00:00
|
|
|
|
* Tue Feb 6 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.0.9, fixes Mozilla problems
|
|
|
|
|
|
|
|
|
|
* Tue Dec 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Rebuild to get rid of 0777 dirs
|
|
|
|
|
|
|
|
|
|
* Wed Nov 15 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Remove the workaround for Bug #20018 (from Oct 30).
|
|
|
|
|
Qt 2.2.2 fixes the problem the workaround addressed.
|
|
|
|
|
|
|
|
|
|
* Mon Oct 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Work around a problem causing konqueror to segfault in image preview
|
|
|
|
|
mode (Bug #20018)
|
|
|
|
|
- Copy SuSE 7.0's patch to handle bad chunks
|
|
|
|
|
|
|
|
|
|
* Sun Sep 3 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
|
- only include the man5 man-pages once in the main rpm
|
|
|
|
|
|
2004-09-09 07:37:41 +00:00
|
|
|
|
* Thu Jul 28 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- upgrade to 1.0.8 - fixes small memory leak, other bugs
|
|
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- patchlevel c
|
|
|
|
|
- FHSify
|
|
|
|
|
|
|
|
|
|
* Tue Mar 21 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- update to 1.0.6
|
|
|
|
|
|
|
|
|
|
* Mon Mar 13 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- change serial to Epoch to get dependencies working correctly
|
|
|
|
|
|
|
|
|
|
* Fri Feb 11 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- move buildroot and add URL
|
|
|
|
|
|
|
|
|
|
* Sat Feb 5 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- strip library
|
|
|
|
|
- rebuild to compress man pages
|
|
|
|
|
|
|
|
|
|
* Sun Nov 21 1999 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- 1.0.5
|
|
|
|
|
- some tweaks to spec file to make updating easier
|
|
|
|
|
- handle RPM_OPT_FLAGS
|
|
|
|
|
|
|
|
|
|
* Mon Sep 20 1999 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- changed requires in libpng-devel to include serial
|
|
|
|
|
- corrected typo
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 2)
|
|
|
|
|
|
|
|
|
|
* Sun Feb 07 1999 Michael Johnson <johnsonm@redhat.com>
|
|
|
|
|
- rev to 1.0.3
|
|
|
|
|
|
|
|
|
|
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- build for 6.0
|
|
|
|
|
|
|
|
|
|
* Wed Sep 23 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- we are Serial: 1 now because we are reverting the 1.0.2 version from 5.2
|
|
|
|
|
beta to this prior one
|
|
|
|
|
- install man pages; set defattr defaults
|
|
|
|
|
|
|
|
|
|
* Thu May 07 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- devel subpackage moved to Development/Libraries
|
|
|
|
|
|
|
|
|
|
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- upgraded to 1.0.1
|
|
|
|
|
- added buildroot
|
|
|
|
|
|
|
|
|
|
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
|
- updated to new version
|
|
|
|
|
- spec file cleanups
|
|
|
|
|
|
|
|
|
|
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|
|
|
|
|
|