summaryrefslogtreecommitdiff
path: root/autoconf-archive.spec
blob: c11155e90b97c637b1a0a9bcf5ceb4fdc5a5a186 (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
Summary:	The Autoconf Macro Archive
Summary(pl.UTF-8):	Archiwum makr Autoconfa
Name:		autoconf-archive
Version:	2021.02.19
Release:	1
License:	GPL v3+ with exceptions
Group:		Development/Tools
Source0:	http://ftp.gnu.org/gnu/autoconf-archive/%{name}-%{version}.tar.xz
# Source0-md5:	4f06adfbe3f1a2dada06066cf460e5ab
Patch0:		%{name}-info.patch
URL:		http://www.gnu.org/software/autoconf-archive/
BuildRequires:	tar >= 1:1.22
BuildRequires:	texinfo
BuildRequires:	xz
# max of AC_PREREQ from ax_*.m4
Requires:	autoconf >= 2.69
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
The GNU Autoconf Archive is a collection of more than 500 macros for
GNU Autoconf that have been contributed as free software by friendly
supporters of the cause from all over the Internet.

%description -l pl.UTF-8
GNU Autoconf Archive to zbiór ponad 500 makr dla GNU Autoconfa,
przekazanych jako oprogramowanie wolnodostępne przez przyjaznych
przypadkowych wspierających z całego Internetu.

%prep
%setup -q
%patch0 -p1

%build
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	INSTALL="install -p" \
	DESTDIR=$RPM_BUILD_ROOT

# packaged as %doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/autoconf-archive

# remove dir file which will be generated by /sbin/install-info
rm -f $RPM_BUILD_ROOT%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}

%postun	-p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}

%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING.EXCEPTION ChangeLog NEWS README TODO
%{_aclocaldir}/ax_*.m4
%{_infodir}/autoconf-archive.info*