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

4.104.114.84.9
Last change on this file since 6d4210c1 was 6d4210c1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 27, 2002 at 2:30:21 AM

2002-06-27 Ralf Corsepius <corsepiu@…>

  • autotools/automake-rtems.spec.in: Update to automake-1.6.2.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.6.2
6%define srcvers 1.6.2
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
29Provides:     automake
30Autoreqprov:  on
31Version:      %{rpmvers}
32Release:      0
33Summary:      Tool for automatically generating GNU style Makefile.in's
34BuildArch:    noarch
35BuildRoot:    %{_defaultbuildroot}
36BuildPreReq:  %{requirements} perl help2man
37Requires:     %{requirements}
38PreReq:       /sbin/install-info
39
40Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
41
42%description
43Automake is a tool for automatically generating "Makefile.in"s from
44files called "Makefile.am". "Makefile.am" is basically a series of
45"make" macro definitions (with rules being thrown in occasionally).
46The generated "Makefile.in"s are compatible to the GNU Makefile
47standards.
48
49%prep
50%setup -q -n %{_name}-%{srcvers}
51
52%build
53./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
54make
55
56%install
57%makeinstall
58
59install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
60for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
61  $RPM_BUILD_ROOT%{_bindir}/automake ;
62do
63  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
64  help2man $i > `basename $i`.1
65  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
66done
67
68gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
69gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
70
71%clean
72[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
73   rm -rf "$RPM_BUILD_ROOT"
74
75%post
76install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
77
78%preun
79if [ $1 = 0 ]; then
80  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
81fi
82
83%files
84%doc AUTHORS COPYING ChangeLog NEWS README THANKS
85%{_bindir}/aclocal*
86%{_bindir}/automake*
87%doc %{_infodir}/automake.info*.gz
88%doc %{_mandir}/man?/*
89%{_datadir}/aclocal-%{amvers}
90%{_datadir}/automake-%{amvers}
91
Note: See TracBrowser for help on using the repository browser.