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 01/12/04 at 06:03:17

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
RevLine 
[a792b78]1#
2# spec file for automake
3#
4
[a1f0115d]5%define rpmvers 1.8.1
6%define srcvers 1.8.1
[eec8e59e]7%define amvers  1.8
[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}
[d08b8eb8]25Packager:     Ralf Corsepius <corsepiu@faw.uni-ulm.de>
[a1f0115d]26URL:          http://sources.redhat.com/automake
[a792b78]27
28Copyright:    GPL
[087a6c86]29Group:        @rpmgroup@
[a792b78]30Autoreqprov:  on
31Version:      %{rpmvers}
[d21091b]32Release:      1
[a792b78]33Summary:      Tool for automatically generating GNU style Makefile.in's
34BuildArch:    noarch
35BuildRoot:    %{_defaultbuildroot}
[be499b0d]36BuildPreReq:  %{requirements} perl help2man
[a792b78]37Requires:     %{requirements}
38PreReq:       /sbin/install-info
39
[1daced6]40Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
[a1f0115d]41Patch0: automake-1.8.1-rtems-20040112-1.diff
[a792b78]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}
[a1f0115d]52%patch0 -p0
[a792b78]53
54%build
[d08b8eb8]55PATH=%{_prefix}/bin:$PATH
[a792b78]56./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
57make
58
59%install
60%makeinstall
61
62install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
[be499b0d]63for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
64  $RPM_BUILD_ROOT%{_bindir}/automake ;
65do
66  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
[a792b78]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
[a1f0115d]87%defattr(-,root,root)
[a792b78]88%doc AUTHORS COPYING ChangeLog NEWS README THANKS
[be499b0d]89%{_bindir}/aclocal*
90%{_bindir}/automake*
[a792b78]91%doc %{_infodir}/automake.info*.gz
92%doc %{_mandir}/man?/*
[be499b0d]93%{_datadir}/aclocal-%{amvers}
94%{_datadir}/automake-%{amvers}
95
Note: See TracBrowser for help on using the repository browser.