# vim: set sw=4 ts=4 et nu: Name: clzip Version: 1.2 Release: 0 Summary: Lossless Data Compressor based on LZMA Source: http://ftp.igh.cnrs.fr/pub/nongnu/lzip/clzip-%{version}.tar.gz URL: http://www.nongnu.org/lzip/clzip.html Group: Productivity/Archiving/Compression License: GNU General Public License version 3 (GPL v3) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: gcc make glibc-devel pkgconfig Requires(post): info Requires(preun): info %description Clzip is a lossless data compressor based on the LZMA algorithm, with very safe integrity checking and a user interface similar to that of gzip or bzip2. Clzip decompresses almost as fast as gzip and compresses better than bzip2, which makes it well suited for software distribution and data archiving. Clzip uses the lzip file format; the files produced by clzip are fully compatible with lzip-1.4 or newer. Clzip is, in fact, a C language implementation of lzip, intended for embedded devices or systems lacking a C++ compiler. %prep %setup -q %build # not autoconf ./configure \ --srcdir=. \ --prefix="%{_prefix}" \ --bindir="%{_bindir}" \ --datadir="%{_datadir}" \ --infodir="%{_infodir}" \ --mandir="%{_mandir}" \ --sysconfdir="%{_sysconfdir}" \ CC="%__cc" \ CFLAGS="%{optflags}" %__make %{?_smp_flags} %install %makeinstall %post %install_info --info-dir="%{_infodir}" "%{_infodir}/clzip.info%{ext_info}" %preun %install_info_delete --info-dir="%{_infodir}" "%{_infodir}/clzip.info%{ext_info}" %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/clzip %doc %{_mandir}/man1/clzip.1%{ext_man} %doc %{_infodir}/clzip.info%{ext_info}