Browse Source

qpress package update

Signed-off-by: mariadbbuilder_pel7x64builder0 <mariadbbuilder@powerel.org>
master
mariadbbuilder_pel7x64builder0 6 years ago
parent
commit
647a458564
  1. 16
      SOURCES/01-include-unistd.patch
  2. 48
      SPECS/qpress.spec

16
SOURCES/01-include-unistd.patch

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
#
# (c) Ignacio Nin <ignacio.nin@percona.com> 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 <stdarg.h>
#include <string>
+#include <unistd.h>
#include "levels.c"
#include "utilities.hpp"

48
SPECS/qpress.spec

@ -0,0 +1,48 @@ @@ -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 <ignacio.nin@percona.com>

- Initial RPM .spec
- Include a patch file for qpress.cpp, which doesn't include unistd.h in the
source, and uses isatty().
Loading…
Cancel
Save