summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-10 16:41:08 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-10 16:41:08 +0000
commitbeabcaf9363fc7cf9d2ed98cb994e5f8ddb5b25a (patch)
tree35fb5a3e8865da7440be50569ee080dc145b3c03 /scripts
parent2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-beabcaf9363fc7cf9d2ed98cb994e5f8ddb5b25a.tar.bz2
2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove rtemsdoc/mkspec. Add RTEMS_RPM_RELEASE. * rtemsdoc/.cvsignore: Reformat. * Makefile.am: Reformat. Add RTEMS_RPM_RELEASE support to rtems-source.add, Use rtems_source_spec_DEPS instead of rtems_source_spec_DEPENDENCIES (Conflicts with automake internals). * rtems/rtems-source.add: Add RTEMS_RPM_RELEASE. * rtemsdoc/mkspec.in: Remove. * rtemsdoc/Makefile.am: Reworked. * rtemsdoc/header.add: Update Copyright notice. * rtemsdoc/rtemsdoc.add: Add RTEMS_RPM_RELEASE. Add %{rpmgroup}. Remove bzip-ing *.ps. * rtemsdoc/supplement.add.in: Add %{rpmgroup}. * rtemsdoc/templ.add.in: Add %{rpmgroup}.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ChangeLog16
-rw-r--r--scripts/Makefile.am15
-rw-r--r--scripts/configure.ac3
-rw-r--r--scripts/rtems/rtems-source.add2
-rw-r--r--scripts/rtemsdoc/.cvsignore4
-rw-r--r--scripts/rtemsdoc/Makefile.am27
-rw-r--r--scripts/rtemsdoc/header.add2
-rw-r--r--scripts/rtemsdoc/mkspec.in51
-rw-r--r--scripts/rtemsdoc/rtemsdoc.add8
-rw-r--r--scripts/rtemsdoc/supplement.add.in4
-rw-r--r--scripts/rtemsdoc/templ.add.in4
11 files changed, 46 insertions, 90 deletions
diff --git a/scripts/ChangeLog b/scripts/ChangeLog
index 529d8b35f0..6bc1c42607 100644
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,19 @@
+2004-02-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * configure.ac: Remove rtemsdoc/mkspec. Add RTEMS_RPM_RELEASE.
+ * rtemsdoc/.cvsignore: Reformat.
+ * Makefile.am: Reformat. Add RTEMS_RPM_RELEASE support to
+ rtems-source.add, Use rtems_source_spec_DEPS instead of
+ rtems_source_spec_DEPENDENCIES (Conflicts with automake internals).
+ * rtems/rtems-source.add: Add RTEMS_RPM_RELEASE.
+ * rtemsdoc/mkspec.in: Remove.
+ * rtemsdoc/Makefile.am: Reworked.
+ * rtemsdoc/header.add: Update Copyright notice.
+ * rtemsdoc/rtemsdoc.add: Add RTEMS_RPM_RELEASE.
+ Add %{rpmgroup}. Remove bzip-ing *.ps.
+ * rtemsdoc/supplement.add.in: Add %{rpmgroup}.
+ * rtemsdoc/templ.add.in: Add %{rpmgroup}.
+
2004-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/rtems-source.add: Require automake-1.8.2, autoconf-2.59.
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index b04ad1bc03..c489979d7d 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -18,12 +18,17 @@ CONFIG_STATUS_DEPENDENCIES = setup.cache
setup.cache: setup.def
cp setup.def $@
-DISTCLEANFILES = setup.cache
-
+rtems_source_spec_DEPS = common/common.add rtems/rtems-source.add \
+ common/clean.add
noinst_DATA += rtems/rtems-source.spec
-rtems/rtems-source.spec: $(top_builddir)/common/common.add rtems/rtems-source.add \
- $(top_builddir)/common/clean.add
- cat $^ | sed 's,[@]rtems_version[@],$(RTEMS_VERSION),g' > $@
+rtems/rtems-source.spec: $(rtems_source_spec_DEPS)
+ cat $(rtems_source_spec_DEPS) | sed \
+ -e 's,[@]rtems_version[@],$(RTEMS_VERSION),g' \
+ -e 's,[@]RTEMS_RPM_RELEASE[@],$(RTEMS_RPM_RELEASE),g' > $@
+
+CLEANFILES = rtems/rtems-source.spec
+
+DISTCLEANFILES = setup.cache
include $(top_srcdir)/../automake/subdirs.am
include $(top_srcdir)/../automake/local.am
diff --git a/scripts/configure.ac b/scripts/configure.ac
index 56ae888cf6..dc23c0267f 100644
--- a/scripts/configure.ac
+++ b/scripts/configure.ac
@@ -70,8 +70,8 @@ AC_SUBST(BSPVERS)
AC_SUBST(RPM_CPU)
AC_SUBST(rpmprefix,$rpmprefix)
AC_SUBST(rpmgroup,[RTEMS/][RTEMS_API])
+AC_SUBST(RTEMS_RPM_RELEASE,$rtems_rpm_release)
AC_SUBST(osversion,$osversion)
-
AC_CONFIG_FILES([Makefile
binutils/Makefile
gccnewlib/Makefile
@@ -94,7 +94,6 @@ AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec])
-AC_CONFIG_FILES([rtemsdoc/mkspec],[chmod +x rtemsdoc/mkspec])
AC_CONFIG_COMMANDS([default],[[chmod 755 buildall
chmod 755 buildalltar
diff --git a/scripts/rtems/rtems-source.add b/scripts/rtems/rtems-source.add
index b3dc8e06cc..ff3818dde7 100644
--- a/scripts/rtems/rtems-source.add
+++ b/scripts/rtems/rtems-source.add
@@ -1,6 +1,6 @@
Name: %{rpmprefix}rtems-source
Version: @rtems_version@
-Release: 1
+Release: @RTEMS_RPM_RELEASE@
Epoch: 0
Summary: RTEMS source code
diff --git a/scripts/rtemsdoc/.cvsignore b/scripts/rtemsdoc/.cvsignore
index 5aba362886..52a5b09dfc 100644
--- a/scripts/rtemsdoc/.cvsignore
+++ b/scripts/rtemsdoc/.cvsignore
@@ -13,11 +13,11 @@ m68k-supplement.add
Makefile
Makefile.in
mips-supplement.add
-mkspec
networking-docs.add
new_chapters-docs.add
porting-docs.add
posix1003_1-docs.add
+posix_users-docs.add
powerpc-supplement.add
relnotes-docs.add
rgdb_specs-docs.add
@@ -25,6 +25,6 @@ rtems_gdb-docs.add
sh-supplement.add
sparc-supplement.add
*.spec
+*.spec.in
started_ada-docs.add
started-docs.add
-*.spec.in
diff --git a/scripts/rtemsdoc/Makefile.am b/scripts/rtemsdoc/Makefile.am
index aed74f5b2d..488b93de54 100644
--- a/scripts/rtemsdoc/Makefile.am
+++ b/scripts/rtemsdoc/Makefile.am
@@ -6,14 +6,10 @@ include ${top_srcdir}/common/common.am
CLEANFILES =
-MKSPEC = $(SHELL) ./mkspec
-
-MKSPEC_DEPS = mkspec rtemsdoc.spec.in $(top_builddir)/setup.cache
-
SUPPLEMENTS = arm c4x i386 i960 m68k mips powerpc sh sparc
DOCS = ada_user posix1003_1 bsp_howto
-DOCS += c_user
+DOCS += c_user posix_users
DOCS += develenv
DOCS += FAQ filesystem itron
DOCS += networking porting new_chapters
@@ -39,22 +35,13 @@ SUFFIXES = -supplement.add -docs.add
t=`echo $@ | sed -e 's,-docs.add,,'`; \
sed -e s/@target\@/$$t/g < $< >$@
-rtemsdoc.spec.in: $(SUBPACKAGES)
- cat $^ > $@
-CLEANFILES += rtemsdoc.spec.in
-
-rtemsdoc.spec: $(MKSPEC_DEPS) $(SUBPACKAGES)
- $(MKSPEC) -cfg $(top_builddir)/setup.cache > $@
+rtemsdoc.spec: $(SUBPACKAGES) Makefile
+ cat $(SUBPACKAGES) | sed \
+ -e 's,[@]rtems_version[@],$(RTEMS_VERSION),g' \
+ -e 's,[@]rtems_rpm_release[@],$(RTEMS_RPM_RELEASE),g' \
+ > $@
CLEANFILES += rtemsdoc.spec
-RPM_SPECS_DATA = rtemsdoc.spec
-
-TEMPLATES = rtemsdoc.spec.in
-
-noinst_DATA = $(TEMPLATES)
-
-EXTRA_DIST = $(TEMPLATES)
-
-CLEANFILES += $(RPM_SPECS_DATA)
+noinst_DATA = rtemsdoc.spec
include $(top_srcdir)/../automake/local.am
diff --git a/scripts/rtemsdoc/header.add b/scripts/rtemsdoc/header.add
index e4bf99318c..6806c819dc 100644
--- a/scripts/rtemsdoc/header.add
+++ b/scripts/rtemsdoc/header.add
@@ -1,4 +1,4 @@
#
# spec file for package rtemsdoc
#
-# Copyright (c) 2003 Ralf Corsepius, Ulm, Germany
+# Copyright (c) 2003, 2004 Ralf Corsepius, Ulm, Germany
diff --git a/scripts/rtemsdoc/mkspec.in b/scripts/rtemsdoc/mkspec.in
deleted file mode 100644
index 132e5f1050..0000000000
--- a/scripts/rtemsdoc/mkspec.in
+++ /dev/null
@@ -1,51 +0,0 @@
-#! /bin/sh
-
-RTEMS_DIR=`dirname $0`/@top_srcdir@
-PACKAGE_BUGREPORT=@PACKAGE_BUGREPORT@
-
-CFG=../setup.cache
-
-usage()
-{
- echo "$0 [options]"
- echo " options:"
- echo " -cfg <setup.cache>"
- echo " -o <rpm-spec-dir>"
- exit 1 ;
-}
-
-specsrc=${RTEMS_DIR}/rtemsdoc/rtemsdoc.spec.in
-
-while test $# -ge 2; do
-case $1 in
--cfg)
- shift
- CFG=$1
- shift
- ;;
--o)
- shift
- dst=$1
- shift
- ;;
--*)
- echo "invalid option $1";
- usage
- ;;
-esac
-done
-
-if test ! $# -eq 0;
-then
- echo "Invalid number of arguments" >&2
- usage >&2
-fi
-
-. ./$CFG
-
-sed -e "s%@PACKAGE_BUGREPORT\@%@PACKAGE_BUGREPORT@%g" \
- -e "s%@rtems_rpm_release\@%${rtems_rpm_release}%g" \
- -e "s%@rtems_version\@%${rtems_version}%g" \
- -e "s%@rtems_rpm_version\@%${rtems_rpm_version}%g" \
- -e "s,@rpm_build_root\@,${rpm_build_root},g" \
-< ${specsrc}
diff --git a/scripts/rtemsdoc/rtemsdoc.add b/scripts/rtemsdoc/rtemsdoc.add
index fe5c20b145..942ae290a3 100644
--- a/scripts/rtemsdoc/rtemsdoc.add
+++ b/scripts/rtemsdoc/rtemsdoc.add
@@ -4,10 +4,11 @@
%define srcvers @rtems_version@
%define rpmvers %{expand:%%(echo @rtems_version@ | tr - _ )}
-Name: rtemsdoc
+Name: %{rpmprefix}rtemsdoc
Release: @rtems_rpm_release@
+Epoch: 0
License: Distributable
-Group: rtems
+Group: %{rpmgroup}/Documentation
Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
@@ -64,13 +65,12 @@ cd build
rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/rtems/html/supplements/template*
gzip -9qf ${RPM_BUILD_ROOT}/%{_infodir}/*
- bzip2 -9qf ${RPM_BUILD_ROOT}/%{_datadir}/rtems/ps/*
## base
%package base
Summary: Documentation for RTEMS ada support
-Group: rtems/documentation
+Group: %{rpmgroup}/Documentation
%description base
RTEMS is a free operating system for embedded systems.
diff --git a/scripts/rtemsdoc/supplement.add.in b/scripts/rtemsdoc/supplement.add.in
index 603db361e2..9d58b0e176 100644
--- a/scripts/rtemsdoc/supplement.add.in
+++ b/scripts/rtemsdoc/supplement.add.in
@@ -2,9 +2,9 @@
%package @target@
Summary: Documentation for RTEMS @target@ support
-Group: rtems/documentation
+Group: %{rpmgroup}/Documentation
PreReq: /sbin/install-info
-Requires: rtemsdoc-base
+Requires: %{rpmprefix}rtemsdoc-base
%description @target@
RTEMS is a free operating system for embedded systems.
diff --git a/scripts/rtemsdoc/templ.add.in b/scripts/rtemsdoc/templ.add.in
index 9addda8290..5a0d8f7be0 100644
--- a/scripts/rtemsdoc/templ.add.in
+++ b/scripts/rtemsdoc/templ.add.in
@@ -2,9 +2,9 @@
%package @target@
Summary: Documentation for RTEMS @target@ support
-Group: rtems/documentation
+Group: %{rpmgroup}/Documentation
PreReq: /sbin/install-info
-Requires: rtemsdoc-base
+Requires: %{rpmprefix}rtemsdoc-base
%description @target@
RTEMS is a free operating system for embedded systems.