1 | # |
---|
2 | # spec file for autoconf |
---|
3 | # |
---|
4 | |
---|
5 | %define rpmvers 2.59 |
---|
6 | %define srcvers 2.59 |
---|
7 | |
---|
8 | %define _defaultbuildroot %{_tmppath}/%{name}-%{srcvers}-root |
---|
9 | %define _prefix @prefix@ |
---|
10 | %define _name autoconf |
---|
11 | |
---|
12 | %if "%{_prefix}" != "/usr" |
---|
13 | %define name @rpmprefix@%{_name}-rtems |
---|
14 | %define _infodir %{_prefix}/info |
---|
15 | %define _mandir %{_prefix}/man |
---|
16 | %else |
---|
17 | %define name %{_name} |
---|
18 | %endif |
---|
19 | |
---|
20 | |
---|
21 | Vendor: http://www.rtems.com |
---|
22 | Name: %{name} |
---|
23 | Packager: Ralf Corsepius <corsepiu@faw.uni-ulm.de> |
---|
24 | |
---|
25 | Copyright: GPL |
---|
26 | URL: http://www.gnu.org/software/autoconf |
---|
27 | Group: @rpmgroup@ |
---|
28 | Version: %{rpmvers} |
---|
29 | Release: 3 |
---|
30 | Summary: Tool for automatically generating GNU style Makefile.in's |
---|
31 | BuildArch: noarch |
---|
32 | BuildRoot: %{_defaultbuildroot} |
---|
33 | BuildRequires: autoconf perl m4 gawk emacs |
---|
34 | Requires: m4 gawk |
---|
35 | PreReq: /sbin/install-info |
---|
36 | |
---|
37 | Source: autoconf-%{srcvers}.tar.bz2 |
---|
38 | Patch0: autoconf-2.59-quoting-20040817-1.diff |
---|
39 | |
---|
40 | %description |
---|
41 | GNU's Autoconf is a tool for configuring source code and Makefiles. |
---|
42 | Using Autoconf, programmers can create portable and configurable |
---|
43 | packages, since the person building the package is allowed to |
---|
44 | specify various configuration options. |
---|
45 | You should install Autoconf if you are developing software and you'd |
---|
46 | like to use it to create shell scripts which will configure your |
---|
47 | source code packages. |
---|
48 | Note that the Autoconf package is not required for the end user who |
---|
49 | may be configuring software with an Autoconf-generated script; |
---|
50 | Autoconf is only required for the generation of the scripts, not |
---|
51 | their use. |
---|
52 | |
---|
53 | %prep |
---|
54 | %setup -q -n %{_name}-%{srcvers} |
---|
55 | %patch -p0 -P 0 |
---|
56 | |
---|
57 | %build |
---|
58 | ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ |
---|
59 | --bindir=%{_bindir} --datadir=%{_datadir} |
---|
60 | make |
---|
61 | |
---|
62 | %install |
---|
63 | rm -rf "${RPM_BUILD_ROOT}" |
---|
64 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
65 | |
---|
66 | # Create this directory to prevent the corresponding line |
---|
67 | # in %%files below to fail |
---|
68 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp |
---|
69 | |
---|
70 | gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null |
---|
71 | # RTEMS's standards.info comes from binutils |
---|
72 | rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* |
---|
73 | # gzip -9qf $RPM_BUILD_ROOT%{_infodir}/standards.info* 2>/dev/null |
---|
74 | gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null |
---|
75 | |
---|
76 | %clean |
---|
77 | rm -rf "$RPM_BUILD_ROOT" |
---|
78 | |
---|
79 | %post |
---|
80 | install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz |
---|
81 | #install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz |
---|
82 | |
---|
83 | %preun |
---|
84 | if [ $1 = 0 ]; then |
---|
85 | install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz |
---|
86 | # install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz |
---|
87 | fi |
---|
88 | |
---|
89 | %files |
---|
90 | %defattr(-,root,root) |
---|
91 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS |
---|
92 | %{_bindir}/* |
---|
93 | %{_infodir}/autoconf.info* |
---|
94 | #%{_infodir}/standards.info* |
---|
95 | %{_mandir}/man?/* |
---|
96 | %{_datadir}/autoconf |
---|
97 | %exclude %{_datadir}/emacs/site-lisp |
---|