From aacfeda4068d73d109df5075e27413b5b68313ab Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Jul 28 2019 22:44:42 +0000 Subject: spec cleanup and modernization --- diff --git a/coan.spec b/coan.spec index 15923fa..91633ca 100644 --- a/coan.spec +++ b/coan.spec @@ -49,8 +49,7 @@ obsolete. %{name} can largely automate the recurrent task of purging redundant #if-logic from the code. %prep -%setup -q -%patch0 -p0 +%autosetup -p0 for i in AUTHORS LICENSE.BSD README ChangeLog ; do sed -i -e 's/\r$//' $i @@ -58,7 +57,7 @@ done %build %configure -make %{?_smp_mflags} +%make_build %check # some tests are broken in armv7hl and ppc64le - disable until upstream @@ -72,10 +71,11 @@ make check || (for f in test_coan/*.log ; do cat ${f} ; done ; true) %endif %install -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +%make_install %files -%doc AUTHORS LICENSE.BSD README ChangeLog +%doc AUTHORS README ChangeLog +%license LICENSE.BSD %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.*