From 458b7d859ff92bc025af855dc7b5c4cc4bba3915 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jul 29 2016 06:53:53 +0000 Subject: spec: cleanup, packaging guidelines Version: 2.69-23 --- diff --git a/autoconf.spec b/autoconf.spec index 2b6ada6..f679e5d 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -3,7 +3,6 @@ Name: autoconf Version: 2.69 Release: 23%{?dist} License: GPLv2+ and GFDL -Group: Development/Tools Source0: http://ftpmirror.gnu.org/autoconf/autoconf-%{version}.tar.xz Source1: config.site Source2: autoconf-init.el @@ -13,7 +12,6 @@ Patch1: autoconf-2.69-perl-5.22-autoscan.patch BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # run "make check" by default %bcond_without check @@ -66,6 +64,7 @@ may be configuring software with an Autoconf-generated script; Autoconf is only required for the generation of the scripts, not their use. + %prep %autosetup -p1 @@ -73,6 +72,7 @@ their use. %configure --with-lispdir=%{_emacs_sitelispdir}/autoconf make %{?_smp_mflags} + %check %if %{with check} # make check # TESTSUITEFLAGS='1-198 200-' # will disable nr. 199. @@ -80,6 +80,7 @@ make %{?_smp_mflags} make check %{?_smp_mflags} %endif + %install make install %{?_smp_mflags} DESTDIR=%{buildroot} mkdir -p %{buildroot}/share @@ -89,6 +90,7 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_datadir} mkdir -p %{buildroot}%{_emacs_sitestartdir} install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} + %post /sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || : @@ -97,7 +99,9 @@ if [ "$1" = 0 ]; then /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || : fi + %files +%license COPYING* %{_bindir}/* %{_infodir}/autoconf.info* # don't include standards.info, because it comes from binutils... @@ -108,11 +112,13 @@ fi %config %{_datadir}/config.site %{_datadir}/emacs/site-lisp/* %{_mandir}/man1/* -%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO +%doc AUTHORS ChangeLog NEWS README THANKS TODO + %changelog * Fri Jul 29 2016 Pavel Raiskup - 2.69-23 - re-enable erlang tests, after rhbz#1240487 fix +- packaging guidelines fixes * Wed Feb 03 2016 Fedora Release Engineering - 2.69-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild