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

4.104.114.84.95
Last change on this file since a1f0115d was a1f0115d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 12, 2004 at 6:03:17 AM

2004-01-12 Ralf Corsepius <corsepiu@…>

  • scripts/automake.spec.in: 1.8.1. Add Patch0 automake-1.8.1-rtems-20040112-1.diff. Add defattr, URL:-tag.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.8.1
6%define srcvers 1.8.1
7%define amvers  1.8
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 <corsepiu@faw.uni-ulm.de>
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}
57make
58
59%install
60%makeinstall
61
62install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
63for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
64  $RPM_BUILD_ROOT%{_bindir}/automake ;
65do
66  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
67  help2man $i > `basename $i`.1
68  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
69done
70
71gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
72gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
73
74%clean
75[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
76   rm -rf "$RPM_BUILD_ROOT"
77
78%post
79install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
80
81%preun
82if [ $1 = 0 ]; then
83  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
84fi
85
86%files
87%defattr(-,root,root)
88%doc AUTHORS COPYING ChangeLog NEWS README THANKS
89%{_bindir}/aclocal*
90%{_bindir}/automake*
91%doc %{_infodir}/automake.info*.gz
92%doc %{_mandir}/man?/*
93%{_datadir}/aclocal-%{amvers}
94%{_datadir}/automake-%{amvers}
95
Note: See TracBrowser for help on using the repository browser.