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

4.104.114.84.95
Last change on this file since 36712aa9 was 36712aa9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/29/04 at 09:50:23

2004-07-29 Ralf Corsepius <ralf_corsepius@…>

  • autotools/automake.spec.in: automake-1.9.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.9
6%define srcvers 1.9
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
28Copyright:    GPL
29Group:        @rpmgroup@
30Autoreqprov:  on
31Version:      %{rpmvers}
32Release:      1
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
41Patch0: automake-1.8.1-rtems-20040112-1.diff
42
43%description
44Automake is a tool for automatically generating "Makefile.in"s from
45files called "Makefile.am". "Makefile.am" is basically a series of
46"make" macro definitions (with rules being thrown in occasionally).
47The generated "Makefile.in"s are compatible to the GNU Makefile
48standards.
49
50%prep
51%setup -q -n %{_name}-%{srcvers}
52%patch0 -p0
53
54%build
55PATH=%{_prefix}/bin:$PATH
56./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
57  --bindir=%{_bindir} --datadir=%{_datadir}
58make
59
60%install
61make DESTDIR=${RPM_BUILD_ROOT} install
62
63install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
64for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
65  $RPM_BUILD_ROOT%{_bindir}/automake ;
66do
67  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
68  help2man $i > `basename $i`.1
69  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
70done
71
72gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
73gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
74
75%clean
76[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
77   rm -rf "$RPM_BUILD_ROOT"
78
79%post
80install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
81
82%preun
83if [ $1 = 0 ]; then
84  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
85fi
86
87%files
88%defattr(-,root,root)
89%doc AUTHORS COPYING ChangeLog NEWS README THANKS
90%{_bindir}/aclocal*
91%{_bindir}/automake*
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.