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

4.104.114.84.95
Last change on this file since db1431e9 was db1431e9, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 29, 2004 at 5:18:12 PM

2004-10-29 Joel Sherrill <joel@…>

  • setup.def: Update gcc to 3.3.5 and binutils to 2.15.
  • autotools/autoconf-rtems.spec.in: Temporarily do not include some of the documentation since it causes the RPM build to fail.
  • binutils/Makefile.am, gcc3newlib/Makefile.am: Add mips64-rtems.
  • Property mode set to 100644
File size: 2.7 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: autoconf perl m4 gawk emacs
34Requires:     m4 gawk
35PreReq:       /sbin/install-info
36
37Source: autoconf-%{srcvers}.tar.bz2
38Patch0: autoconf-2.59-quoting-20040817-1.diff
39
40%description
41GNU's Autoconf is a tool for configuring source code and Makefiles.
42Using Autoconf, programmers can create portable and configurable
43packages, since the person building the package is allowed to
44specify various configuration options.
45You should install Autoconf if you are developing software and you'd
46like to use it to create shell scripts which will configure your
47source code packages.
48Note that the Autoconf package is not required for the end user who
49may be configuring software with an Autoconf-generated script;
50Autoconf is only required for the generation of the scripts, not
51their 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}
60make
61
62%install
63rm -rf "${RPM_BUILD_ROOT}"
64make DESTDIR=${RPM_BUILD_ROOT} install
65
66# Create this directory to prevent the corresponding line
67# in %%files below to fail
68mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
69
70gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null
71# RTEMS's standards.info comes from binutils
72rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
73# gzip -9qf $RPM_BUILD_ROOT%{_infodir}/standards.info* 2>/dev/null
74gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
75
76%clean
77   rm -rf "$RPM_BUILD_ROOT"
78
79%post
80install-info  --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
81#install-info  --info-dir=%{_infodir} %{_infodir}/standards.info.gz
82
83%preun
84if [ $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
87fi   
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
Note: See TracBrowser for help on using the repository browser.