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

4.104.114.84.95
Last change on this file since 869ffd9b was 869ffd9b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 7, 2003 at 8:48:42 AM

2003-10-07 Ralf Corsepius <corsepiu@…>

  • autotools/automake-rtems.spec.in: Automake-1.7.8.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.7.8
6%define srcvers 1.7.8
7%define amvers  1.7
8
9%define _defaultbuildroot       %{_tmppath}/%{name}-%{srcvers}-root
10%define _prefix                 @prefix@
11%define _name                   automake
12
13%if "%{_prefix}" != "/usr"
14%define name                    @rpmprefix@%{_name}-rtems
15%define requirements            @rpmprefix@autoconf-rtems >= 2.54
16%define _infodir                %{_prefix}/info
17%define _mandir                 %{_prefix}/man
18%else
19%define name                    %{_name}
20%define requirements            autoconf >= 2.54
21%endif
22
23Vendor:       http://www.rtems.com
24Name:         %{name}
25Packager:     Ralf Corsepius <corsepiu@faw.uni-ulm.de>
26
27Copyright:    GPL
28Group:        @rpmgroup@
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
52PATH=%{_prefix}/bin:$PATH
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.