commit d062a5befe471b18a65d610380b286a703633548
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Mar 16 06:01:48 2019 +0000
Torrentzip 0.9 from git source
.gitignore | 1 +
sources | 2 +-
torrentzip-0.9-format-secure.patch | 21 +++++++++++++++++++++
torrentzip.spec | 36 +++++++++++++++++-------------------
trrntzip-0.2-chmod.patch | 34 ----------------------------------
5 files changed, 40 insertions(+), 54 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index bb40bb0..174aad7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
trrntzip_v02_src.tar.gz
+/trrntzip-code-r9.zip
diff --git a/sources b/sources
index f05972d..0d5eed4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2635a4042b3cf5611ffdffb4019ec8b7 trrntzip_v02_src.tar.gz
+815262b72a4575496f33fada89ed6802 trrntzip-code-r9.zip
diff --git a/torrentzip-0.9-format-secure.patch b/torrentzip-0.9-format-secure.patch
new file mode 100644
index 0000000..a7debdd
--- /dev/null
+++ b/torrentzip-0.9-format-secure.patch
@@ -0,0 +1,21 @@
+diff -rup torrentzip-0.9/src/logging.c trrntzip-code-r9/src/logging.c
+--- torrentzip-0.9/src/logging.c 2012-02-02 14:23:45.000000000 +0000
++++ trrntzip-code-r9/src/logging.c 2019-03-16 05:31:07.129757496 +0000
+@@ -67,7 +67,7 @@ logprint (FILE * stdf, FILE * f, char *f
+ // Print to stdout or stderr
+ if (stdf)
+ {
+- fprintf (stdf, szMessageBuffer);
++ fprintf (stdf, "%s", szMessageBuffer);
+ fflush(stdf);
+ }
+
+@@ -113,7 +113,7 @@ logprint3 (FILE * stdf, FILE * f1, FILE
+ // Print to stdout or stderr
+ if (stdf)
+ {
+- fprintf (stdf, szMessageBuffer);
++ fprintf (stdf, "%s", szMessageBuffer);
+ }
+
+ // Print to logfile 1
diff --git a/torrentzip.spec b/torrentzip.spec
index af01668..50ec90f 100644
--- a/torrentzip.spec
+++ b/torrentzip.spec
@@ -3,18 +3,19 @@
Summary: Create identical zip files over multiple systems
Name: torrentzip
-Version: 0.2
-Release: 14%{?dist}
+Version: 0.9
+Release: 1%{?dist}
License: GPLv2+
Group: Applications/File
URL:
http://sourceforge.net/projects/trrntzip
-Source:
http://dl.sf.net/trrntzip/trrntzip_v02_src.tar.gz
-Patch0: trrntzip-0.2-chmod.patch
+Source:
https://sourceforge.net/code-snapshots/svn/t/tr/trrntzip/code/trrntzip-co...
+Patch0: torrentzip-0.9-format-secure.patch
Patch1: trrntzip-0.2-warningfixes.patch
Patch2: trrntzip-0.2-help.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: zlib-devel
-BuildRequires: autoconf, automake, libtool
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
%description
TorrentZip is a replacement for MameZip. The goal of the program is to use
@@ -23,35 +24,32 @@ systems.
%prep
-%setup -q -n trrntzip
-%patch0 -p0 -b .chmod
-%patch1 -p1 -b .warningfixes
-%patch2 -p1 -b .help
+%setup -q -n trrntzip-code-r9
+%patch0 -p1 -b .format_secure
+#patch1 -p1 -b .warningfixes
+#patch2 -p1 -b .help
%build
# No configure, we need to generate it from configure.in
-./autogen.sh
+sh ./autogen.sh
%configure
-make %{?_smp_mflags}
+%make_build
%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-
-
-%clean
-rm -rf %{buildroot}
+%make_install
%files
-%defattr(-, root, root, -)
%doc AUTHORS COPYING README
%{_bindir}/trrntzip
%changelog
+* Sat Mar 16 2019 Sérgio Basto <sergio(a)serjux.com> - 0.9-1
+- Torrentzip 0.9 from git source
+
* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0.2-14
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild