From 32da9af029dea6cd214dae0c3ad4f1de4d1e3942 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 1 Sep 2016 18:29:39 +0200 Subject: [PATCH] - added format patch (fixes build with -Werror=format-security) - release 3 (libtommath rebuild) --- clit-format.patch | 14 ++++++++++++++ clit.spec | 6 ++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 clit-format.patch diff --git a/clit-format.patch b/clit-format.patch new file mode 100644 index 0000000..59c46cd --- /dev/null +++ b/clit-format.patch @@ -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; + } + } +- printf(sTitle); ++ fputs(sTitle, stdout); + if (argc < 3) { +- printf(sUsage); ++ fputs(sUsage, stdout); + return -1; + } + base = 1; diff --git a/clit.spec b/clit.spec index 015e8c0..ba9b58c 100644 --- 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 -- 2.43.0