Name: unrar-free Version: 0.1.1 Release: %autorelease Summary: Free software version of the non-free unrar utility License: GPLv2+ URL: https://gitlab.com/bgermann/unrar-free Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz # This commit patches some hardening errors Patch: %{url}/-/commit/a388076a518fa985f59790cf62263dbe55038392.diff BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: make BuildRequires: libarchive-devel %description unrar-free is a free software version of the non-free unrar utility. This program is a simple command-line front-end to libarchive, and can list and extract RAR archives but also other formats supported by libarchive. It does not rival the non-free unrar in terms of features, but special care has been taken to ensure it meets most user's needs. %package -n unrar Summary: Wrapper package for unrar-free Requires: %{name}%{_isa} = %{version}-%{release} %description -n unrar This packages is a wrapper to use unrar-free as /usr/bin/unrar. %prep %autosetup -p1 %build autoreconf -i %configure %make_build %install %make_install ln -s unrar-free %{buildroot}%{_bindir}/unrar ln -s unrar-free.1 %{buildroot}%{_mandir}/man1/unrar.1 %files %license COPYING %doc AUTHORS ChangeLog README TODO misc/tarar.pike %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %files -n unrar %{_bindir}/unrar %{_mandir}/man1/unrar.1* %changelog %autochangelog