%define debug_package %{nil}

Name: rar
Summary: Rar archives creator
Summary(ar): صانع أرشيفات رار
Version: 5.4.0
Release: 2%{dist}
License: redistributable
URL: http://www.rarlabs.com/
Source0: http://www.rarlabs.com/rar/rarlinux-%{version}.tar.gz
Source1: http://www.rarlabs.com/rar/rarlinux-x64-%{version}.tar.gz

%description
Rar is a powerful tool allowing you to create, manage and
control rar files.

%prep
%ifarch %{ix86}
%setup -T -b0 -n %{name}
%endif
%ifarch x86_64
%setup -T -b1 -n %{name}
%endif

%install
%{__install} -D -p -m0755 rar %{buildroot}%{_bindir}/rar
%{__install} -D -p -m0644 rarfiles.lst %{buildroot}%{_sysconfdir}/rarfiles.lst
%{__install} -D -p -m0755 default.sfx %{buildroot}%{_libdir}/default.sfx

%files
%license license.txt
%doc *.htm *.txt
%{_sysconfdir}/rarfiles.lst
%{_bindir}/rar
%{_libdir}/default.sfx

%changelog
* Tue Jan 17 2017 Mosaab Alzoubi <moceap@hotmail.com> - 5.4.0-2
- Rewritten for Ojuba

* Sat Dec 28 2013 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 5.0.1-1
- update

* Sat Sep 21 2013 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 5.0.0-1
- update

* Sun Aug 04 2013 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 5.0.b8-1
- update

* Thu Jul 18 2013 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 5.0.b7-1
- update

* Sun Aug 05 2012 Muhammad Shaban <Mr.Muhammad@linuxac.org> 4.2.0
- update 4.2.0

* Mon Jun 04 2012 Muhammad Shaban <Mr.Muhammad@linuxac.org> 4.2.b3
- update 4.2.b3

* Sun Apr 22 2012 Muhammad Shaban <Mr.Muhammad@linuxac.org> 4.1.1-1
- update 4.1.1

* Sat Dec 31 2011 Muhammad Shaban <Mr.Muhammad@linuxac.org> 4.1.b5-1
- update 4.1.b5

* Sun Nov 20 2011 Muhammad Shaban <Mr.Muhammad@linuxac.org> 4.1.b3-1
- update 4.1.b3

* Wed Jul 06 2011 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 4.0.1-1
- Initial build 1

* Tue Jul 14 2009 Dag Wieers <dag@wieers.com> - 3.8.0-1 - 7982/dag
- Updated to release 3.8.0.

* Wed Mar  7 2007 Matthias Saou <http://freshrpms.net/> 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 <dag@wieers.com> - 3.6.0-0.2.beta2
- Added _with_static_rar for older distributions (<= FC1).

* Wed Apr 19 2006 Matthias Saou <http://freshrpms.net/> 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 <http://freshrpms.net/> 3.5.1-1
- Update to 3.5.1 (aka 3.51).

* Sun Jun  5 2005 Matthias Saou <http://freshrpms.net/> 3.5-0.b1
- Update to 3.5.b1.

* Wed Nov  3 2004 Matthias Saou <http://freshrpms.net/> 3.4.1-1
- Update to 3.4.1.

* Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 3.3.0-2
- Updated description.
- Fixed the rarfiles.lst installation.
- Rebuild for Fedora Core 2.

* Thu Feb 26 2004 Matthias Saou <http://freshrpms.net/> 3.3.0-1
- Update to 3.3.0.

* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 3.2.0-3
- Rebuild for Fedora Core 1.

* Mon Nov  3 2003 Matthias Saou <http://freshrpms.net/> 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 <http://freshrpms.net/> 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 <http://freshrpms.net/>
- Fix the %%files with a %%dir (cleaner uninstall)
- Spec file cleanup

* Sun Mar 18 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 2.80-1
- New non-beta release

* Mon Feb 26 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 2.80b5-1
- New release, see http://www.rarsoft.com/rar/WhatsNew.txt for
  list of fixed bugs

* Sun Jan 28 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 2.80b4-1
- Nothing exciting, besides the latest beta

* Thu Jan  4 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 2.80b2-1
- Another new version

* Sat Sep 15 2000 01:00:35 Alexander Skwar <ASkwar@DigitalProjects.com> 2.71-1
- New version