%bcond_with static_rar # The source contains only binaries... %define _use_internal_dependency_generator 0 # Disable stripping or the default.sfx will get trashed %define __strip /bin/true # Don't create a debuginfo package since it would be empty %define debug_package %{nil} # define prever b4 # define prever_dot .b4 Summary: RAR archiver to create and manage RAR archives Name: rar Version: 3.8.0 Release: 1%{?prever_dot}%{dist} License: Shareware Group: Applications/Archiving URL: http://www.rarlabs.com/ %ifarch x86_64 Source: http://www.rarlabs.com/rar/rarlinux-x64-%{version}.tar.gz Source1: http://www.rarlabs.com/rar/rarlinux-%{version}%{?prever_dot}.tar.gz %else Source: http://www.rarlabs.com/rar/rarlinux-%{version}%{?prever_dot}.tar.gz Source1: http://www.rarlabs.com/rar/rarlinux-x64-%{version}.tar.gz %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description RAR is a powerful tool allowing you to manage and control archive files. Console RAR supports archives only in RAR format, which names usually have a ".rar" extension. ZIP and other formats are not supported. %prep %setup -q -n %{name} %build %install %{__rm} -rf %{buildroot} %if %{with static_rar} %{__install} -D -p -m0755 rar_static %{buildroot}%{_bindir}/rar %else %{__install} -D -p -m0755 rar %{buildroot}%{_bindir}/rar %endif %{__install} -D -p -m0644 rarfiles.lst %{buildroot}%{_sysconfdir}/rarfiles.lst %{__install} -D -p -m0755 default.sfx %{buildroot}%{_libdir}/default.sfx %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc *.txt file_id.diz %config(noreplace) %{_sysconfdir}/rarfiles.lst %{_bindir}/rar %{_libdir}/default.sfx %changelog * Wed Feb 11 2009 Liang Suilong 3.8.0-1 - Build package for RPMFusion * Thu Oct 23 2008 Paulo Roma 3.8.0-1 - Update to 3.8.0 final. - Using x86_64 source and i386. * Sun Sep 21 2008 Paulo Roma 3.8-0.1.b4 - Update to 3.8.0 beta4. - Made setup quiet. - Using %%config for rarfiles.lst - Defined %%prever * Fri Oct 26 2007 Paulo Roma 3.7.1-1 - Update to 3.7.1. - Using %%bcond_with static_rar * Wed Mar 7 2007 Matthias Saou 3.7.0-0.1.beta1 - Update to 3.7.0 beta1 (aka 3.7.b1). - Disable (empty) debuginfo package. - Add empty %%build section. - Fix macros inside the %%changelog. * Fri Apr 28 2006 Dag Wieers - 3.6.0-0.2.beta2 - Added _with_static_rar for older distributions (<= FC1). * Wed Apr 19 2006 Matthias Saou 3.6.0-0.1.beta2 - Update to 3.6.0 beta2 (aka 3.6.b2). - Put exclusive arch back, not removed on purpose. * Fri Oct 14 2005 Matthias Saou 3.5.1-1 - Update to 3.5.1 (aka 3.51). * Sun Jun 5 2005 Matthias Saou 3.5-0.b1 - Update to 3.5.b1. * Wed Nov 3 2004 Matthias Saou 3.4.1-1 - Update to 3.4.1. * Wed May 19 2004 Matthias Saou 3.3.0-2 - Updated description. - Fixed the rarfiles.lst installation. - Rebuild for Fedora Core 2. * Thu Feb 26 2004 Matthias Saou 3.3.0-1 - Update to 3.3.0. * Fri Nov 7 2003 Matthias Saou 3.2.0-3 - Rebuild for Fedora Core 1. * Mon Nov 3 2003 Matthias Saou 3.2.0-2.fr - Disable stripping to not trash the default.sfx file. - Add back rarfiles.lst, as it does work, thanks to Ondrej Svejda. * Thu Oct 30 2003 Matthias Saou 3.2.0-1.fr - Update to latest version. - Spec file cleanup. - Remove the internal dep check to avoid "corrupted program header size" msg. * Sun Mar 18 2001 Matthias Saou - Fix the %%files with a %%dir (cleaner uninstall) - Spec file cleanup * Sun Mar 18 2001 Alexander Skwar 2.80-1 - New non-beta release * Mon Feb 26 2001 Alexander Skwar 2.80b5-1 - New release, see http://www.rarsoft.com/rar/WhatsNew.txt for list of fixed bugs * Sun Jan 28 2001 Alexander Skwar 2.80b4-1 - Nothing exciting, besides the latest beta * Thu Jan 4 2001 Alexander Skwar 2.80b2-1 - Another new version * Sat Sep 15 2000 01:00:35 Alexander Skwar 2.71-1 - New version