source: rtems/scripts/autotools/autoconf-rtems.spec.in @ 9ec745dc

4.104.114.84.95
Last change on this file since 9ec745dc was 9ec745dc, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 26, 2005 at 1:48:59 PM

2005-04-26 Ralf Corsepius <ralf.corsepius@…>

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