Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 742e5dd8fc5403dcef927111402b6ce0 > files > 2

lrzip-0.614-4.mga5.src.rpm

%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

%global docdir %{_datadir}/doc/%{name}-%{version}

# These utilities do not use the standalone library
Summary:	Compression program optimized for large files
Name:		lrzip
Version:	0.614
Release:	%mkrel 4
Group:		Archiving/Compression
License:	GPLv2+
URL:		http://ck.kolivas.org/apps/%{name}/
Source0:	http://ck.kolivas.org/apps/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	autoconf 
BuildRequires:	automake 
BuildRequires:	libtool
BuildRequires:	bzip2-devel
BuildRequires:	liblzo2-devel
BuildRequires:	perl
BuildRequires:	zlib-devel
%ifarch x86
BuildRequires:	nasm
%endif

%description
Long Range ZIP or Lzma RZIP

This is a compression program optimized for large files. The larger the file
and the more memory you have, the better the compression advantage this will
provide, especially once the files are larger than 100 MB. The advantage can
be chosen to be either size (much smaller than bzip2) or speed (much faster
than bzip2). Decompression is always much faster than bzip2.

%package -n     %{libname}
Summary:        Long Range ZIP library
Group:          System/Libraries

%description -n %{libname}
Dynamic library implementing Long Range ZIP or Lzma RZIP algorithm and archive
format.

%package -n     %{develname}
Summary:        Development files for Long Range ZIP library
Group:          Development/C
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
Files needed to develop application using Long Range ZIP library.

%prep

%setup -q

for F in lzma/history.txt; do
    iconv -f ISO-8859-1 -t UTF-8 < "$F" > "${F}.utf8"
    touch -r "$F" "${F}.utf8"
    mv "${F}.utf8" "$F"
done

%build
autoreconf -fi

%configure2_5x \
    --disable-silent-rules \
    --docdir=%{docdir} \
    --enable-shared \
    --disable-static \
    --enable-asm

%make

%install

%makeinstall_std

find %{buildroot} -name '*.*a' -exec rm {} +

%files
%{docdir}
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc decompress_demo.c liblrzip_demo.c
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*




%changelog
* Wed Oct 15 2014 umeabot <umeabot> 0.614-4.mga5
+ Revision: 750863
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.614-3.mga5
+ Revision: 682005
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.614-2.mga4
+ Revision: 521341
- Mageia 4 Mass Rebuild

* Mon Jan 21 2013 oden <oden> 0.614-1.mga3
+ Revision: 390498
- imported package lrzip


* Mon Jan 21 2013 Oden Eriksson <oeriksson@mandriva.com> 0.614-1.mga2
- fedora import (slightly)