summaryrefslogtreecommitdiffstats
path: root/scripts/autotools/automake-rtems.spec.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-03-20 14:23:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-03-20 14:23:51 +0000
commitbe499b0d76e077c88b7cf5c9fb16818f576641cb (patch)
treecb7c3b90b6f93e2e5ad35527077ba6b12f05417c /scripts/autotools/automake-rtems.spec.in
parent2002-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-be499b0d76e077c88b7cf5c9fb16818f576641cb.tar.bz2
2002-03-06 Ralf Corsepius <corsepiu@faw-uni-ulm.de>
* PR151 * autotools/automake-rtems.spec.in: New. * autotools/automake-rtems.spec: Removed. * configure.ac: Reflect changes above.
Diffstat (limited to 'scripts/autotools/automake-rtems.spec.in')
-rw-r--r--scripts/autotools/automake-rtems.spec.in91
1 files changed, 91 insertions, 0 deletions
diff --git a/scripts/autotools/automake-rtems.spec.in b/scripts/autotools/automake-rtems.spec.in
new file mode 100644
index 0000000000..a2b2ac9363
--- /dev/null
+++ b/scripts/autotools/automake-rtems.spec.in
@@ -0,0 +1,91 @@
+#
+# spec file for automake
+#
+
+%define rpmvers 1.6
+%define srcvers 1.6
+%define amvers 1.6
+
+%define _defaultbuildroot %{_tmppath}/%{name}-%{srcvers}-root
+%define _prefix @prefix@
+%define _name automake
+
+%if "%{_prefix}" != "/usr"
+%define name %{_name}-rtems
+%define requirements autoconf-rtems >= 2.52
+%define _infodir %{_prefix}/info
+%define _mandir %{_prefix}/man
+%else
+%define name %{_name}
+%define requirements autoconf >= 2.52
+%endif
+
+Vendor: http://www.rtems.com
+Name: %{name}
+Packager: Ralf Corsepius <ralf@links2linux.de>
+
+Copyright: GPL
+Group: rtems
+Provides: automake
+Autoreqprov: on
+Version: %{rpmvers}
+Release: 0
+Summary: Tool for automatically generating GNU style Makefile.in's
+BuildArch: noarch
+BuildRoot: %{_defaultbuildroot}
+BuildPreReq: %{requirements} perl help2man
+Requires: %{requirements}
+PreReq: /sbin/install-info
+
+Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.gz
+
+%description
+Automake is a tool for automatically generating "Makefile.in"s from
+files called "Makefile.am". "Makefile.am" is basically a series of
+"make" macro definitions (with rules being thrown in occasionally).
+The generated "Makefile.in"s are compatible to the GNU Makefile
+standards.
+
+%prep
+%setup -q -n %{_name}-%{srcvers}
+
+%build
+./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
+make
+
+%install
+%makeinstall
+
+install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
+for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
+ $RPM_BUILD_ROOT%{_bindir}/automake ;
+do
+ perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
+ help2man $i > `basename $i`.1
+ install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
+done
+
+gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
+gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
+
+%clean
+[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
+ rm -rf "$RPM_BUILD_ROOT"
+
+%post
+install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz
+
+%preun
+if [ $1 = 0 ]; then
+ install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
+fi
+
+%files
+%doc AUTHORS COPYING ChangeLog NEWS README THANKS
+%{_bindir}/aclocal*
+%{_bindir}/automake*
+%doc %{_infodir}/automake.info*.gz
+%doc %{_mandir}/man?/*
+%{_datadir}/aclocal-%{amvers}
+%{_datadir}/automake-%{amvers}
+