From ca1e3f8e6878b5bffbc28972810dfd3c89bc13dd Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Tue, 23 Jul 2019 23:35:31 +0200 Subject: [PATCH] Spec file cleanup --- arj.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arj.spec b/arj.spec index 910036c..1ed4c10 100644 --- a/arj.spec +++ b/arj.spec @@ -19,10 +19,10 @@ Patch7: arj-3.10.22-missing-protos.patch Patch8: arj-3.10.22-custom-printf.patch # Filed into upstream bugtracker as https://sourceforge.net/tracker/?func=detail&aid=2853421&group_id=49820&atid=457566 Patch9: arj-3.10.22-quotes.patch -Patch10: arj-3.10.22-security-afl.patch -Patch11: arj-3.10.22-security-traversal-dir.patch -Patch12: arj-3.10.22-security-traversal-symlink.patch -BuildRequires: gcc +Patch10: arj-3.10.22-security-afl.patch +Patch11: arj-3.10.22-security-traversal-dir.patch +Patch12: arj-3.10.22-security-traversal-symlink.patch +BuildRequires: gcc BuildRequires: autoconf Provides: unarj = %{version}-%{release} Obsoletes: unarj < 3 @@ -69,11 +69,10 @@ pushd gnu popd # Disable binary strippings -make %{?_smp_mflags} ADD_LDFLAGS="" +%make_build ADD_LDFLAGS="" %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install +%make_install install -D -p -m 644 resource/rearj.cfg.example $RPM_BUILD_ROOT%{_sysconfdir}/rearj.cfg install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/unarj @@ -84,7 +83,6 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/arj-register rm -f $RPM_BUILD_ROOT%{_mandir}/man1/arj-register.1* %files -%{!?_licensedir:%global license %%doc} %license doc/COPYING %doc ChangeLog* doc/rev_hist.txt %config(noreplace) %{_sysconfdir}/rearj.cfg