]> git.pld-linux.org Git - packages/libpng.git/blobdiff - libpng.spec
- updated to 1.2.32
[packages/libpng.git] / libpng.spec
index fa74014fba0325cf4a1ac0c01bb2cc7e5a245199..7791d430d0974be7a6e946bfa870010831e64296 100644 (file)
-Summary:     PNG library
-Summary(de): PNG-Library
-Summary(fr): Librarie PNG.
-Summary(pl): Biblioteka PNG
-Summary(tr): PNG kitaplýðý
-Name:        libpng
-Version:     1.0.2
-Release:     1
-Copyright:   distributable
-Group:       Libraries
-Source:      ftp://ftp.uu.net/graphics/png/src/%{name}-%{version}.tar.gz
-Patch0:      libpng-1.0.2.patch
-URL:         http://www.cdrom.com/pub/png/
-Buildroot:   /tmp/%{name}-%{version}-root
+# NOTE: try to switch to ac/am/lt build on 1.2.x->1.4.x upgrade
+Summary:       PNG library
+Summary(de.UTF-8):     PNG-Library
+Summary(es.UTF-8):     Biblioteca PNG
+Summary(fr.UTF-8):     Librarie PNG
+Summary(pl.UTF-8):     Biblioteka PNG
+Summary(pt_BR.UTF-8):  Biblioteca PNG
+Summary(tr.UTF-8):     PNG kitaplığı
+Name:          libpng
+Version:       1.2.32
+Release:       1
+Epoch:         2
+License:       distributable
+Group:         Libraries
+Source0:       http://dl.sourceforge.net/libpng/%{name}-%{version}.tar.lzma
+# Source0-md5: 4b86e9d73d86744a263bb69671ab74d0
+Patch0:                %{name}-pngminus.patch
+Patch1:                %{name}-opt.patch
+Patch2:                %{name}-norpath.patch
+Patch3:                %{name}-export_old.patch
+Patch4:                %{name}-revert.patch
+# http://littlesvr.ca/apng/
+Patch5:                %{name}-apng.patch
+URL:           http://www.libpng.org/pub/png/libpng.html
+BuildRequires: lzma >= 1:4.42
+BuildRequires: rpmbuild(macros) >= 1.213
+BuildRequires: zlib-devel
+%ifarch %{x8664} ia64 ppc64 s390x sparc64
+Provides:      libpng.so.3()(64bit)
+%else
+Provides:      libpng.so.3
+%endif
+Provides:      libpng(APNG) = 0.10
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The PNG library is a collection of routines used to crate and manipulate
-PNG format graphics files.  The PNG format was designed as a replacement
-for GIF, with many improvements and extensions.
-
-%description -l de
-Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und Bearbeiten
-von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz für GIF
-entwickelt und enthält viele Verbesserungen und Erweiterungen.
-
-%description -l fr
-La librairie PNG est un ensemble de routines utilisées pour créer et 
-manipuler des fichiers graphiques au format PNG. Le format PNG a été
-élaboré pour remplacer le GIF, avec de nombreuses améliorations et
+The PNG library is a collection of routines used to create and
+manipulate PNG format graphics files. The PNG format was designed as a
+replacement for GIF, with many improvements and extensions.
+
+%description -l de.UTF-8
+Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und
+Bearbeiten von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz
+für GIF entwickelt und enthält viele Verbesserungen und Erweiterungen.
+
+%description -l es.UTF-8
+Esta biblioteca es una colección de rutinas para crear y manipular
+archivos gráficos en el formato PNG. Este formato fue proyectado para
+substituir el
+
+%description -l fr.UTF-8
+La librairie PNG est un ensemble de routines utilisées pour créer et
+manipuler des fichiers graphiques au format PNG. Le format PNG a été
+élaboré pour remplacer le GIF, avec de nombreuses améliorations et
 extensions.
 
