source: rtems/scripts/autotools/automake-rtems.spec @ 64cc4bb5

4.104.114.84.95
Last change on this file since 64cc4bb5 was 64cc4bb5, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 15, 2001 at 5:49:35 PM

2001-10-15 Ralf Corsepius <corsepiu@…>

  • mkbinutilsspec.in: Guard sed-pattern against autoconf.
  • mkgccnewlibspec.in: Guard sed-pattern against autoconf, remove Target_alias.
  • mkgdbspec.in: Guard sed-pattern against autoconf.
  • mkbspspec.in: Guard sed-pattern against autoconf.
  • configure.ac: Rework check for RPM_SPECSdir.
  • autotools/automake-rtems.spec: Update to automake-1.5.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1#
2# spec file for automake
3#
4
5%define rpmvers 1.5
6%define srcvers 1.5
7
8%define _defaultbuildroot       /var/tmp/%{name}-%{srcvers}-root
9%define _prefix                 /opt/rtems
10%define _name                   automake
11
12%if "%{_prefix}" != "/usr"
13%define name                    %{_name}-rtems
14%define requirements            autoconf-rtems
15%define _infodir                %{_prefix}/info
16%define _mandir                 %{_prefix}/man
17%else
18%define name                    %{_name}
19%define requirements            autoconf
20%endif
21
22Vendor:       http://www.rtems.com
23Name:         %{name}
24Packager:     Ralf Corsepius <ralf@links2linux.de>
25
26Copyright:    GPL
27Group:        rtems
28Provides:     automake
29Autoreqprov:  on
30Version:      %{rpmvers}
31Release:      0
32Summary:      Tool for automatically generating GNU style Makefile.in's
33BuildArch:    noarch
34BuildRoot:    %{_defaultbuildroot}
35BuildPreReq:  autoconf perl help2man
36Requires:     %{requirements}
37PreReq:       /sbin/install-info
38
39Source: automake-%{srcvers}.tar.bz2
40
41%description
42Automake is a tool for automatically generating "Makefile.in"s from
43files called "Makefile.am". "Makefile.am" is basically a series of
44"make" macro definitions (with rules being thrown in occasionally).
45The generated "Makefile.in"s are compatible to the GNU Makefile
46standards.
47
48%prep
49%setup -q -n %{_name}-%{srcvers}
50
51%build
52./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
53make
54
55%install
56%makeinstall
57
58install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
59for i in $RPM_BUILD_ROOT%{_bindir}/*; do
60  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake \
61  help2man $i > `basename $i`.1
62  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
63done
64
65gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
66gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
67
68%clean
69[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
70   rm -rf "$RPM_BUILD_ROOT"
71
72%post 
73install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz
74
75%preun
76if [ $1 = 0 ]; then
77  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
78fi
79
80%files
81%doc AUTHORS COPYING ChangeLog NEWS README THANKS
82%{_bindir}/aclocal
83%{_bindir}/automake
84%doc %{_infodir}/automake.info*.gz
85%doc %{_mandir}/man?/*
86%{_datadir}/aclocal
87%{_datadir}/automake
Note: See TracBrowser for help on using the repository browser.