]> git.pld-linux.org Git - packages/libpng.git/blobdiff - libpng.spec
- obsolete
[packages/libpng.git] / libpng.spec
index d09adb3022a9c083c5c1448965da05116a808868..9c9074ea18e7cfe9933d676551c0ff65001f9ef4 100644 (file)
@@ -1,3 +1,6 @@
+#
+%define                _pre    rc1
+#
 Summary:       PNG library
 Summary(de):   PNG-Library
 Summary(es):   Biblioteca PNG
@@ -6,21 +9,27 @@ Summary(pl):  Biblioteka PNG
 Summary(pt_BR):        Biblioteca PNG
 Summary(tr):   PNG kitaplýðý
 Name:          libpng
-Version:       1.2.5
-Release:       2
+Version:       1.2.6
+Release:       0.%{_pre}.1
 Epoch:         2
 License:       distributable
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/libpng/%{name}-%{version}.tar.bz2
+Source0:       http://heanet.dl.sourceforge.net/libpng/%{name}-%{version}%{_pre}.tar.bz2
+# Source0-md5: 346bd648912e31fd4ff900b25979f5f2
 Patch0:                %{name}-pngminus.patch
 Patch1:                %{name}-badchunks.patch
 Patch2:                %{name}-opt.patch
 Patch3:                %{name}-revert.patch
-Patch4:                %{name}-16bit-overflow.patch
 Patch5:                %{name}-norpath.patch
-Provides:      libpng.so.3
+Patch6:                %{name}-libdirfix.patch
+Patch8:                %{name}-pngerror.patch
 URL:           http://www.libpng.org/pub/png/libpng.html
 BuildRequires: zlib-devel
+%ifarch amd64 ia64 ppc64 sparc64
+Provides:      libpng.so.3()(64bit)
+%else
+Provides:      libpng.so.3
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -68,7 +77,7 @@ Summary(pl):  Pliki nag
 Summary(pt_BR):        Arquivos de inclusão e bibliotecas estáticas
 Summary(tr):   baþlýk dosyalarý ve statik kitaplýklar
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      zlib-devel
 Conflicts:     libpng < 1.0.15
 
@@ -106,7 +115,7 @@ Summary(de):        Statischen PNG Libraries
 Summary(pl):   Biblioteki statyczne PNG
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com libpng
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static PNG libraries.
@@ -133,13 +142,14 @@ from PNM files.
 Narzêdzia do konwersji plików PNG z lub do plików PNM.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}%{_pre}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
 %patch5 -p1
+%patch6 -p1
+#%patch8 -p1
 
 %ifarch %{ix86}
 ln -sf scripts/makefile.gcmmx ./Makefile
@@ -150,20 +160,27 @@ ln -sf scripts/makefile.linux ./Makefile
 %build
 %{__make} \
        prefix=%{_prefix} \
+       LIBPATH=%{_libdir} \
+       CC="%{__cc}" \
        OPT_FLAGS="%{rpmcflags}"
 %{__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{%{_bindir},%{_libdir},%{_mandir}/man{3,5},%{_pkgconfigdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir}/man{3,5}} \
+       $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_examplesdir}/%{name}-%{version}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
        prefix=%{_prefix} \
+       LIBPATH=%{_libdir} \
        MANPATH=%{_mandir}
 
 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
+install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -185,6 +202,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/*
 %{_includedir}/*
 %{_mandir}/man?/*
+%{_examplesdir}/%{name}-%{version}
 
 %files static
 %defattr(644,root,root,755)
This page took 0.037099 seconds and 4 git commands to generate.