source: rtems/scripts/autotools/automake-rtems.spec.in @ d21091b

4.104.114.84.95
Last change on this file since d21091b was d21091b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 25, 2002 at 2:52:25 PM

2002-10-25 Joel Sherrill <joel@…>

  • autotools/autoconf-rtems.spec.in: New. Remove Provides: autoconf (Conflicts with RH-8.0).
  • autotools/autoconf-rtems.spec: Remove.
  • autotools/automake-rtems.spec.in: Remove Provides: automake (Conflicts with RH-8.0).
  • gcc3newlib/Makefile.am: Remove references to mkgcc3newlibspec.
  • Makefile.am: Ditto.
  • configure.ac: Add autotools/autoconf-rtems.spec.in.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.6.3
6%define srcvers 1.6.3
7%define amvers  1.6
8
9%define _defaultbuildroot       %{_tmppath}/%{name}-%{srcvers}-root
10%define _prefix                 @prefix@
11%define _name                   automake
12
13%if "%{_prefix}" != "/usr"
14%define name                    %{_name}-rtems
15%define requirements            autoconf-rtems >= 2.52
16%define _infodir                %{_prefix}/info
17%define _mandir                 %{_prefix}/man
18%else
19%define name                    %{_name}
20%define requirements            autoconf >= 2.52
21%endif
22
23Vendor:       http://www.rtems.com
24Name:         %{name}
25Packager:     Ralf Corsepius <ralf@links2linux.de>
26
27Copyright:    GPL
28Group:        rtems
29Autoreqprov:  on
30Version:      %{rpmvers}
31Release:      1
32Summary:      Tool for automatically generating GNU style Makefile.in's
33BuildArch:    noarch
34BuildRoot:    %{_defaultbuildroot}
35BuildPreReq:  %{requirements} perl help2man
36Requires:     %{requirements}
37PreReq:       /sbin/install-info
38
39Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
40
41%description
42Automake is a tool for automatically generating "Makefile.in"s from
43files called "Makefile.am". "Makefile.am" is basically a series of
44"make" macro definitions (with rules being thrown in occasionally).
45The generated "Makefile.in"s are compatible to the GNU Makefile
46standards.
47
48%prep
49%setup -q -n %{_name}-%{srcvers}
50
51%build
52./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
53make
54
55%install
56%makeinstall
57
58install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
59for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
60  $RPM_BUILD_ROOT%{_bindir}/automake ;
61do
62  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
63  help2man $i > `basename $i`.1
64  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
65done
66
67gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
68gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
69
70%clean
71[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
72   rm -rf "$RPM_BUILD_ROOT"
73
74%post
75install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
76
77%preun
78if [ $1 = 0 ]; then
79  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
80fi
81
82%files
83%doc AUTHORS COPYING ChangeLog NEWS README THANKS
84%{_bindir}/aclocal*
85%{_bindir}/automake*
86%doc %{_infodir}/automake.info*.gz
87%doc %{_mandir}/man?/*
88%{_datadir}/aclocal-%{amvers}
89%{_datadir}/automake-%{amvers}
90
Note: See TracBrowser for help on using the repository browser.