SHA256
1
0
forked from pool/lz4
Jan Engelhardt 2013-09-03 16:51:56 +00:00 committed by Git OBS Bridge
parent fe3bb6b9a5
commit 3c9187502e
6 changed files with 136 additions and 29 deletions

View File

@ -1,29 +1,53 @@
--- From: Jan Engelhardt <jengelh@inai.de>
Makefile.am | 6 ++++++ Date: 2013-09-03 18:36:01.337662518 +0200
configure.ac | 8 ++++++++
2 files changed, 14 insertions(+)
Index: lz4/Makefile.am build: add automake files
cmake is nice, but the lz4c32/lz4c64 distinction is totally uncool
for distros. The many options also make CMakeLists.txt longer than
it needs to be.
---
Makefile.am | 19 +++++++++++++++++++
configure.ac | 10 ++++++++++
2 files changed, 29 insertions(+)
Index: trunk/Makefile.am
=================================================================== ===================================================================
--- /dev/null --- /dev/null
+++ lz4/Makefile.am +++ trunk/Makefile.am
@@ -0,0 +1,6 @@ @@ -0,0 +1,19 @@
+# -*- Makefile -*- +# -*- Makefile -*-
+ +
+AM_CFLAGS = -Wall -std=c99 +AM_CFLAGS = -Wall -W -Wundef -Wcast-align -Wno-implicit-function-declaration \
+ -Os -std=c99
+ +
+bin_PROGRAMS = lz4 +lib_LTLIBRARIES = liblz4.la
+lz4_SOURCES = lz4.c lz4.h lz4hc.c lz4hc.h bench.c lz4demo.c +liblz4_la_SOURCES = lz4.c lz4hc.c
Index: lz4/configure.ac +liblz4_la_LDFLAGS = -release 0s102
+
+include_HEADERS = lz4.h lz4hc.h
+
+bin_PROGRAMS = lz4c
+lz4c_SOURCES = xxhash.c bench.c lz4c.c
+lz4c_LDADD = liblz4.la
+
+noinst_PROGRAMS = fuzzer fullbench
+fuzzer_LDADD = liblz4.la
+fullbench_SOURCES = fullbench.c xxhash.c
+fullbench_LDADD = liblz4.la
Index: trunk/configure.ac
=================================================================== ===================================================================
--- /dev/null --- /dev/null
+++ lz4/configure.ac +++ trunk/configure.ac
@@ -0,0 +1,8 @@ @@ -0,0 +1,10 @@
+AC_INIT([lz4], [0]) +AC_INIT([lz4], [0])
+AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax]) +AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax dist-xz])
+AC_PROG_CC +AC_PROG_CC
+AM_PROG_CC_C_O +AM_PROG_CC_C_O
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+LT_INIT([disable-static])
+AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile])
+AC_OUTPUT +AC_OUTPUT

31
lz4-killdate.diff Normal file
View File

@ -0,0 +1,31 @@
---
fullbench.c | 2 +-
lz4c.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: trunk/fullbench.c
===================================================================
--- trunk.orig/fullbench.c
+++ trunk/fullbench.c
@@ -105,7 +105,7 @@
//****************************
#define COMPRESSOR_NAME "Full LZ4 speed analyzer"
#define COMPRESSOR_VERSION ""
-#define COMPILED __DATE__
+#define COMPILED "SUSE"
#define AUTHOR "Yann Collet"
#define WELCOME_MESSAGE "*** %s %s, by %s (%s) ***\n", COMPRESSOR_NAME, COMPRESSOR_VERSION, AUTHOR, COMPILED
Index: trunk/lz4c.c
===================================================================
--- trunk.orig/lz4c.c
+++ trunk/lz4c.c
@@ -85,7 +85,7 @@
//****************************
#define COMPRESSOR_NAME "LZ4 Compression CLI"
#define COMPRESSOR_VERSION ""
-#define COMPILED __DATE__
+#define COMPILED "SUSE"
#define AUTHOR "Yann Collet"
#define EXTENSION ".lz4"
#define WELCOME_MESSAGE "*** %s %s, by %s (%s) ***\n", COMPRESSOR_NAME, COMPRESSOR_VERSION, AUTHOR, COMPILED

3
lz4-svn102.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4ca723da9ee4ea1cb5ab1bf9b2ac11ffe15c62ef5a85ec5f90d5866921fb715
size 121264

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce5377a0f42a3881eae447cc8ae1638e4b152f2b4dc6a55494a8fcfb08907e10
size 18360

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 3 16:48:31 UTC 2013 - jengelh@inai.de
- Update to new snapshot svn102; set version as 1.3.3 in accordance
with latest Windows releases.
* Add lz4-killdate.diff (kill the ungodly __DATE__s)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 21 05:52:43 UTC 2013 - jengelh@inai.de Thu Feb 21 05:52:43 UTC 2013 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package lz4 # spec file for package lz4
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -14,30 +14,65 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: lz4 Name: lz4
Version: 1.2d+77 %define lname liblz4-0s102
Version: 1.3.3+svn102
Release: 0 Release: 0
Summary: Hash-based Predictive LZ compressor Summary: Hash-based Predictive Lempel-Ziv compressor
License: GPL-2.0+ and BSD-2-Clause
Group: Productivity/Archiving/Compression Group: Productivity/Archiving/Compression
License: BSD-2-Clause Url: http://code.google.com/p/lz4/
URL: http://code.google.com/p/lz4/
#URL: http://fastcompression.blogspot.com/p/lz4.html #URL: http://fastcompression.blogspot.com/p/lz4.html
#SVN-Clone: http://lz4.googlecode.com/svn/trunk #SVN-Clone: http://lz4.googlecode.com/svn/trunk
# Project offers no source tarballs. # Project offers no source tarballs.
Source: lz4-svn77.tar.xz Source: %name-svn102.tar.xz
Patch1: lz4-automake.diff Patch1: lz4-automake.diff
Patch2: lz4-killdate.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf, automake, xz BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool >= 2
BuildRequires: xz
%description %description
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv) LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. Originally a fork from LZP2, it provides better algorithm. It is a LZP2 fork and provides better compression ratio
compression ratio for text files. for text files.
This subpackage provides a GPL command-line utility to make use of
the LZ4 algorithm.
%package -n %lname
Summary: Hash-based predictive Lempel-Ziv compressor
License: BSD-2-Clause
Group: System/Libraries
%description -n %lname
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. It is a LZP2 fork and provides better compression ratio
for text files.
This subpackage contains the (de)compressor code as a shared library.
%package devel
Summary: Development files for the LZ4 compressor
License: BSD-2-Clause
Group: Development/Libraries/C and C++
%description devel
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
algorithm. It is a LZP2 fork and provides better compression ratio
for text files.
This subpackage contains libraries and header files for developing
applications that want to make use of liblz4.
%prep %prep
%setup -qn %name %setup -qn trunk
%patch -P 1 -p1 %patch -P 1 -P 2 -p1
%build %build
autoreconf -fi; autoreconf -fi;
@ -46,9 +81,19 @@ make %{?_smp_mflags}
%install %install
make install DESTDIR="%buildroot" make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%_bindir/lz4 %_bindir/lz4c
%files -n %lname
%defattr(-,root,root)
%_libdir/liblz4-*.so
%files devel
%defattr(-,root,root)
%_includedir/lz4*.h
%_libdir/liblz4.so
%changelog %changelog