From 647a4585647cb0f1e4f626b5bf7581939b2652bb Mon Sep 17 00:00:00 2001 From: mariadbbuilder_pel7x64builder0 Date: Fri, 7 Sep 2018 05:13:22 +0200 Subject: [PATCH] qpress package update Signed-off-by: mariadbbuilder_pel7x64builder0 --- SOURCES/01-include-unistd.patch | 16 +++++++++++ SPECS/qpress.spec | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 SOURCES/01-include-unistd.patch create mode 100644 SPECS/qpress.spec diff --git a/SOURCES/01-include-unistd.patch b/SOURCES/01-include-unistd.patch new file mode 100644 index 0000000..ab9350d --- /dev/null +++ b/SOURCES/01-include-unistd.patch @@ -0,0 +1,16 @@ +# +# (c) Ignacio Nin 2013, GPLv2 +# +# Include unistd.h in qpress.cpp, which uses isatty(). +# +diff -Naur a/qpress.cpp b/qpress.cpp +--- a/qpress.cpp 2010-09-23 16:09:26.000000000 -0300 ++++ b/qpress.cpp 2013-07-09 18:05:27.230845411 -0300 +@@ -92,6 +92,7 @@ + #include "aio.hpp" + #include + #include ++#include + #include "levels.c" + #include "utilities.hpp" + diff --git a/SPECS/qpress.spec b/SPECS/qpress.spec new file mode 100644 index 0000000..846b903 --- /dev/null +++ b/SPECS/qpress.spec @@ -0,0 +1,48 @@ +Name: qpress +Version: 11 +Release: 1%{?dist} +Summary: A portable file archiver using QuickLZ +Group: Applications/File +License: GPL +URL: http://www.quicklz.com/ +Source0: http://www.quicklz.com/qpress-11-source.zip +Patch0: 01-include-unistd.patch +Buildroot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ + +%description +qpress is a portable file archiver using QuickLZ and designed to utilize fast +storage systems to their max. It's often faster than file copy because the +destination is smaller than the source. A few features: +· multiple cores, reaching upto 1.1 Gbyte/s in-memory compression + on a quad core i7 +· 64-bit file sizes and tested with terabyte sized archives containing + millions of files and directories +· pipes and redirection and *nix-like behaviour for scripting and flexibility +· Adler32 checksums to ensure that decompressed data has not been corrupted +· data recovery of damaged archives with 64 Kbyte grannularity +· unbuffered disk I/O (Windows only) to prevent disk cache of other + applications from being flushed + +%prep +%setup -q -c %{name}-%{version} +%patch0 -p1 + +%build +make %{?_smp_mflags} + +%install +test "x$RPM_BUILD_ROOT" != "x/" -a -d "$RPM_BUILD_ROOT" && + rm -rf "$RPM_BUILD_ROOT" +mkdir -p "$RPM_BUILD_ROOT/usr/bin" +install qpress "$RPM_BUILD_ROOT/usr/bin/" + +%files +/usr/bin/qpress + +%changelog +* Tue Jul 9 2013 Ignacio Nin + +- Initial RPM .spec +- Include a patch file for qpress.cpp, which doesn't include unistd.h in the + source, and uses isatty().