Summary: Extract, test and view RAR archives Name: unrar Version: 5.0.12 Release: 1 License: Freeware Group: Applications/Archiving URL: http://www.rarlab.com/ Source0: http://www.rarlab.com/rar/unrarsrc-%{version}.tar.gz Source1: %{name}.1 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: make %description The unRAR utility is a freeware program, distributed with source code and developed for extracting, testing and viewing the contents of archives created with the RAR archiver version 1.50 and above. %prep %setup -q -n %{name} %patch0 %build gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 cp unrar ${RPM_BUILD_ROOT}%{_bindir}/unrar chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1/unrar.1 chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man1/* 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,0755) %doc *.txt %{_bindir}/* %{_mandir}/man1/* /usr/bin/* %changelog * Tue Dec 09 2014 Michael Perzl - 5.0.12-1 - updated to version 5.0.12 * Tue Dec 09 2014 Michael Perzl - 5.0.3-1 - updated to version 5.0.3 * Tue Jun 19 2012 Michael Perzl - 4.2.4-1 - updated to version 4.2.4 * Fri Jul 01 2011 Michael Perzl - 4.0.7-1 - updated to version 4.0.7 * Wed Jan 12 2011 Michael Perzl - 4.0.4-1 - updated to version 4.0.4 * Mon May 26 2008 Michael Perzl - 3.7.8-1 - first version for AIX V5.1 and higher