This commit is contained in:
parent
a1dab95854
commit
2c6d9e3de3
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7fbba66ad77bfe03f4a47a4333263f46fa1d4c74c313ea1b62800df21aa4aafb
|
||||
size 1024433
|
3
libpng-1.6.3.tar.xz
Normal file
3
libpng-1.6.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5ecc0d38663b944a828145ed59cf15dfbad2217512875bc05ecf9b92afa0f45
|
||||
size 869244
|
17
libpng-1.6.3.tar.xz.asc
Normal file
17
libpng-1.6.3.tar.xz.asc
Normal file
@ -0,0 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.11 (GNU/Linux)
|
||||
|
||||
iQIcBAABAgAGBQJR5zYJAAoJEPVJhL+hbGQPt+4QAKGL4M91acmCciT7nwYoVsHD
|
||||
1F6T/vd5kMHsrUFUko6KaJXFu3boMN0J1hTYD2ryEhceQPj8RRsYBRF7YwtSeodi
|
||||
nF3Oe/IHteNnx/YIezMfiUTMJ9ojLqfX0VeHQm5EzoKoRFkRevopoP0xfSEz6CHD
|
||||
G2P2KBfpesLOVnYchtqFUFHRajwVE/gu51Fq/c7uQeF+433uPGEdFT7QJsyDXCD1
|
||||
lM3Xd6OVWPthz2x724AV0qi8A4Tz/bV/infPNfzUoolMWfyPCkwW9wAPFSgZmcTD
|
||||
fyWnYRrUiFD6TC0y1zXNANnyVQVmnQeowSxJbUgnPxlvnu0qZv/p5bMWxyoIdZsJ
|
||||
huowNyfGqQANBQeB9iDDruAwcFAS+d5+00Z3JvI/s8C3dtmoEbVpDUUuolUxCy8v
|
||||
pw7tzqIwULFQ7x487yIn0q2Kbs3e7d0hbXJkg4g0ePbt31ikdU00w2hKYM5Tfo1+
|
||||
CbSYlbAx3D7WlzYcb80j/a3J5diOk6r1f0CIBCbNjN//vQMvLXigx1crXuAUbXtu
|
||||
5qRgT7bz+CLhb3jbRLiRFXbodoHVh/H35N7mGWmvG46F5ry6AzWz4DvyQpEqk228
|
||||
6okgNt0+qIXqB0UEU7fCDVDk9bOKc7ZAPlQ49XBXttutKf2Fk0NVkjUlZVuD/ro+
|
||||
g/hoa1tzYW9VRQVA6c1s
|
||||
=KiMP
|
||||
-----END PGP SIGNATURE-----
|
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
|
||||
J456mG0fM9a7PPgCIJPAluNQvgUjoSfDFb/0klhnZeUULZqhBNQP05wisWjLinGB
|
||||
3QW4WKJlBpugSR8ymIgn0aU9gsbBppDHrF9Vzl/1oQAbcuiRM/GIiVvY8q5a8x1I
|
||||
KnSNH0/SXSdaHdhcfzOx1JG2wM5S5dS5LDkCchxbReD82DD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QQ87d0ysgLzU
|
||||
uMLHuV+0lOiZ/Jk8N7SOyNnpgkJaE+0NOPuPqH2YUAB3VuoJTxmLq5z49N8+rx0A
|
||||
P3F8W49dJ7RuA8w5QAGT9UpG3jRvBNkOqCpXyZKfUvSC7H/66HGy7x6rABEBAAGJ
|
||||
AiUEGAECAA8FAlGn+ogCGwwFCQlmAYAACgkQ9UmEv6FsZA8sehAAw1AAbcjRO6Zs
|
||||
ivgr3oBMxUcQRwCqhK4JrCXnA2j2LdPmNxVwabjuk/T95gEx/JaPrEN3aNyV6Psb
|
||||
ajBJ9OChvBjBZ3dib7HmUmKn/q3UDt/ZtOR2Y11rfFcd1WOD6xOzu+GH0Bq9/eN0
|
||||
YYZswppy0+s7uKKd2vPxKoCuCt0b0Aze/LpLn7+Az01xsLfHJ8tmwVklkNdT6g9u
|
||||
Xoxj27ibjOP7XsB/xugCcItxvIPu0kYLohqpSxcOrtAFuGyUm/pqYGFPKvs+4x8+
|
||||
oTomn68w2nyI4m3slHdbUfeRNq6uSxzw7a8VqwV4NeGBQLOwq0RCVgvyDKF3vVLR
|
||||
NkNXkNxRQ8WCOw31qFsAAuBtO2QPxj8KuUzOkMF5nTtyJravAOaSGkjMtBGlUbxS
|
||||
TSpIeiy8o1SOmj3Fd5fG8k8MlZ+LCzRoAjDREGgk9NZSCpA/kQB3lkv0RSYqgMB8
|
||||
nkcBOaCbXRBQ66iPg9KhkMwadUxLAK/i6jFir1HGzgjeSufk/8BJPzHWb5IQna4G
|
||||
VgGy5MP5iCup2WVyeEREw8p9IGZU+UAOdziD8OicCrMdkw24TqEKOCCREByiRgIf
|
||||
scWcJdpHlqFYCQhjKPXM79PWYCP600VFW/m1/gblHu3pB3n40NjMOC7Fi1gl96+q
|
||||
jbyUPEKA6rvduCBJHehOpTSTScWnA3U=
|
||||
=Rum9
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
@ -19,7 +19,7 @@
|
||||
#
|
||||
%define major 1
|
||||
%define minor 6
|
||||
%define micro 2
|
||||
%define micro 3
|
||||
%define branch %{major}%{minor}
|
||||
%define libname libpng%{branch}-%{branch}
|
||||
|
||||
@ -30,8 +30,14 @@ Release: 0
|
||||
Summary: Library for the Portable Network Graphics Format (PNG)
|
||||
License: Zlib
|
||||
Group: System/Libraries
|
||||
Source: libpng-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng16/libpng-%{version}.tar.xz
|
||||
Source1: ftp://ftp.simplesystems.org/pub/png/src/libpng16/Gnupg/libpng-%{version}.tar.xz.asc
|
||||
Source2: libpng16.keyring
|
||||
Source3: rpm-macros.libpng-tools
|
||||
Source4: baselibs.conf
|
||||
%if 0%{?suse_version} >= 1230
|
||||
BuildRequires: gpg-offline
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: zlib-devel
|
||||
@ -72,6 +78,12 @@ Provides: libpng-devel = %{version}
|
||||
Obsoletes: libpng-devel < 1.2.44
|
||||
Conflicts: otherproviders(libpng-devel)
|
||||
|
||||
%package tools
|
||||
Summary: Tools for Manipulating PNG Images
|
||||
Group: Productivity/Graphics/Other
|
||||
Provides: libpng-tools = %{version}
|
||||
Conflicts: otherproviders(libpng-tools)
|
||||
|
||||
%description
|
||||
libpng is the official reference library for the Portable Network
|
||||
Graphics format (PNG).
|
||||
@ -94,7 +106,12 @@ 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
|
||||
%{?gpg_verify: %gpg_verify %{SOURCE1}}
|
||||
%setup -n libpng-%{version}
|
||||
|
||||
%build
|
||||
@ -112,6 +129,9 @@ make check
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm $RPM_BUILD_ROOT/%{_libdir}/libpng*.la
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
cp -a %{SOURCE3} \
|
||||
%{buildroot}%{_sysconfdir}/rpm/macros.libpng-tools
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
@ -139,4 +159,10 @@ rm $RPM_BUILD_ROOT/%{_libdir}/libpng*.la
|
||||
%doc %{_mandir}/man3/libpngpf.3.gz
|
||||
%doc %{_mandir}/man5/png.5.gz
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/png-fix-itxt
|
||||
%{_bindir}/pngfix
|
||||
%{_sysconfdir}/rpm/macros.libpng-tools
|
||||
|
||||
%changelog
|
||||
|
41
rpm-macros.libpng-tools
Normal file
41
rpm-macros.libpng-tools
Normal file
@ -0,0 +1,41 @@
|
||||
# macro: %png_fix_too_far_back path/to/name-of.png
|
||||
# for given png, fixes 'IDAT: invalid distance too far back'
|
||||
#
|
||||
# -v output if macro fixed something or find unrecoverable error
|
||||
#
|
||||
%png_fix_too_far_back(v) \
|
||||
if test "x%1" == "x%%1"; then \
|
||||
echo "Missing argument in call to %%png_fix_too_far_back: path and name of png file." \
|
||||
exit 1 \
|
||||
fi \
|
||||
/usr/bin/png-fix-too-far-back "%1" \
|
||||
case $? in \
|
||||
0) # no need to fix \
|
||||
;; \
|
||||
1) /usr/bin/png-fix-too-far-back -i "%1" \
|
||||
%{-v: echo "fixed: %1" } \
|
||||
;; \
|
||||
2) %{-v: echo "unrecoverable error: %1" } \
|
||||
;; \
|
||||
3) echo "%1 not found" \
|
||||
;; \
|
||||
esac \
|
||||
%nil
|
||||
#
|
||||
# macro: %png_fix_too_far_back dir
|
||||
# for given directory, search *.png (recursively) and potentionaly
|
||||
# fix 'IDAT: invalid distance too far back'
|
||||
#
|
||||
# -v output if macro fixed something or find unrecoverable error
|
||||
#
|
||||
%png_fix_too_far_back_dir(v) \
|
||||
if test "x%1" == "x%%1"; then \
|
||||
echo "Missing argument in call to %%png_fix_too_far_back_dir: dir where to search png files." \
|
||||
exit 1 \
|
||||
fi \
|
||||
for png in `find "%1" -iname '*.png'`; do \
|
||||
# -v will be propagated \
|
||||
%png_fix_too_far_back $png \
|
||||
done \
|
||||
%nil
|
||||
|
Loading…
Reference in New Issue
Block a user