public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sng] rawhide: Version 1.1.2
@ 2026-06-19 14:01 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-19 14:01 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-19 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 14:01 [rpms/sng] rawhide: Version 1.1.2 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox