Sync from SUSE:SLFO:Main libpng16 revision f33a464f9aedfa07417dd3d272532d9e
This commit is contained in:
commit
e70993bde5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
12
baselibs.conf
Normal file
12
baselibs.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
libpng16-16
|
||||||
|
obsoletes "libpng-<targettype> < <version>"
|
||||||
|
provides "libpng-<targettype> = <version>"
|
||||||
|
libpng16-devel
|
||||||
|
requires -libpng16-<targettype>
|
||||||
|
requires "libpng16-16-<targettype> = <version>"
|
||||||
|
libpng16-compat-devel
|
||||||
|
requires -libpng16-compat-<targettype>
|
||||||
|
requires "libpng16-devel-<targettype> = <version>"
|
||||||
|
conflicts "libpng-devel-<targettype>"
|
||||||
|
provides "libpng-devel-<targettype>"
|
||||||
|
|
BIN
libpng-1.6.43.tar.xz
(Stored with Git LFS)
Normal file
BIN
libpng-1.6.43.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
1564
libpng16.changes
Normal file
1564
libpng16.changes
Normal file
File diff suppressed because it is too large
Load Diff
91
libpng16.keyring
Normal file
91
libpng16.keyring
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v2.0.20 (GNU/Linux)
|
||||||
|
|
||||||
|
mQINBFGn+ogBEAD6cK4C1MRIOUPToIxBZA1mwkiUYTimGEhmgHFle9h20GQWuuJ3
|
||||||
|
sU34ptoljsmgeWChuC1PRtYm1mb/nrIC98Osu1MKwj1QQbHgGa/oK57LBx05bVZr
|
||||||
|
GI36tkZXi9VC4aiilJ08c1bVYDh0WKx9ohH7VKlNiDiS5g5Fsk8fe3hj+nCBbRN1
|
||||||
|
6VZjcVhWwhYYygTnTu/4KxkjgbE2QUP1CsE8UbeubFcInlSFmXAyoc3hXLbe0NqI
|
||||||
|
Jxri1dQAwg/J/GtEqLfTDE9f+xuHgVVwUpGNDhf2Md4STW/5m0lzfOQXxN0AUwml
|
||||||
|
wTNS6YNkb8WK0ab63wnVwP+4wAwVp3QjDYhrkApTdv3W5V/7oGL0Iw6o1XGbXLp2
|
||||||
|
qLwgAhcWFeZWU6RbfT33ipeoYPmt4Cw8tGW6Zh1CEW4lj33hJoOTfrogtMFqPRSa
|
||||||
|
sbz2tTGha3ZA3FKg84tfg1UaS7ZJ6MmrO2lXr7VcjR75xmeqjjQyQlhZ67Ew4mbw
|
||||||
|
J456mG0fM9a7PPgCIJPAluNQvg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d5fG8k8MlZ+LCzRoAjDREGgk9NZSCpA/kQB3lkv0RSYqgMB8
|
||||||
|
nkcBOaCbXRBQ66iPg9KhkMwadUxLAK/i6jFir1HGzgjeSufk/8BJPzHWb5IQna4G
|
||||||
|
VgGy5MP5iCup2WVyeEREw8p9IGZU+UAOdziD8OicCrMdkw24TqEKOCCREByiRgIf
|
||||||
|
scWcJdpHlqFYCQhjKPXM79PWYCP600VFW/m1/gblHu3pB3n40NjMOC7Fi1gl96+q
|
||||||
|
jbyUPEKA6rvduCBJHehOpTSTScWnA3U=
|
||||||
|
=Rum9
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
158
libpng16.spec
Normal file
158
libpng16.spec
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libpng16
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_build 0
|
||||||
|
%define asan_build 0
|
||||||
|
%define major 1
|
||||||
|
%define minor 6
|
||||||
|
%define micro 43
|
||||||
|
%define branch %{major}%{minor}
|
||||||
|
%define libname libpng%{branch}-%{branch}
|
||||||
|
%define debug_package_requires %{libname} = %{version}-%{release}
|
||||||
|
Name: libpng16
|
||||||
|
Version: %{major}.%{minor}.%{micro}
|
||||||
|
Release: 0
|
||||||
|
Summary: Library for the Portable Network Graphics Format (PNG)
|
||||||
|
License: libpng-2.0
|
||||||
|
URL: http://www.libpng.org/pub/png/libpng.html
|
||||||
|
Source0: https://prdownloads.sourceforge.net/libpng/libpng-%{version}.tar.xz
|
||||||
|
Source2: libpng16.keyring
|
||||||
|
Source3: rpm-macros.libpng-tools
|
||||||
|
Source4: baselibs.conf
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
%{?suse_build_hwcaps_libs}
|
||||||
|
|
||||||
|
%package -n %{libname}
|
||||||
|
Summary: Library for the Portable Network Graphics Format (PNG)
|
||||||
|
Provides: libpng = %{version}
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development tools for applications which will use libpng
|
||||||
|
Requires: %{libname} = %{version}
|
||||||
|
Requires: glibc-devel
|
||||||
|
Requires: pkgconfig
|
||||||
|
Requires: pkgconfig(zlib)
|
||||||
|
Recommends: libpng%{branch}-compat-devel
|
||||||
|
#
|
||||||
|
|
||||||
|
%package compat-devel
|
||||||
|
Summary: Development tools for applications which will use libpng
|
||||||
|
Requires: libpng%{branch}-devel = %{version}
|
||||||
|
Conflicts: libpng-devel
|
||||||
|
Provides: libpng-devel = %{version}
|
||||||
|
Obsoletes: libpng-devel < 1.2.44
|
||||||
|
|
||||||
|
%package tools
|
||||||
|
Summary: Tools for Manipulating PNG Images
|
||||||
|
Conflicts: libpng-tools
|
||||||
|
Provides: libpng-tools = %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
libpng is the official reference library for the Portable Network
|
||||||
|
Graphics format (PNG).
|
||||||
|
|
||||||
|
%description -n %{libname}
|
||||||
|
libpng is the official reference library for the Portable Network
|
||||||
|
Graphics format (PNG).
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The libpng%{branch}-devel package includes the header files, libraries,
|
||||||
|
configuration files and development tools necessary for compiling and
|
||||||
|
linking programs which will manipulate PNG files using libpng%{branch}.
|
||||||
|
|
||||||
|
libpng is the official reference library for the Portable Network
|
||||||
|
Graphics (PNG) format.
|
||||||
|
|
||||||
|
%description compat-devel
|
||||||
|
The libpng%{branch}-compat-devel package contains unversioned symlinks
|
||||||
|
to the header files, libraries, configuration files and development
|
||||||
|
tools necessary for compiling and linking programs that don't care
|
||||||
|
about libpng version.
|
||||||
|
|
||||||
|
%description tools
|
||||||
|
Package consists of low level tools for manipulating and fixing particular
|
||||||
|
PNG files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n libpng-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
# PNG_SAFE_LIMITS_SUPPORTED: http://www.openwall.com/lists/oss-security/2015/01/10/1
|
||||||
|
export CFLAGS="%{optflags} -O3 -DPNG_SAFE_LIMITS_SUPPORTED -DPNG_SKIP_SETJMP_CHECK $(getconf LFS_CFLAGS)"
|
||||||
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||||
|
%if %{debug_build}
|
||||||
|
export CFLAGS="$CFLAGS -Og"
|
||||||
|
%endif
|
||||||
|
%configure \
|
||||||
|
--enable-hardware-optimizations=yes \
|
||||||
|
%ifarch armv6l armv6hl
|
||||||
|
--enable-arm-neon=no
|
||||||
|
%endif
|
||||||
|
--disable-static
|
||||||
|
%if %{asan_build}
|
||||||
|
sed -i -e 's/^\(CFLAGS.*\)$/\1 -fsanitize=address/' \
|
||||||
|
-e 's/\(^LIBS =.*\)/\1 -lasan/' Makefile
|
||||||
|
%endif
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
%make_build -j1 check
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f,l -name "*.la" -delete -print
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||||
|
install -D -m644 %{SOURCE3} %{buildroot}%{_rpmmacrodir}/macros.libpng-tools
|
||||||
|
%if %{debug_build} ||%{asan_build}
|
||||||
|
install -m755 .libs/pngcp %{buildroot}/%{_bindir}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %{libname}
|
||||||
|
%{_libdir}/libpng%{branch}.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_bindir}/libpng%{branch}-config
|
||||||
|
%{_includedir}/libpng%{branch}
|
||||||
|
%{_libdir}/libpng%{branch}.so
|
||||||
|
%{_libdir}/pkgconfig/libpng%{branch}.pc
|
||||||
|
%license LICENSE
|
||||||
|
%doc CHANGES README TODO ANNOUNCE libpng-*.txt
|
||||||
|
|
||||||
|
%files compat-devel
|
||||||
|
%{_bindir}/libpng-config
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/libpng.so
|
||||||
|
%{_libdir}/pkgconfig/libpng.pc
|
||||||
|
%{_mandir}/man3/libpng.3%{?ext_man}
|
||||||
|
%{_mandir}/man3/libpngpf.3%{?ext_man}
|
||||||
|
%{_mandir}/man5/png.5%{?ext_man}
|
||||||
|
|
||||||
|
%files tools
|
||||||
|
%{_bindir}/png-fix-itxt
|
||||||
|
%{_bindir}/pngfix
|
||||||
|
%if %{debug_build} || %{asan_build}
|
||||||
|
%{_bindir}/pngcp
|
||||||
|
%endif
|
||||||
|
%{_rpmmacrodir}/macros.libpng-tools
|
||||||
|
|
||||||
|
%changelog
|
35
rpm-macros.libpng-tools
Normal file
35
rpm-macros.libpng-tools
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# macro: %png_fix path/to/name-of.png
|
||||||
|
# for given png, fixes 'IDAT: invalid distance too far back', etc.,
|
||||||
|
# see pngfix --help
|
||||||
|
#
|
||||||
|
# -q do not output if macro fixed something or find unrecoverable error
|
||||||
|
#
|
||||||
|
# this macro fails only if there is an unrecoverable error in the png
|
||||||
|
# -- pngfix returns nonzero and $png.fixed doesn't exist; run pngfix
|
||||||
|
# on that file, see return code and compare with pngfix --help output
|
||||||
|
%png_fix(q) \
|
||||||
|
if test "x%1" == "x%%1"; then \
|
||||||
|
echo "Missing argument in call to %%png_fix: path and name of png file." \
|
||||||
|
exit 1 \
|
||||||
|
fi \
|
||||||
|
/usr/bin/pngfix %{-q: -qq} --suffix='.fixed' "%1" || true \
|
||||||
|
mv "%1.fixed" "%1" \
|
||||||
|
%nil
|
||||||
|
#
|
||||||
|
# macro: %png_fix_dir
|
||||||
|
# for given directory, search *.png (recursively) and potentionaly
|
||||||
|
# fix 'IDAT: invalid distance too far back', etc., see pngfix --help
|
||||||
|
#
|
||||||
|
# -q do not output if pngfix fixed something or find unrecoverable error
|
||||||
|
#
|
||||||
|
%png_fix_dir(q) \
|
||||||
|
if test "x%1" == "x%%1"; then \
|
||||||
|
echo "Missing argument in call to %%png_fix_dir: dir where to search png files." \
|
||||||
|
exit 1 \
|
||||||
|
fi \
|
||||||
|
for png in `find "%1" -iname '*.png'`; do \
|
||||||
|
# -q will be propagated \
|
||||||
|
%png_fix $png \
|
||||||
|
done \
|
||||||
|
%nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user