# $Id$
# Authority: matthias
%{?dtag: %{expand: %%define %dtag 1}}
%{?fc1:%define _with_static_rar 1}
%{?el3:%define _with_static_rar 1}
%{?rh9:%define _with_static_rar 1}
%{?rh7:%define _with_static_rar 1}
%{?el2:%define _with_static_rar 1}
# 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}
Summary: RAR archiver to create and manage RAR archives
Name: rar
Version: 3.7.0
Release: 0.1.beta1
License: Shareware
Group: Applications/Archiving
URL: http://www.rarlabs.com/
#Source: http://www.rarlabs.com/rar/rarlinux-%{version}.tar.gz
Source: http://www.rarlabs.com/rar/rarlinux-3.7.b1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
ExclusiveArch: %{ix86}
%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 -n %{name}
%build
%install
%{__rm} -rf %{buildroot}
%if %{?_with_static_rar:1}0
%{__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
%{_sysconfdir}/rarfiles.lst
%{_bindir}/rar
%{_libdir}/default.sfx
%changelog
* 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