]> git.pld-linux.org Git - packages/libpng.git/blobdiff - libpng.spec
- updated to 1.6.34
[packages/libpng.git] / libpng.spec
index f38ba0325ec6475511a764da0f6555017c85378d..12627ce953dde67b8b6370b4baa12b1a3b1af8b8 100644 (file)
@@ -1,7 +1,5 @@
-# TODO (when we decide we're ready for 1.5.x -> 1.6.x switch):
-# - copy libpng.git tree to libpng15.git
-# - on libpng15.git master switch default_libpng to off
-# - merge libpng.git libpng-1.6 branch to master
+# NOTE: there is intel SSE optimization available but with no runtime detection;
+#       it's enabled based on compiler flags (-msse*, either explicit or implied by -march=)
 #
 # Conditional build:
 %bcond_without tests           # don't perform "make check"
@@ -15,21 +13,21 @@ Summary(pl.UTF-8):  Biblioteka PNG
 Summary(pt_BR.UTF-8):  Biblioteca PNG
 Summary(tr.UTF-8):     PNG kitaplığı
 Name:          libpng
-Version:       1.6.1
+Version:       1.6.34
 Release:       1
 Epoch:         2
 License:       distributable
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
-# Source0-md5: 93fc0b0841ce2db0e6756673e22dafc3
+# Source0-md5: c05b6ca7190a5e387b78657dbe5536b2
 Patch0:                %{name}-pngminus.patch
-Patch1:                http://downloads.sourceforge.net/libpng-apng/%{name}-1.6.1-apng.patch.gz
-# Patch1-md5:  39c34060c2f0e48f3849dcdbd4a16b7a
+Patch1:                http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz
+# Patch1-md5:  d7a82f1aa85ba628556fb7bd1428668b
 URL:           http://www.libpng.org/pub/png/libpng.html
 BuildRequires: rpmbuild(macros) >= 1.213
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz >= 1:4.999.7
-BuildRequires: zlib-devel
+BuildRequires: zlib-devel >= 1.2.9
 Provides:      libpng(APNG) = 0.10
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -151,7 +149,17 @@ Narzędzia do konwersji plików PNG z lub do plików PNM.
 %patch1 -p1
 
 %build
-%configure
+%configure \
+%ifarch %{arm} aarch64
+       --enable-arm-neon=check \
+%endif
+%ifarch mipsel mips64el
+       --enable-mips-msa=check \
+%endif
+%ifarch ppc ppc64
+       --enable-powerpc-vsx=check
+%endif
+
 %{__make}
 
 %{__make} -C contrib/pngminus -f makefile.std \
@@ -222,5 +230,7 @@ rm -rf $RPM_BUILD_ROOT
 %files progs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/png2pnm
+%attr(755,root,root) %{_bindir}/pngfix
+%attr(755,root,root) %{_bindir}/png-fix-itxt
 %attr(755,root,root) %{_bindir}/pnm2png
 %endif
This page took 0.080094 seconds and 4 git commands to generate.