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