source: rtems/scripts/autotools/automake.add @ a297f20d

4.104.114.84.95
Last change on this file since a297f20d was f6d780f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/02/05 at 07:27:29

New.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.9.5
6%define srcvers 1.9.5
7%define amvers  1.9
8
9%define _name   automake
10
11%if "%{_prefix}" != "/usr"
12%define name                    @rpmprefix@%{_name}-rtems
13%define requirements            @rpmprefix@autoconf-rtems >= 2.59
14%else
15%define name                    %{_name}
16%define requirements            autoconf >= 2.59
17%endif
18
19Name:         %{name}
20Packager:     Ralf Corsepius <ralf_corsepius@rtems.org>
21URL:          http://sources.redhat.com/automake
22
23License:      GPL
24Group:        @rpmgroup@
25
26Version:      %{rpmvers}
27Release:      2
28Summary:      Tool for automatically generating GNU style Makefile.in's
29BuildArch:    noarch
30BuildRequires:  %{requirements} perl help2man
31Requires:     %{requirements}
32Requires(post):         /sbin/install-info
33Requires(preun):        /sbin/install-info
34
35Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
36Patch0: automake-1.8.1-rtems-20040112-1.diff
37
38%description
39Automake is a tool for automatically generating "Makefile.in"s from
40files called "Makefile.am". "Makefile.am" is basically a series of
41"make" macro definitions (with rules being thrown in occasionally).
42The generated "Makefile.in"s are compatible to the GNU Makefile
43standards.
44
45%prep
46%setup -q -n %{_name}-%{srcvers}
47%patch0 -p0
48
49%build
50PATH=%{_prefix}/bin:$PATH
51./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
52  --bindir=%{_bindir} --datadir=%{_datadir}
53make
54
55%install
56rm -rf "$RPM_BUILD_ROOT"
57make DESTDIR=${RPM_BUILD_ROOT} install
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
71rm -f $RPM_BUILD_ROOT%{_infodir}/dir
72touch $RPM_BUILD_ROOT%{_infodir}/dir
73
74%clean
75   rm -rf "$RPM_BUILD_ROOT"
76
77%post
78install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
79
80%preun
81if [ $1 -eq 0 ]; then
82  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
83fi
84
85%files
86%defattr(-,root,root)
87%doc AUTHORS COPYING ChangeLog NEWS README THANKS
88%{_bindir}/aclocal*
89%{_bindir}/automake*
90%dir %{_infodir}
91%ghost %{_infodir}/dir
92%{_infodir}/automake.info*.gz
93%{_mandir}/man?/*
94%{_datadir}/aclocal-%{amvers}
95%{_datadir}/automake-%{amvers}
96
Note: See TracBrowser for help on using the repository browser.