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

4.104.114.84.95
Last change on this file since 9ec745dc was 9ec745dc, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/26/05 at 13:48:59

2005-04-26 Ralf Corsepius <ralf.corsepius@…>

  • autotools/automake-rtems.spec.in, autotools/autoconf-rtems.spec.in: Remove rpm anachronisms.
  • Property mode set to 100644
File size: 2.5 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 _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.59
16%define _infodir                %{_prefix}/info
17%define _mandir                 %{_prefix}/man
18%else
19%define name                    %{_name}
20%define requirements            autoconf >= 2.59
21%endif
22
23Vendor:       http://www.rtems.com
24Name:         %{name}
25Packager:     Ralf Corsepius <ralf_corsepius@rtems.org>
26URL:          http://sources.redhat.com/automake
27
28License:      GPL
29Group:        @rpmgroup@
30
31Version:      %{rpmvers}
32Release:      1
33Summary:      Tool for automatically generating GNU style Makefile.in's
34BuildArch:    noarch
35BuildRoot:    %{_defaultbuildroot}
36BuildRequires:  %{requirements} perl help2man
37Requires:     %{requirements}
38Requires(post):         /sbin/install-info
39Requires(preun):        /sbin/install-info
40
41Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
42Patch0: automake-1.8.1-rtems-20040112-1.diff
43
44%description
45Automake is a tool for automatically generating "Makefile.in"s from
46files called "Makefile.am". "Makefile.am" is basically a series of
47"make" macro definitions (with rules being thrown in occasionally).
48The generated "Makefile.in"s are compatible to the GNU Makefile
49standards.
50
51%prep
52%setup -q -n %{_name}-%{srcvers}
53%patch0 -p0
54
55%build
56PATH=%{_prefix}/bin:$PATH
57./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
58  --bindir=%{_bindir} --datadir=%{_datadir}
59make
60
61%install
62rm -rf "$RPM_BUILD_ROOT"
63make DESTDIR=${RPM_BUILD_ROOT} install
64
65install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
66for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
67  $RPM_BUILD_ROOT%{_bindir}/automake ;
68do
69  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
70  help2man $i > `basename $i`.1
71  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
72done
73
74gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
75gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
76
77%clean
78   rm -rf "$RPM_BUILD_ROOT"
79
80%post
81install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
82
83%preun
84if [ $1 = 0 ]; then
85  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
86fi
87
88%files
89%defattr(-,root,root)
90%doc AUTHORS COPYING ChangeLog NEWS README THANKS
91%{_bindir}/aclocal*
92%{_bindir}/automake*
93%{_infodir}/automake.info*.gz
94%{_mandir}/man?/*
95%{_datadir}/aclocal-%{amvers}
96%{_datadir}/automake-%{amvers}
97
Note: See TracBrowser for help on using the repository browser.