Hello community, here is the log from the commit of package libpng16 for openSUSE:Factory checked in at 2013-08-13 11:00:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpng16 (Old) and /work/SRC/openSUSE:Factory/.libpng16.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpng16" Changes: -------- --- /work/SRC/openSUSE:Factory/libpng16/libpng16.changes 2013-06-24 09:34:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libpng16.new/libpng16.changes 2013-08-13 11:01:00.000000000 +0200 @@ -1,0 +2,15 @@ +Thu Aug 8 15:19:27 UTC 2013 - [email protected] + +- png-fix-too-far-back was actually renamed to pngfix. Adjusted rpm + macro names accordingly, %png_fix and %png_fix_dir. + +------------------------------------------------------------------- +Tue Aug 6 08:53:22 UTC 2013 - [email protected] + +- updated to 1.6.3: + * Added png-fix-itxt and png-fix-too-far-back to the built programs and + removed warnings from the source code and timepng that are revealed as + a result. + => new subpackage tools, created rpm macros + +------------------------------------------------------------------- Old: ---- libpng-1.6.2.tar.bz2 New: ---- libpng-1.6.3.tar.xz libpng-1.6.3.tar.xz.asc libpng16.keyring rpm-macros.libpng-tools ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpng16.spec ++++++ --- /var/tmp/diff_new_pack.3z3QSx/_old 2013-08-13 11:01:01.000000000 +0200 +++ /var/tmp/diff_new_pack.3z3QSx/_new 2013-08-13 11:01:01.000000000 +0200 @@ -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 @@ 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 @@ 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 @@ 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 @@ %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 @@ %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 ++++++ rpm-macros.libpng-tools ++++++ # 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" || 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 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
