public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gif2png] rawhide: update to gif2png-3.0.4
Date: Sat, 06 Jun 2026 05:34:20 GMT [thread overview]
Message-ID: <178072406064.1.6242822834319501402.rpms-gif2png-d06a27c460cd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gif2png
Branch : rawhide
Commit : d06a27c460cd34928e6e97329fffd999291c7f4b
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-06-06T02:34:07-03:00
Stats : +61/-51 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gif2png/c/d06a27c460cd34928e6e97329fffd999291c7f4b?branch=rawhide
Log:
update to gif2png-3.0.4
---
diff --git a/.gitignore b/.gitignore
index 2d6e9cc..6d38b1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
/gif2png-2.5.11.tar.gz
/gif2png-2.5.13.tar.gz
/gif2png-2.5.14.tar.gz
+/gif2png-3.0.4.tar.gz
+/vendor.tar.bz2
diff --git a/gif2png.spec b/gif2png.spec
index f503667..a498490 100644
--- a/gif2png.spec
+++ b/gif2png.spec
@@ -1,62 +1,65 @@
-%global debug_package %{nil}
-
-Summary: A GIF to PNG converter
-Name: gif2png
-Version: 2.5.14
-Release: %autorelease
-# Automatically converted from old format: BSD - review is highly recommended.
-License: LicenseRef-Callaway-BSD
-URL: http://www.catb.org/~esr/gif2png/
-Source0: http://www.catb.org/~esr/gif2png/%name-%version.tar.gz
-Source100: test-0.gif
-Source101: test-1.gif
-BuildRequires: gcc
-BuildRequires: libpng-devel
-BuildRequires: make
-
+%bcond_without check
+
+# gitlab.com/esr/gif2png
+%global goipath gitlab.com/esr/gif2png
+%global forgeurl https://gitlab.com/esr/gif2png
+Version: 3.0.4
+%global tag 3.0.4
+
+%gometa -L -f
+
+Summary: A GIF to PNG converter
+Name: gif2png
+Release: %autorelease
+License: BSD-2-Clause AND BSD-3-Clause
+URL: http://www.catb.org/~esr/gif2png/
+Source0: %{url}%{name}-%{version}.tar.gz
+Source1: vendor.tar.bz2
+Source2: go-vendor-tools.toml
+
+BuildRequires: go-vendor-tools
+BuildRequires: compiler(go-compiler)
+BuildRequires: make
+BuildRequires: diffutils
%description
-The gif2png program converts files from the obsolescent Graphic Interchange
-Format to Portable Network Graphics. The conversion preserves all graphic
-information, including transparency, perfectly. The gif2png program can
-even recover data from corrupted GIFs.
-
-There exists a 'web2png' program in a separate package which is able
-to convert entire directory hierarchies.
-
+The gif2png program converts files from the Graphic Interchange Format (GIF) to
+Portable Network Graphics (PNG).
%prep
-%autosetup
+%goprep -p1
+tar -xf %{S:1}
+%generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
%build
-%make_build
-
+%global gomodulesmode GO111MODULE=on
+%gobuild -mod=vendor -o %{gobuilddir}/bin/gif2png %{goipath}
%install
-%make_install
-
-# web2png is Python 2 only, see https://bugzilla.redhat.com/show_bug.cgi?id=1787242
-rm %{buildroot}%{_bindir}/web2png
-rm %{buildroot}%{_mandir}/man1/web2png*
-
-#disable tests for while
-#%check
-#P=./gif2png
-#for i in %SOURCE100 %SOURCE101; do
-# rm -f _tmp.gif
-# install -p -m 0644 $i _tmp.gif
-# $P _tmp.gif
-# $P -f < "$i" > _tmp.png
-# $P -O -f < "$i" > _tmp.png
-#done
-
-
-%files
-%{_bindir}/%{name}
-%{_mandir}/man1/%{name}*
-
-
+%go_vendor_license_install -c %{S:2}
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/gif2png %{buildroot}%{_bindir}/gif2png
+ln -sf gif2png %{buildroot}%{_bindir}/webpng
+
+install -m 0755 -vd %{buildroot}%{_mandir}/man1
+install -m 0644 -vp gif2png.1 %{buildroot}%{_mandir}/man1/gif2png.1
+ln -sf gif2png.1 %{buildroot}%{_mandir}/man1/webpng.1
+
+%check
+%go_vendor_license_check -c %{S:2}
+%if %{with check}
+cp %{gobuilddir}/bin/gif2png .
+%make_build -C tests gif2png-test
+%endif
+
+%files -f %{go_vendor_license_filelist}
+%doc README.adoc NEWS.adoc
+%{_bindir}/gif2png
+%{_bindir}/webpng
+%{_mandir}/man1/gif2png.1*
+%{_mandir}/man1/webpng.1*
%changelog
%autochangelog
diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
new file mode 100644
index 0000000..6ab4062
--- /dev/null
+++ b/go-vendor-tools.toml
@@ -0,0 +1,4 @@
+[archive]
+
+[licensing]
+detector = "askalono"
diff --git a/sources b/sources
index 8c82efd..cb388ac 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (gif2png-2.5.14.tar.gz) = a1ea3b64da64274a3363089beee748605eb24d3e05bcace29d26618a9ab3580f5ac85da893af16975c91d571866625e0883f0a4b375e82c468754f84f8982f03
+SHA512 (gif2png-3.0.4.tar.gz) = 91b0cc41c1d44006daf80fa9af8e3f5a077c5bbffe725f17aebd396098ed4c56ea44bb92a760c32b7a453e07ff0c8d273f6d0722111f28a7a71d941222adbc2c
+SHA512 (vendor.tar.bz2) = 10b71dee2f03473f2609a063d8f8040c608ce0d7697a8d8c8e2071597051a6723d1a8d8e0f6ccc1962bb02de098feb3711a083d5d2de0bae3103499efa4dea76
reply other threads:[~2026-06-06 5:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178072406064.1.6242822834319501402.rpms-gif2png-d06a27c460cd@fedoraproject.org \
--to=rosset.filipe@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox