## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec 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 * Sat Jul 23 2022 Fedora Release Engineering 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Apr 12 2022 Davide Cavalca 0.1.1-1 - Initial import; Fixes: RHBZ#2074312