OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Jan-2007 11:57:45
Branch: HEAD Handle: 2007010210574500
Added files:
openpkg-src/grzip grzip.patch grzip.spec
Log:
new package: grzip 0.2.5 (Block-Sorting Lossless Data Compression
Algorithm)
Summary:
Revision Changes Path
1.1 +57 -0 openpkg-src/grzip/grzip.patch
1.1 +93 -0 openpkg-src/grzip/grzip.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/grzip/grzip.patch
============================================================================
$ cvs diff -u -r0 -r1.1 grzip.patch
--- /dev/null 2007-01-02 11:55:08 +0100
+++ grzip.patch 2007-01-02 11:57:45 +0100
@@ -0,0 +1,57 @@
+Index: Makefile
+--- Makefile.orig 2007-01-01 22:22:25 +0100
++++ Makefile 2007-01-02 11:50:46 +0100
+@@ -6,21 +6,16 @@
+ # Modified compressor client program par Jean-Pierre Demailly
+ # (command line options matching more closely those of gzip/bzip2)
+
+-GRZIPLIB = -lgrzip -L.
++GRZIPLIB = -L. -lgrzip
+
+ CC = gcc
+-WARNING = -Wno-error
+-OPTFLAGS = -O6 -ffast-math -fomit-frame-pointer -fforce-addr \
+- -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\"
+-# CPUARCH = -mcpu=pentium
+-CPUARCH = -march=pentium
++WARNING =
++OPTFLAGS = -O2 -ffast-math -fomit-frame-pointer -fforce-addr
++CPUARCH =
+
+-CFLAGS = $(CPUARCH) $(OPTFLAGS) $(WARNING) -s -lm
++CFLAGS = $(OPTFLAGS) $(WARNING)
+
+-static: grzip_static
+- @echo "\nType 'make all' to generate shared library\n"
+-
+-all: libgrzip.so GRZipII grzip grzip_static
++all: libgrzip.a grzip
+
+ install: static
+ if [ -x grzip_static ] ; then install -c -s grzip_static /usr/bin/grzip
; fi
+@@ -33,21 +28,21 @@
+
+ GRZipII: libGRZip.h CRC32.c BWT.c LZP.c ST4.c MTF_Ari.c WFC_Ari.c Rec_Flt.c
\
+ libgrzip.c GRZipII.c
+- $(CC) $(CFLAGS) GRZipII.c -o GRZipII
++ $(CC) $(CFLAGS) GRZipII.c -o GRZipII -lm
+
+ grzip: libGRZip.h CRC32.c BWT.c LZP.c ST4.c MTF_Ari.c WFC_Ari.c Rec_Flt.c \
+ libgrzip.c main.c grzip.c
+- $(CC) $(CFLAGS) $(GRZIPLIB) grzip.c -o grzip
++ $(CC) $(CFLAGS) grzip.c -o grzip $(GRZIPLIB) -lm
+
+ grzip_static: libGRZip.h CRC32.c BWT.c LZP.c ST4.c MTF_Ari.c WFC_Ari.c \
+ Rec_Flt.c libgrzip.c main.c grzip.c
+ $(CC) $(CFLAGS) grzip_static.c -o grzip_static
+ cd po ; make
+
+-libgrzip.so: libGRZip.h CRC32.c BWT.c LZP.c ST4.c MTF_Ari.c WFC_Ari.c \
++libgrzip.a: libGRZip.h CRC32.c BWT.c LZP.c ST4.c MTF_Ari.c WFC_Ari.c \
+ Rec_Flt.c main.c libgrzip.c
+ $(CC) $(CFLAGS) -c libgrzip.c -o libgrzip.o
+- $(CC) -shared -Wl,-soname,libgrzip.so libgrzip.o -o libgrzip.so
++ ar rc libgrzip.a libgrzip.o
+
+ pot:
+ xgettext --keyword=_ -o grzip.pot main.c
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/grzip/grzip.spec
============================================================================
$ cvs diff -u -r0 -r1.1 grzip.spec
--- /dev/null 2007-01-02 11:55:08 +0100
+++ grzip.spec 2007-01-02 11:57:45 +0100
@@ -0,0 +1,93 @@
+##
+## grzip.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: grzip
+Summary: Block-Sorting Lossless Data Compression Algorithm
+URL: http://magicssoft.ru/?folder=projects&page=GRZipII
+Vendor: Grebnov Ilya, Jean-Pierre Demailly
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Compression
+License: LGPL
+Version: 0.2.5
+Release: 20070102
+
+# list of sources
+Source0:
ftp://ftp.ac-grenoble.fr/ge/compression/grzip-%{version}.tar.bz2
+Patch0: grzip.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823
+PreReq: OpenPKG, openpkg >= 20060823
+AutoReq: no
+AutoReqProv: no
+
+%description
+ GRZip II is a high-performance file compressor based on
+ Burrows-Wheeler Transform (BWT), Schindler Transform (ST),
+ Move-To-Front (MTF) and Weighted Frequency Counting (WFC). It uses
+ The Block-Sorting Lossless Data Compression Algorithm (BSLDCA),
+ which has received considerable attention over recent years for
+ both its simplicity and effectiveness. This implementation has
+ compression rate of 2.234bps on the Calgary Corpus (14 files)
+ without preprocessing filters.
+
+%track
+ prog grzip = {
+ version = %{version}
+ url = ftp://ftp.ac-grenoble.fr/ge/compression/
+ regex = grzip-(__VER__)\.tar\.bz2
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ %{l_make} %{l_mflags} \
+ CC="%{l_cc}" WARNING="%{l_cflags -O}"
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/include \
+ $RPM_BUILD_ROOT%{l_prefix}/lib
+ %{l_shtool} install -c -s -m 755 \
+ grzip $RPM_BUILD_ROOT%{l_prefix}/bin/grzip
+ %{l_shtool} install -c -m 644 \
+ grzip.h $RPM_BUILD_ROOT%{l_prefix}/include/
+ %{l_shtool} install -c -m 644 \
+ libgrzip.a $RPM_BUILD_ROOT%{l_prefix}/lib/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]