| 1 |
Summary: Generate configuration scripts compatibly with autoconf 2.52 |
| 2 |
%define AppProgram autoconf |
| 3 |
%define AppVersion 2.52 |
| 4 |
%define AppRelease 20260412 |
| 5 |
%define AppSuffix -252 |
| 6 |
# $Id: ac252.spec,v 1.57 2026/04/12 18:16:28 tom Exp $ |
| 7 |
Name: ac252 |
| 8 |
Version: %{AppVersion} |
| 9 |
Release: %{AppRelease} |
| 10 |
License: GPLv2 |
| 11 |
Group: Applications/Development |
| 12 |
URL: http://invisible-island.net/%{AppProgram} |
| 13 |
Source0: http://invisible-island.net/archives/%{AppProgram}/%{AppProgram}-%{AppVersion}-%{AppRelease}.tgz |
| 14 |
|
| 15 |
BuildArch: noarch |
| 16 |
#BuildRequires: m4 |
| 17 |
Requires: m4 |
| 18 |
|
| 19 |
%description |
| 20 |
This is a stable version of autoconf, used by all of my applications. |
| 21 |
See http://invisible-island.net/autoconf/ |
| 22 |
|
| 23 |
%define MyName %{AppProgram}%{AppSuffix} |
| 24 |
|
| 25 |
%define find_tool tool=install-info; for dir in /sbin /usr/sbin; do if test -f $dir/$tool; then tool=$dir/$tool;break;fi;done |
| 26 |
|
| 27 |
%prep |
| 28 |
|
| 29 |
%setup -q -n %{AppProgram}-%{AppVersion}-%{AppRelease} |
| 30 |
|
| 31 |
%build |
| 32 |
|
| 33 |
INSTALL_PROGRAM='${INSTALL}' \ |
| 34 |
./configure \ |
| 35 |
--program-suffix=%{AppSuffix} \ |
| 36 |
--target %{_target_platform} \ |
| 37 |
--prefix=%{_prefix} \ |
| 38 |
--bindir=%{_bindir} \ |
| 39 |
--libdir=%{_libdir} \ |
| 40 |
--mandir=%{_mandir} \ |
| 41 |
--datadir=%{_datadir}/%{MyName} \ |
| 42 |
--infodir=%{_infodir} |
| 43 |
|
| 44 |
make |
| 45 |
|
| 46 |
%install |
| 47 |
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
| 48 |
|
| 49 |
make install DESTDIR=$RPM_BUILD_ROOT |
| 50 |
rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
| 51 |
rm -f $RPM_BUILD_ROOT%{_infodir}/standards* |
| 52 |
|
| 53 |
%post |
| 54 |
%{find_tool} |
| 55 |
$tool \ |
| 56 |
%{_infodir}/%{MyName}.info \ |
| 57 |
%{_infodir}/dir || : |
| 58 |
|
| 59 |
%preun |
| 60 |
if [ $1 = 0 ] ; then |
| 61 |
%{find_tool} |
| 62 |
$tool \ |
| 63 |
--delete \ |
| 64 |
%{_infodir}/%{MyName}.info \ |
| 65 |
%{_infodir}/dir || : |
| 66 |
fi |
| 67 |
|
| 68 |
%files |
| 69 |
%defattr(-,root,root) |
| 70 |
%{_bindir}/*%{AppSuffix} |
| 71 |
%{_mandir}/man1/*%{AppSuffix}* |
| 72 |
%{_datadir}/%{MyName}* |
| 73 |
%{_infodir}/*%{AppSuffix}* |
| 74 |
|
| 75 |
%changelog |
| 76 |
# each patch should add its ChangeLog entries here |
| 77 |
|
| 78 |
* Sun Apr 12 2026 Thomas E. Dickey |
| 79 |
- testing autoconf 2.52-20260412 |
| 80 |
|
| 81 |
* Sun Sep 03 2023 Thomas E. Dickey |
| 82 |
- update http-url, rpmlint'd |
| 83 |
|
| 84 |
* Sun Aug 19 2018 Thomas E. Dickey |
| 85 |
- update ftp-url |
| 86 |
|
| 87 |
* Fri Oct 01 2010 Thomas E. Dickey |
| 88 |
- adapt rules for installing info file from |
| 89 |
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets |
| 90 |
|
| 91 |
* Tue Sep 28 2010 Thomas E. Dickey |
| 92 |
- initial version |