unar/unar.spec

80 lines
2.8 KiB
RPMSpec

%global detectorver 1.1
Name: unar
Version: 1.10.8
Release: 1mamba
Summary: Multi-format extractor
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://theunarchiver.com/command-line
Source: https://github.com/MacPaw/XADMaster/archive/v%{version}/unar-%{version}.tar.gz
Source1: https://github.com/MacPaw/universal-detector/archive/%{detectorver}/universal-detector-%{detectorver}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-devel
BuildRequires: libgcc
BuildRequires: libgnustep-base-devel
BuildRequires: libicu-devel
BuildRequires: libobjc-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwavpack-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libgnustep-base-devel >= 0:1.29.0-1mamba
%description
The command-line utilities lsar and unar are capable of listing and extracting files respectively in several formats including RARv5, RAR support includes encryption and multiple volumes, unar can serve as a free and open source replacement of unrar.
%debug_package
%prep
%setup -q -c -a1
mv universal-detector-%{detectorver} UniversalDetector
# recursively remove executable bit from every file, skipping directories
find . -type f -print0 | xargs -0 chmod -x
%build
%define _lto_cflags %{nil}
export OBJCFLAGS="%{optflags}"
make -C XADMaster-%{version} -f Makefile.linux
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd XADMaster-%{version}
install -d %{buildroot}%{_bindir}
install -pm755 unar lsar %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -pm644 Extra/*.1 %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_datadir}/bash-completion/completions
install -pm644 Extra/lsar.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/lsar
install -pm644 Extra/unar.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/unar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/lsar
%{_bindir}/unar
%{_datadir}/bash-completion/completions/lsar
%{_datadir}/bash-completion/completions/unar
%{_mandir}/man1/lsar.1*
%{_mandir}/man1/unar.1*
%doc XADMaster-%{version}/libxad/lgpl.txt
%changelog
* Sat Oct 14 2023 Automatic Build System <autodist@mambasoft.it> 1.10.8-1mamba
- automatic version update by autodist
* Sat Jan 14 2023 Sdk Build System <sdk@mambasoft.it> 1.10.7-2mamba
- rebuilt by autoport with build requirements: libgnustep-base-devel>=0:1.29.0-1mamba
* Mon Nov 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.7-1mamba
- update to 1.10.7
* Thu Dec 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-1mamba
- package created using the webbuild interface