-%description -l tr
-PNG kitaplýðý, PNG formatýndaki resim dosyalarýný iþlemeye yönelik yordamlarý
-içerir. PNG, GIF formatýnýn yerini almak üzere tasarlanmýþ bir resim formatýdýr.
+%description -l pl.UTF-8
+Biblioteki PNG są kolekcją form używanych do tworzenia i manipulowania
+plikami w formacie graficznym PNG. Format ten został stworzony jako
+zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowościami.
+
+%description -l pt_BR.UTF-8
+Esta biblioteca é uma coleção de rotinas para criar e manipular
+arquivos gráficos no formato PNG. Este formato foi projetado para
+substituir o formato GIF, com extensões e melhorias.
+
+%description -l tr.UTF-8
+PNG kitaplığı, PNG formatındaki resim dosyalarını işlemeye yönelik
+yordamları içerir. PNG, GIF formatının yerini almak üzere tasarlanmış
+bir resim formatıdır.
 
 %package devel
-Summary:     header files an documentation for PNG library
-Summary(pl): Pliki nag³owkowe i dokumentacja do biblioteki PNG
-Group:       Development/Libraries
-Requires:    %{name} = %{version}
+Summary:       Header files for libpng
+Summary(de.UTF-8):     libpng Headers
+Summary(es.UTF-8):     Archivos de inclusión y bibliotecas estáticas
+Summary(fr.UTF-8):     en-têtes et bibliothèques statiques
+Summary(pl.UTF-8):     Pliki nagłówkowe libpng
+Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas estáticas
+Summary(tr.UTF-8):     başlık dosyaları ve statik kitaplıklar
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      zlib-devel
+Provides:      libpng(APNG)-devel = 0.10
+Conflicts:     libpng < 1.0.15
 
 %description devel
-The header files and static libraries are only needed for development
-of programs using the PNG library.
+The header files are only needed for development of programs using the
+PNG library.
+
+%description devel -l de.UTF-8
+Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
+PNG-Library benötigt.
+
+%description devel -l es.UTF-8
+Archivos de inclusión y bibliotecas estáticas que son necesarios
+solamente para el desarrollo de programas que usan la biblioteca PNG.
 
-%description -l de devel
-Die Header-Dateien und statischen Libraries werden nur zur Entwicklung
-von Programmen mit der PNG-Library benötigt.
+%description devel -l fr.UTF-8
+Fichiers d'en-tete et les librairies qui sont requis seulement pour le
+développement avec la librairie PNG.
 
-%description -l fr devel
-Fichiers d'en-tete et les librairies qui sont requis seulement pour
-le développement avec la librairie PNG.
+%description devel -l pl.UTF-8
+W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla
+programistów używających bibliotek PNG.
 
-%description -l tr devel
-PNG kitaplýðýný kullanan programlar geliþtirmek için gereken kitaplýklar ve
-baþlýk dosyalarý.
+%description devel -l pt_BR.UTF-8
+Arquivos de inclusão e bibliotecas estáticas que são necessários
+somente para o desenvolvimento de programas que usam a biblioteca PNG.
+
+%description devel -l tr.UTF-8
+PNG kitaplığını kullanan programlar geliştirmek için gereken
+kitaplıklar ve başlık dosyaları.
 
 %package static
-Summary:     PNG static library
-Summary(pl): Biblioteka PNG - wersja statyczna
-Group:       Development/Libraries
-Requires:    %{name}-devel = %{version}
+Summary:       Static PNG libraries
+Summary(de.UTF-8):     Statischen PNG Libraries
+Summary(pl.UTF-8):     Biblioteki statyczne PNG
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com libpng
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Provides:      libpng(APNG)-static = 0.10
 
 %description static
-The static PNG library.
+Static PNG libraries.
+
+%description static -l de.UTF-8
+Statischen PNG Libraries.
+
+%description static -l pl.UTF-8
+Biblioteki statyczne PNG.
+
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com libpng.
+
+%package progs
+Summary:       libpng utility programs
+Summary(pl.UTF-8):     Narzędzia do plików PNG
+Group:         Applications/Graphics
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
-%description -l pl static
-Bibliotek PNG - wersja statyczna
+%description progs
+This package contains utility programs to convert PNG files to and
+from PNM files.
+
+%description progs -l pl.UTF-8
+Narzędzia do konwersji plików PNG z lub do plików PNM.
 
 %prep
