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
RevLine 
[a792b78]1#
2# spec file for automake
3#
4
[693c35e]5%define rpmvers 1.9.5
6%define srcvers 1.9.5
[36712aa9]7%define amvers  1.9
[a792b78]8
[be499b0d]9%define _defaultbuildroot       %{_tmppath}/%{name}-%{srcvers}-root
10%define _prefix                 @prefix@
[a792b78]11%define _name                   automake
12
13%if "%{_prefix}" != "/usr"
[087a6c86]14%define name                    @rpmprefix@%{_name}-rtems
[eec8e59e]15%define requirements            @rpmprefix@autoconf-rtems >= 2.59
[a792b78]16%define _infodir                %{_prefix}/info
17%define _mandir                 %{_prefix}/man
18%else
19%define name                    %{_name}
[eec8e59e]20%define requirements            autoconf >= 2.59
[a792b78]21%endif
22
23Vendor:       http://www.rtems.com
24Name:         %{name}
[bfa87f30]25Packager:     Ralf Corsepius <ralf_corsepius@rtems.org>
[a1f0115d]26URL:          http://sources.redhat.com/automake
[a792b78]27
[d81e17f]28License:      GPL
[087a6c86]29Group:        @rpmgroup@
[d81e17f]30
[a792b78]31Version:      %{rpmvers}
[e1908de]32Release:      1
[a792b78]33Summary:      Tool for automatically generating GNU style Makefile.in's
34BuildArch:    noarch
35BuildRoot:    %{_defaultbuildroot}
[9ec745dc]36BuildRequires:  %{requirements} perl help2man
[a792b78]37Requires:     %{requirements}
[d81e17f]38Requires(post):         /sbin/install-info
39Requires(preun):        /sbin/install-info
[a792b78]40
[1daced6]41Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
[a1f0115d]42Patch0: automake-1.8.1-rtems-20040112-1.diff
[a792b78]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}
[a1f0115d]53%patch0 -p0
[a792b78]54
55%build
[d08b8eb8]56PATH=%{_prefix}/bin:$PATH
[36712aa9]57./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
58  --bindir=%{_bindir} --datadir=%{_datadir}
[a792b78]59make
60
61%install
[d81e17f]62rm -rf "$RPM_BUILD_ROOT"
[36712aa9]63make DESTDIR=${RPM_BUILD_ROOT} install
[a792b78]64
65install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
[be499b0d]66for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
67  $RPM_BUILD_ROOT%{_bindir}/automake ;
68do
69  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
[a792b78]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
[a1f0115d]89%defattr(-,root,root)
[a792b78]90%doc AUTHORS COPYING ChangeLog NEWS README THANKS
[be499b0d]91%{_bindir}/aclocal*
92%{_bindir}/automake*
[36712aa9]93%{_infodir}/automake.info*.gz
94%{_mandir}/man?/*
[be499b0d]95%{_datadir}/aclocal-%{amvers}
96%{_datadir}/automake-%{amvers}
97
Note: See TracBrowser for help on using the repository browser.