public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/sng] rawhide: Version 1.1.2
Date: Fri, 19 Jun 2026 14:01:49 GMT [thread overview]
Message-ID: <178187770937.1.390227835262370622.rpms-sng-afdd2ae99613@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/sng
Branch : rawhide
Commit : afdd2ae9961397db1cbff7561630cf4fcdd31f70
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Date : 2026-06-19T16:01:33+02:00
Stats : +42/-7 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/sng/c/afdd2ae9961397db1cbff7561630cf4fcdd31f70?branch=rawhide
Log:
Version 1.1.2
... (rhbz#2447976)
---
diff --git a/.gitignore b/.gitignore
index 3f06849..eeccc61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/sng-1.1.0.tar.gz
/sng-1.1.1.tar.xz
+/sng-1.1.2.tar.gz
+/sng-code-d0ebae1e7131df4e1f104a2c526dddb3fc965ab4.zip
diff --git a/patch-1.diff b/patch-1.diff
new file mode 100644
index 0000000..954aa8b
--- /dev/null
+++ b/patch-1.diff
@@ -0,0 +1,29 @@
+--- sng-1.1.2/sngc.c~ 2026-03-16 12:29:09.000000000 +0100
++++ sng-1.1.2/sngc.c 2026-06-19 15:32:36.296230381 +0200
+@@ -173,7 +173,7 @@
+ if (*++cp == 'x' || *cp == 'X') {
+ const char *hex =
+ "00112233445566778899aAbBcCdDeEfF";
+- char *dp;
++ const char *dp;
+ for (++cp;
+ (dp = strchr(hex, *cp)) && (dcount++ < 2);
+ cp++) {
+@@ -454,7 +454,7 @@
+ if (len > PNG_STRING_MAX_LENGTH) {
+ fatal("string token is too long");
+ }
+- strncpy(stash, token_buffer, PNG_STRING_MAX_LENGTH);
++ memcpy(stash, token_buffer, len);
+ stash[len] = '\0';
+ return (len);
+ }
+@@ -476,7 +476,7 @@
+ if (len > PNG_KEYWORD_MAX_LENGTH) {
+ fatal("keyword token is too long");
+ }
+- strncpy(stash, token_buffer, PNG_KEYWORD_MAX_LENGTH);
++ memcpy(stash, token_buffer, len);
+ stash[len] = '\0';
+ if (isspace((unsigned char)stash[0]) ||
+ isspace((unsigned char)stash[len - 1])) {
diff --git a/sng.spec b/sng.spec
index 17cdd40..2a82d2c 100644
--- a/sng.spec
+++ b/sng.spec
@@ -1,11 +1,13 @@
Name: sng
-Version: 1.1.1
+Version: 1.1.2
Release: %autorelease
Summary: Lossless editing of PNGs via a textual representation
License: Zlib
URL: https://sng.sourceforge.net/
-Source0: https://sourceforge.net/projects/sng/files/sng-%{version}.tar.xz
+# Release tarball is missing many files
+Source0: https://sourceforge.net/code-snapshots/git/s/sn/sng/code.git/sng-code-d0ebae1e7131df4e1f104a2c526dddb3fc965ab4.zip
+Patch: patch-1.diff
BuildRequires: make
BuildRequires: gcc
@@ -27,15 +29,17 @@ SNG is implemented by a compiler/decompiler called sng that losslessly
translates between SNG and PNG.
%prep
-%autosetup
+%autosetup -p1 -C
# Do not ignore specified linker flags
sed -r -i 's/LDFLAGS=/LDFLAGS+=/' Makefile
%build
-%make_build
+%make_build VERSION=%{version}
%install
-%make_install prefix=%{_prefix}
+%make_install PREFIX=%{_prefix}
+# WTF?
+mv %{buildroot}%{_bindir}/bin/sng %{buildroot}%{_bindir}/
%check
# Upstream has a test suite, but the test files are not packaged.
@@ -44,7 +48,7 @@ sed -r -i 's/LDFLAGS=/LDFLAGS+=/' Makefile
%files
%license COPYING
-%doc NEWS.adoc README TODO
+%doc NEWS.adoc README.adoc TODO
%doc %_mandir/man1/sng.1*
%_bindir/sng
diff --git a/sources b/sources
index 9a2c54b..7be93d5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sng-1.1.1.tar.xz) = 5ab3fda79adc3d42cad2b5d1380629a7534d48c9b260feb52cfdc71d766452f3a7fa04f908ecc3f7efecb541449ac4c1cef5274b7c7fe659142486b379acaf73
+SHA512 (sng-code-d0ebae1e7131df4e1f104a2c526dddb3fc965ab4.zip) = 8813bf1d31e33f564f46fc3ec42da8458e238fb82958632f04ac448820c0b56d5818d8582cc82a2874eefda579f24db2d49964a51fce9be7d3f0285ab7a3f02a
reply other threads:[~2026-06-19 14:01 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=178187770937.1.390227835262370622.rpms-sng-afdd2ae99613@fedoraproject.org \
--to=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