Name: unzoo Version: 4.4 Release: 1 Summary: ZOO archive extractor Group: Applications/Archiving License: Public Domain URL: http://archives.math.utk.edu/software/multi-platform/gap/util/unzoo.c Source0: http://archives.math.utk.edu/software/multi-platform/gap/util/unzoo.c BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description 'unzoo' is a zoo archive extractor. A zoo archive is a file that contains several files, called its members, usually in compressed form to save space. 'unzoo' can list all or selected members or extract all or selected members, i.e., uncompress them and write them to files. It cannot add new members or delete members. For this you need the zoo archiver, called 'zoo', written by Rahul Dhesi. %prep %setup -Tc cp -r %{SOURCE0} . cat %{SOURCE0} | sed -e '/SYNTAX/,/\*\//!d' | cut -c5- > unzoo.txt %build $CC $CFLAGS -o %{name} -DSYS_IS_UNIX %{name}.c %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp %{name} ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/%{name} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc unzoo.txt %{_bindir}/%{name} /usr/bin/%{name} %changelog * Fri Nov 05 2010 Michael Perzl - 4.4-1 - first version for AIX V5.1 and higher