auto-import libpng-1.2.2-5 from libpng-1.2.2-5.src.rpm

This commit is contained in:
cvsdist 2004-09-09 07:41:06 +00:00
parent 86f2e59a6b
commit 5d2a5e8220
3 changed files with 45 additions and 23 deletions

View File

@ -1 +1,2 @@
libpng-1.0.14.tar.bz2 libpng-1.2.2.tar.bz2
libpng-1.2.2patch03-makefiles.tar.gz

View File

@ -1,18 +1,17 @@
Summary: A library of functions for manipulating PNG image format files. Summary: A library of functions for manipulating PNG image format files.
Name: libpng Name: libpng
Version: 1.0.14 Version: 1.2.2
Release: 0.7x.4 Release: 5
License: distributable License: OSI certified
Group: System Environment/Libraries Group: System Environment/Libraries
Source: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-%{version}.tar.bz2 Source: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-%{version}.tar.bz2
Patch0: libpng-1.0.6-rhconf.patch Source2: ftp://swrinde.nde.swri.edu/pub/png/src/libpng-1.2.2patch03-makefiles.tar.gz
Patch0: libpng-1.2.2-rhconf.patch
Patch1: libpng-1.0.9-badchunks.patch Patch1: libpng-1.0.9-badchunks.patch
Patch2: libpng-1.0.12-transfix.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildPrereq: zlib-devel BuildPrereq: zlib-devel
URL: http://www.libpng.org/pub/png/ URL: http://www.libpng.org/pub/png/
%define LIBVER 2.%{version} %define LIBVER 3.%{version}
Epoch: 2 Epoch: 2
Conflicts: qt < 2.2.2 Conflicts: qt < 2.2.2
@ -42,10 +41,12 @@ the libpng package.
%prep %prep
%setup -q %setup -q
## dump in the fixed makefiles (remove this with 1.2.3, presumably)
(cd scripts && tar zxf %{SOURCE2})
ln -s scripts/makefile.linux Makefile ln -s scripts/makefile.linux Makefile
%patch0 -p1 -b .rhconf %patch0 -p1 -b .rhconf
%patch1 -p1 -b .badchunk %patch1 -p1 -b .badchunk
%patch2 -p1 -b .transfix
%build %build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
@ -57,7 +58,9 @@ make install prefix=$RPM_BUILD_ROOT/usr
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{3,5} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{3,5}
install -c -m 644 *.3 $RPM_BUILD_ROOT%{_mandir}/man3 install -c -m 644 *.3 $RPM_BUILD_ROOT%{_mandir}/man3
install -c -m 644 *.5 $RPM_BUILD_ROOT%{_mandir}/man5 install -c -m 644 *.5 $RPM_BUILD_ROOT%{_mandir}/man5
strip -R .comment --strip-unneeded $RPM_BUILD_ROOT/usr/lib/libpng.so.%{LIBVER}
ln -s libpng12/png.h $RPM_BUILD_ROOT%{_includedir}
ln -s libpng12/pngconf.h $RPM_BUILD_ROOT%{_includedir}
# I don't know what this is doing here. # I don't know what this is doing here.
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/libpng.so* rm -f $RPM_BUILD_ROOT%{_mandir}/man5/libpng.so*
@ -69,31 +72,48 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man5/libpng.so*
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc *.txt example.c README TODO CHANGES %doc *.txt example.c README TODO CHANGES
/usr/lib/lib*.so.* %{_libdir}/libpng*.so.*
%{_mandir}/man5/* %{_mandir}/man5/*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
/usr/include/* %{_includedir}/*
/usr/lib/lib*.a %{_libdir}/libpng*.a
/usr/lib/lib*.so %{_libdir}/libpng*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/* %{_mandir}/man3/*
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Dec 19 2002 Jonathan Blandford <jrb@redhat.com> * Thu May 23 2002 Tim Powers <timp@redhat.com>
- fix security problem - automated rebuild
* Thu Aug 01 2002 Phil Knirsch <pknirsch@redhat.com> * Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-4
- Fixed a file packaging problem. - Don't own %{_libdir}/pkgconfig
- Fixed library versioning. - Don't strip library, that's up to rpm
* Tue Jul 23 2002 Phil Knirsch <pknirsch@redhat.com> 1.0.14-1 * Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-3
- Updated to 1.0.14. - Forgot png.h
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.0.12-2 * 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
* Mon Dec 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.1-1
- 1.2.1
* Wed Sep 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.0-1
- 1.2.0
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
- s/Copyright/License/ - s/Copyright/License/
- fix weird versioning system (epoch was set to "2" in the main - fix weird versioning system (epoch was set to "2" in the main
package, serial to "1" in the devel package. Huh?) package, serial to "1" in the devel package. Huh?)

View File

@ -1 +1,2 @@
4f0dda0d5c1153e87dee905c49090877 libpng-1.0.14.tar.bz2 0a22ea644cb8d0c86d32e2d2d008ea40 libpng-1.2.2.tar.bz2
6a7b4d702a03e5bb930e53f34c1e7330 libpng-1.2.2patch03-makefiles.tar.gz