-%setup -q
+%setup -q -c -T
+lzma -dc %{SOURCE0} | tar xf - -C ..
 %patch0 -p1
-
-%ifos Linux
-ln -sf scripts/makefile.lnx Makefile
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p0
+
+%ifarch %{ix86}
+ln -sf scripts/makefile.gcmmx ./Makefile
+%else
+ln -sf scripts/makefile.linux ./Makefile
 %endif
 
 %build
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+       prefix=%{_prefix} \
+       LIBPATH=%{_libdir} \
+       CC="%{__cc}" \
+%ifarch %{x8664} sparc sparcv9 sparc64
+       OPT_FLAGS="%{rpmcflags} -DPNG_NO_MMX_CODE"
+%else
+       OPT_FLAGS="%{rpmcflags}"
+%endif
+
+%{__make} -C contrib/pngminus -f makefile.std \
+       LIBPATH=%{_libdir} \
+       CC="%{__cc}" \
+       OPT_FLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/man/man3
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{3,5}} \
+       $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_examplesdir}/%{name}-%{version}}
 
-make install prefix=$RPM_BUILD_ROOT/usr
-install {libpng,libpngpf}.3 $RPM_BUILD_ROOT/usr/man/man3
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       prefix=%{_prefix} \
+       LIBPATH=%{_libdir} \
+       MANPATH=%{_mandir}
 
-strip $RPM_BUILD_ROOT/usr/lib/lib*.so.*.*
+install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
+install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files
-%attr(755, root, root) /usr/lib/lib*.so.*.*
+%defattr(644,root,root,755)
+%doc ANNOUNCE CHANGES KNOWNBUG README LICENSE
+%attr(755,root,root) %{_libdir}/libpng12.so.*.*.*
+%attr(755,root,root) %{_libdir}/libpng.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpng12.so.0
+# alternative soname (symlink in PLD, so must be packaged)
+%attr(755,root,root) %{_libdir}/libpng.so.3
 
 %files devel
-%defattr(644, root, root, 755)
-%doc *.txt example.c
-/usr/include/*
-/usr/lib/lib*.so
-%attr(644, root,  man) /usr/man/man3/*
+%defattr(644,root,root,755)
+%doc *.txt
+%attr(755,root,root) %{_bindir}/libpng12-config
+%attr(755,root,root) %{_bindir}/libpng-config
+%attr(755,root,root) %{_libdir}/libpng12.so
+%attr(755,root,root) %{_libdir}/libpng.so
+%{_pkgconfigdir}/libpng12.pc
+%{_pkgconfigdir}/libpng.pc
+%{_includedir}/libpng12
+%{_includedir}/libpng
+%{_includedir}/png*.h
+%{_mandir}/man?/*
+%{_examplesdir}/%{name}-%{version}
 
 %files static
-%attr(644, root, root) /usr/lib/lib*.a
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%defattr(644,root,root,755)
+%{_libdir}/libpng12.a
+%{_libdir}/libpng.a
 
-%changelog
-* Sat Aug  8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.0.2-1]
-- added pl translation,
-- added -q %setup parameter,
-- added using %%{name} and %%{version} macros in Buildroot,
-- added %clean section,
-- added URL,
-- added striping sharebd lib,
-- added "%ifos Linux .. %endif" around making sym link to proper Makefile,
-- Buildroot changed to /tmp/%%{name}-%%{version}-root,
-- added man pages to devel,
-- added static subpackage,
-- Rquires in devel changed to "%%{name} %%{version}"
-- changed permission on shared libs to 755 (now ldd output on this files is
-  correct),
-- added %defattr and %attr macros in %files (allows building package from
-  non-root account).
-
-* 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
+%files progs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/p*
This page took 0.601927 seconds and 4 git commands to generate.