%ifos aix6.1 || %ifos aix7.1 %global p7build 1 %else %global p7build 0 %endif Name: lunzip Version: 1.11 %if %{p7build} Release: 1.p7 %else Release: 1 %endif Summary: Lossless Data decompressor based on the LZMA Algorithm Source0: http://mirrors.zerg.biz/nongnu/%{name}/%{name}-%{version}.tar.gz Source1: http://mirrors.zerg.biz/nongnu/%{name}/%{name}-%{version}.tar.gz.sig Patch0: %{name}-%{version}-aix.patch URL: http://www.nongnu.org/lzip/lunzip.html Group: Productivity/Archiving/Compression License: GNU General Public License version 3 (GPL v3) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: make, coreutils %if %{p7build} %ifos aix6.1 Requires: AIX-rpm >= 6.1.8.0 %endif %ifos aix7.1 Requires: AIX-rpm >= 7.1.3.0 %endif %endif %description Lunzip is a decompressor for lzip files. It is written in C and its small size makes it well suited for embedded devices or software installers that need to decompress files but do not need compression capabilities. Lunzip replaces every file given in the command line with a decompressed version of itself. Each decompressed file has the same modification date, permissions, and, when possible, ownership as the corresponding compressed file. Lunzip is able to read from some types of non regular files if the "--stdout" option is specified. If no file names are specified, lunzip decompresses from standard input to standard output. In this case, lunzip will decline to read compressed input from a terminal. Lunzip will correctly decompress a file which is the concatenation of two or more compressed files. The result is the concatenation of the corresponding uncompressed files. Integrity testing of concatenated compressed files is also supported. The amount of memory required by lunzip to decompress a file is only a few tens of KiB larger than the dictionary size used to compress that file. Authors: -------- Antonio Diaz Diaz %prep %setup -q %if %{p7build} %else %patch0 # fake a as AIX5L V5.1 and XLC/C++ V7 doesn't have one cat > stdbool.h << EOF #ifndef stdbool_h_wrapper #define stdbool_h_wrapper typedef enum {false = 0, true = 1} bool; #endif EOF %endif %build export CC="xlc" ./configure \ --prefix="%{_prefix}" \ --mandir="%{_mandir}" \ CC="${CC}" \ CFLAGS="${CFLAGS}" gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake install DESTDIR=${RPM_BUILD_ROOT} INSTALL=/opt/freeware/bin/install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mkdir -p ${RPM_BUILD_ROOT}/usr/bin cd ${RPM_BUILD_ROOT}/usr/bin ln -s ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Mon Jan 14 2019 Michael Perzl - 1.11-1 - updated to version 1.11 * Tue Jun 12 2018 Michael Perzl - 1.10-1 - updated to version 1.10 * Thu Jun 01 2017 Michael Perzl - 1.9-1 - updated to version 1.9 * Wed Jun 22 2016 Michael Perzl - 1.8-1 - updated to version 1.8 * Thu Jul 16 2015 Michael Perzl - 1.7-1 - updated to version 1.7 * Thu Dec 11 2014 Michael Perzl - 1.6-1 - updated to version 1.6 * Tue Apr 15 2014 Michael Perzl - 1.5-1 - updated to version 1.5 * Mon Sep 30 2013 Michael Perzl - 1.4-1 - updated to version 1.4 * Fri Jun 21 2013 Michael Perzl - 1.3-1 - updated to version 1.3 * Wed Feb 20 2013 Michael Perzl - 1.2-1 - updated to version 1.2 * Tue Apr 03 2012 Michael Perzl - 1.1-1 - updated to version 1.1 * Wed Jan 19 2011 Michael Perzl - 1.0-1 - first version for AIX V5.1 and higher