# Specfile for rar
# norootforbuild

%define debug_package %{nil}

Summary:        Compression and decompression program rar
Summary(de):    Kompressions- und Dekompressionsprogramm rar
Name:           rar
Version:        7.01
Release:        1%{?dist}
License:        see license.txt
Group:          Productivity/Archiving/Compression
URL:            https://www.rarsoft.com

Source0:        https://www.rarlab.com/rar/rarlinux-x32-701.tar.gz
Source1:        https://www.rarlab.com/rar/rarlinux-x64-701.tar.gz

BuildRoot:      %{_tmppath}/%{name}-701-build
ExclusiveArch:  i386 i686 i586 x86_64

%description
Compression and decompression program.
includes version 7.01

%description -l de
Kompressions- und Dekompressionsprogramm.
Enthält Version 7.01

%prep

%setup -q -c -T
%ifarch x86_64
  tar xfz %{SOURCE1}
%else
  tar xfz %{SOURCE0}
%endif

%build

%install
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
cd rar
mkdir %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 755 rar %{buildroot}%{_bindir}/
%{__mkdir_p} %{buildroot}%{_libdir}
%{__mkdir_p} %{buildroot}/etc
chmod 644 *
# cd ../oldrar/rar
# %{__install} -m 755 rar %{buildroot}%{_bindir}/rar2
#%{__install} -m 755 unrar %{buildroot}%{_bindir}/unrar2

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%doc rar/*.txt rar/*.htm
%{_bindir}/*

%changelog
* Sat Apr 8 2023 niohiani <bongochong@github.com> - 6.21
- update to 6.21

* Wed Feb 8 2023 niohiani <bongochong@github.com> - 6.20
- update to 6.20

* Fri Apr 15 2022 niohiani <bongochong@github.com> - 6.11
- update to 6.11

* Sat Jul 24 2021 niohiani <bongochong@github.com> - 6.0.2-1
- update to 6.0.2

* Thu Jul  8 2021 niohiani <bongochong@github.com> - 6.0.0-1
* Release 6.0.0-1
	See the list of chages here: http://www.rarlab.com/rarnew.htm

* Tue Aug  8 2017 Larence R. Rogers <lrr@cert,org> - 5.4.0-1
* Release 5.4.0-1
	See the list of chages here: http://www.rarlab.com/rarnew.htm

* Wed Nov 18 2015 Larence R. Rogers <lrr@cert,org> - 5.3.0-1
* Release 5.3.0-1
  1. Directory wildcards are allowed in RAR command line in file names to
      archive. For example:

      rar a backup c:\backup\2015*\*

      Recursion is enabled automatically for such directory wildcards
      even if -r switch is not specified.

   2. New 'R' object for -sc switch defines encoding of console
      RAR messages sent to redirected files and pipes. For example:

      rar lb -scur data > list.txt

      will produce Unicode list.txt with archived file names.

   3. Console RAR "l" and "v" commands display file time in YYYY-MM-DD
      format.

   4. "Test" command also verifies contents of NTFS alternate data streams
      in RAR 3.x - 5.x archives. Previously their contents was checked
      only during extraction command.

   5. Bugs fixed:

      a) console RAR crashed instead of displaying an overwrite prompt
         when attempting to add files to already existing volumes;

      b) console RAR "lt" command did not display seconds in file timestamp.

* Wed Feb 19 2003 Manfred Tremmel <Manfred.Tremmel@iiv.de> - 3.2.0-0.pm.0
- first release