From d19bf4394799cee196b13f804fd99837407975e5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:48:13 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.10.1-1mamba;Thu Dec 31 2020] --- README.md | 2 ++ unar.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 unar.spec diff --git a/README.md b/README.md index 653421c..5b94d9f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # unar +An Objective-C application for uncompressing archive files. + diff --git a/unar.spec b/unar.spec new file mode 100644 index 0000000..b88d0f6 --- /dev/null +++ b/unar.spec @@ -0,0 +1,66 @@ +Name: unar +Version: 1.10.1 +Release: 1mamba +Summary: An Objective-C application for uncompressing archive files +Group: Applications/Archiving +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/incbee/Unarchiver +Source: https://github.com/incbee/Unarchiver.git/unar-%{version}/Unarchiver-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libbzip2-devel +BuildRequires: libgcc +BuildRequires: libgnustep-base-devel +BuildRequires: libicu-devel +BuildRequires: libobjc-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +An Objective-C application for uncompressing archive files. + +%debug_package + +%prep +%setup -q -n Unarchiver-%{version} +mv The\ Unarchiver/* . +# 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 -f Makefile.linux + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{_bindir} +install -pm755 XADMaster/unar XADMaster/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 License.txt + +%changelog +* Thu Dec 31 2020 Silvan Calarco 1.10.1-1mamba +- package created using the webbuild interface