]> git.pld-linux.org Git - packages/libpng.git/blobdiff - libpng.spec
- updated to 1.6.31
[packages/libpng.git] / libpng.spec
index ab3efaa71f57b3acfe425bd17f5c854d47f50084..a0843de16696c8ce1251ad035765d4c06256a823 100644 (file)
@@ -1,3 +1,5 @@
+# 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"
@@ -11,16 +13,16 @@ Summary(pl.UTF-8):  Biblioteka PNG
 Summary(pt_BR.UTF-8):  Biblioteca PNG
 Summary(tr.UTF-8):     PNG kitaplığı
 Name:          libpng
-Version:       1.5.15
+Version:       1.6.31
 Release:       1
 Epoch:         2
 License:       distributable
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
-# Source0-md5: e3122e7b5b5c36c034a4624c65f8a9d8
+# Source0-md5: 1b34eab440263e32cfa39d19413fad54
 Patch0:                %{name}-pngminus.patch
-Patch1:                http://downloads.sourceforge.net/libpng-apng/%{name}-1.5.15-apng.patch.gz
-# Patch1-md5:  3ae9ea7e4bd201f0b25e25cd6049b094
+Patch1:                http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz
+# Patch1-md5:  c13dbdd84b768d450b2c4f035a8d911a
 URL:           http://www.libpng.org/pub/png/libpng.html
 BuildRequires: rpmbuild(macros) >= 1.213
 BuildRequires: tar >= 1:1.22
@@ -147,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 \
@@ -184,17 +196,17 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc ANNOUNCE CHANGES LICENSE README TODO
-%attr(755,root,root) %{_libdir}/libpng15.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpng15.so.15
+%attr(755,root,root) %{_libdir}/libpng16.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpng16.so.16
 
 %files devel
 %defattr(644,root,root,755)
 %doc libpng-manual.txt
-%attr(755,root,root) %{_bindir}/libpng15-config
-%attr(755,root,root) %{_libdir}/libpng15.so
-%{_libdir}/libpng15.la
-%{_includedir}/libpng15
-%{_pkgconfigdir}/libpng15.pc
+%attr(755,root,root) %{_bindir}/libpng16-config
+%attr(755,root,root) %{_libdir}/libpng16.so
+%{_libdir}/libpng16.la
+%{_includedir}/libpng16
+%{_pkgconfigdir}/libpng16.pc
 %{_examplesdir}/%{name}-%{version}
 %if %{with default_libpng}
 %attr(755,root,root) %{_bindir}/libpng-config
@@ -209,7 +221,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libpng15.a
+%{_libdir}/libpng16.a
 %if %{with default_libpng}
 %{_libdir}/libpng.a
 %endif
@@ -218,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.060478 seconds and 4 git commands to generate.