Update to lzo-2.06
This commit is contained in:
parent
21c8fcb2c6
commit
f83d33ef60
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
lzo-2.03.tar.gz
|
||||
/lzo-2.06.tar.gz
|
||||
|
24
lzo-2.06-configure.patch
Normal file
24
lzo-2.06-configure.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Naur lzo-2.06/configure lzo-2.06.configure/configure
|
||||
--- lzo-2.06/configure 2011-08-12 21:32:59.000000000 +0530
|
||||
+++ lzo-2.06.configure/configure 2011-09-14 12:33:41.151087816 +0530
|
||||
@@ -12964,7 +12964,7 @@
|
||||
asm_msg_amd64=no
|
||||
asm_msg_i386=no
|
||||
|
||||
-case "$host_cpu-$ac_cv_sizeof_void_p" in
|
||||
+case "$target_cpu-$ac_cv_sizeof_void_p" in
|
||||
amd64-8 | x86_64-8) asm_arch="amd64"; asm_dir="asm/amd64/src_gas/elf64"; asm_mode="amd64_src_gas_elf64" ;;
|
||||
i?86-4) asm_arch="i386"; asm_dir="asm/i386/src_gas"; asm_mode="i386_src_gas" ;;
|
||||
*) enable_asm=no ;;
|
||||
diff -Naur lzo-2.06/configure.ac lzo-2.06.configure/configure.ac
|
||||
--- lzo-2.06/configure.ac 2011-08-12 21:32:59.000000000 +0530
|
||||
+++ lzo-2.06.configure/configure.ac 2011-09-14 12:33:31.851087334 +0530
|
||||
@@ -123,7 +123,7 @@
|
||||
asm_msg_amd64=no
|
||||
asm_msg_i386=no
|
||||
|
||||
-case "$host_cpu-$ac_cv_sizeof_void_p" in
|
||||
+case "$target_cpu-$ac_cv_sizeof_void_p" in
|
||||
amd64-8 | x86_64-8) asm_arch="amd64"; asm_dir="asm/amd64/src_gas/elf64"; asm_mode="amd64_src_gas_elf64" ;;
|
||||
i?86-4) asm_arch="i386"; asm_dir="asm/i386/src_gas"; asm_mode="i386_src_gas" ;;
|
||||
*) enable_asm=no ;;
|
16
lzo.spec
16
lzo.spec
@ -1,12 +1,12 @@
|
||||
Name: lzo
|
||||
Version: 2.03
|
||||
Release: 4%{?dist}
|
||||
Version: 2.06
|
||||
Release: 1%{?dist}
|
||||
Summary: Data compression library with very fast (de)compression
|
||||
Group: System Environment/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://www.oberhumer.com/opensource/lzo/
|
||||
Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
|
||||
Patch0: lzo-2.02-configure.patch
|
||||
Patch0: lzo-2.06-configure.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
@ -59,12 +59,14 @@ gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/liblzo2.la
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}
|
||||
ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so
|
||||
install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo
|
||||
|
||||
#Remove doc
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/lzo
|
||||
|
||||
%check
|
||||
make check test
|
||||
@ -101,6 +103,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 14 2011 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 2.06-1
|
||||
- Upgrade to latest upstream
|
||||
- Apply patch from Nicolas Chauvet
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user