SHA256
1
0
forked from pool/lz4

Accepting request 241281 from Archiving

- Update to svn revision 119

OBS-URL: https://build.opensuse.org/request/show/241281
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lz4?expand=0&rev=2
This commit is contained in:
Stephan Kulow 2014-07-17 15:31:49 +00:00 committed by Git OBS Bridge
commit 8b435b2348
7 changed files with 77 additions and 102 deletions

View File

@ -1,55 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-09-03 18:36:01.337662518 +0200
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
+++ trunk/Makefile.am
@@ -0,0 +1,21 @@
+# -*- Makefile -*-
+
+AM_CFLAGS = -Wall -W -Wundef -Wcast-align -Wno-implicit-function-declaration \
+ -Os -std=c99
+
+lib_LTLIBRARIES = liblz4.la
+liblz4_la_SOURCES = lz4.c lz4hc.c
+liblz4_la_LDFLAGS = -release 0s108
+
+include_HEADERS = lz4.h lz4hc.h
+
+bin_PROGRAMS = lz4c
+lz4c_SOURCES = xxhash.c bench.c lz4cli.c
+lz4c_LDADD = liblz4.la
+
+noinst_PROGRAMS = fuzzer fullbench
+fuzzer_LDADD = liblz4.la
+fullbench_SOURCES = fullbench.c xxhash.c
+fullbench_LDADD = liblz4.la
+
+man1_MANS = lz4.1
Index: trunk/configure.ac
===================================================================
--- /dev/null
+++ trunk/configure.ac
@@ -0,0 +1,10 @@
+AC_INIT([lz4], [0])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax dist-xz])
+AC_PROG_CC
+AM_PROG_CC_C_O
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+LT_INIT([disable-static])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT

View File

@ -1,31 +1,31 @@
---
fullbench.c | 2 +-
lz4c.c | 2 +-
programs/fullbench.c | 2 +-
programs/lz4cli.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: trunk/fullbench.c
Index: trunk/programs/fullbench.c
===================================================================
--- trunk.orig/fullbench.c
+++ trunk/fullbench.c
@@ -105,7 +105,7 @@
//****************************
#define COMPRESSOR_NAME "LZ4 speed analyzer"
#define COMPRESSOR_VERSION ""
-#define COMPILED __DATE__
+#define COMPILED "SUSE"
#define AUTHOR "Yann Collet"
#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", COMPRESSOR_NAME, COMPRESSOR_VERSION, (int)(sizeof(void*)*8), AUTHOR, COMPILED
Index: trunk/lz4cli.c
--- trunk.orig/programs/fullbench.c
+++ trunk/programs/fullbench.c
@@ -109,7 +109,7 @@
# define LZ4_VERSION ""
#endif
#define AUTHOR "Yann Collet"
-#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, LZ4_VERSION, (int)(sizeof(void*)*8), AUTHOR, __DATE__
+#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, LZ4_VERSION, (int)(sizeof(void*)*8), AUTHOR, "SUSE"
#define NBLOOPS 6
#define TIMELOOP 2500
Index: trunk/programs/lz4cli.c
===================================================================
--- trunk.orig/lz4cli.c
+++ trunk/lz4cli.c
@@ -108,7 +108,7 @@
//****************************
#define COMPRESSOR_NAME "LZ4 Compression CLI"
#define COMPRESSOR_VERSION "v1.0.8"
-#define COMPILED __DATE__
+#define COMPILED "SUSE"
#define AUTHOR "Yann Collet"
#define LZ4_EXTENSION ".lz4"
#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), COMPRESSOR_VERSION, AUTHOR, COMPILED
--- trunk.orig/programs/lz4cli.c
+++ trunk/programs/lz4cli.c
@@ -112,7 +112,7 @@
# define LZ4_VERSION "v1.2.0"
#endif
#define AUTHOR "Yann Collet"
-#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, AUTHOR, __DATE__
+#define WELCOME_MESSAGE "*** %s %i-bits %s, by %s (%s) ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_VERSION, AUTHOR, "SUSE"
#define LZ4_EXTENSION ".lz4"
#define LZ4_CAT "lz4cat"

View File

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

3
lz4-svn119.tar.lz Normal file
View File

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

24
lz4-use-shlib.diff Normal file
View File

@ -0,0 +1,24 @@
---
programs/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: trunk/programs/Makefile
===================================================================
--- trunk.orig/programs/Makefile
+++ trunk/programs/Makefile
@@ -69,11 +69,11 @@ default: lz4 lz4c
all: lz4 lz4c lz4c32 fullbench fullbench32 fuzzer fuzzer32 datagen
-lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
- $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)
+lz4: bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT) -L${LZ4DIR} -llz4
-lz4c : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
- $(CC) $(FLAGS) $^ -o $@$(EXT)
+lz4c: bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT) -L${LZ4DIR} -llz4
lz4c32: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
$(CC) -m32 $(FLAGS) $^ -o $@$(EXT)

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Jul 16 14:34:44 UTC 2014 - jengelh@inai.de
- Update to svn revision 119, set version to 1.2.0 (based upon
Makefile contents; it's still odd to see the 1.4 Windows release)
* Provide LZ4 as a shared library
- Remove lz4-automake.diff (no longer deemed necessary)
- Add lz4-use-shlib.diff
-------------------------------------------------------------------
Mon Nov 25 23:07:48 UTC 2013 - dsterba@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package lz4
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,8 +17,8 @@
Name: lz4
%define lname liblz4-0s108
Version: 1.4+svn108
%define lname liblz4-1
Version: 1.2.0.r119
Release: 0
Summary: Hash-based Predictive Lempel-Ziv compressor
License: GPL-2.0+ and BSD-2-Clause
@ -28,14 +28,11 @@ Url: http://code.google.com/p/lz4/
#SVN-Clone: http://lz4.googlecode.com/svn/trunk
# Project offers no source tarballs.
Source: %name-svn108.tar.xz
Patch1: lz4-automake.diff
Source: %name-svn119.tar.lz
Patch1: lz4-use-shlib.diff
Patch2: lz4-killdate.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool >= 2
BuildRequires: xz
BuildRequires: lzip
%description
LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
@ -76,23 +73,23 @@ applications that want to make use of liblz4.
%patch -P 1 -P 2 -p1
%build
autoreconf -fi;
%configure
make %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="%optflags"
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
rm -f "%_bindir"/lz4
make install DESTDIR="%buildroot" LIBDIR="%_libdir"
rm -f "%buildroot/%_libdir"/*.a
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/lz4c
%_mandir/man1/lz4.1*
%_bindir/lz4*
%_mandir/man1/*.1*
%files -n %lname
%defattr(-,root,root)
%_libdir/liblz4-*.so
%_libdir/liblz4.so.1*
%files -n liblz4-devel
%defattr(-,root,root)