source: rtems/scripts/autotools/autoconf.add @ a297f20d

4.104.114.84.95
Last change on this file since a297f20d was f6d780f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/02/05 at 07:27:29

New.

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