- added format patch (fixes build with -Werror=format-security) master auto/th/clit-1.8-3
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 1 Sep 2016 16:29:39 +0000 (18:29 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 1 Sep 2016 16:29:39 +0000 (18:29 +0200)
- release 3 (libtommath rebuild)

clit-format.patch [new file with mode: 0644]
clit.spec

diff --git a/clit-format.patch b/clit-format.patch
new file mode 100644 (file)
index 0000000..59c46cd
--- /dev/null
@@ -0,0 +1,14 @@
+--- clit-1.8/clit18/clit.c.orig        2004-07-04 17:20:12.000000000 +0200
++++ clit-1.8/clit18/clit.c     2016-09-01 18:15:22.946863883 +0200
+@@ -125,9 +125,9 @@
+             dir_program[i+1] = '\0'; break;\r
+         }\r
+     }\r
+-    printf(sTitle);\r
++    fputs(sTitle, stdout);\r
+     if (argc < 3) { \r
+-        printf(sUsage);\r
++        fputs(sUsage, stdout);\r
+         return -1;\r
+     }\r
+     base = 1;\r
index 015e8c0..ba9b58c 100644 (file)
--- a/clit.spec
+++ b/clit.spec
@@ -3,11 +3,12 @@ Summary:      Open Convert-.LIT tool
 Summary(pl.UTF-8):     Otwarte narzędzie do rozpakowywania plików .LIT
 Name:          clit
 Version:       1.8
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Applications/Archiving
 Source0:       http://www.kyz.uklinux.net/downloads/open_c-lit-%{version}.tar.gz
 # Source0-md5: d8c599cf0e3cd8bab08e455e51ef852d
+Patch0:                %{name}-format.patch
 URL:           http://www.kyz.uklinux.net/convlit.php
 BuildRequires: libtommath-devel
 BuildRequires: sed >= 4.0
@@ -25,6 +26,7 @@ być pogwałceniem DMCA.
 
 %prep
 %setup -q -c
+%patch0 -p1
 
 sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile
 
@@ -48,4 +50,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/clit
This page took 0.103913 seconds and 4 git commands to generate.