Summary: An archiving and compression utility for LHarc format archives. Name: lha Version: 1.14i Release: 1 License: freeware Group: Applications/Archiving Source0: http://www2m.biglobe.ne.jp/~dolphin/lha/prog/%{name}-114i.tar.gz Patch0: lha-1.14i-aix.patch Patch1: lha-1.14e-ext.patch Patch2: lha-1.14i-fix-includes.patch Patch3: lha-114i-sec.patch Patch4: lha-114i-symlink.patch Patch5: lha-dir_length_bounds_check.patch Patch6: lha-114i-sec2.patch Patch7: lha-1.14i-CVE-2007-2030.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description LHA is an archiving and compression utility for LHarc format archives. LHA is mostly used in the DOS world, but can be used under Linux to extract DOS files from LHA archives. Install the lha package if you need to extract DOS files from LHA archives. %prep %setup -q -n %{name}-114i export PATH=/opt/freeware/bin:$PATH %patch0 %patch1 %patch2 -p0 %patch4 -p1 -b .symlink # security fixes %patch3 -p1 -b .sec %patch5 -p1 -b .bounds %patch6 -p1 -b .sec2 %patch7 -p1 -b .cve-2007-2030 %build make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp src/lha ${RPM_BUILD_ROOT}%{_bindir} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir} /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 PROBLEMS.euc README.euc MACHINES* %{_bindir}/* /usr/bin/* %changelog * Thu Aug 14 2008 Michael Perzl - 1.14i - first version for AIX V5.1 and higher