lz4-1.2.0.r119

OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=9
This commit is contained in:
2014-07-16 14:37:16 +00:00
committed by Git OBS Bridge
parent 5d9e1fd47e
commit cd2a8694e9
6 changed files with 52 additions and 100 deletions

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,13 @@ 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
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)
@@ -73,26 +72,26 @@ applications that want to make use of liblz4.
%prep
%setup -qn trunk
%patch -P 1 -P 2 -p1
%patch -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)