source: rtems/scripts/rtemsdoc/rtemsdoc.add @ beabcaf9

4.104.114.84.95
Last change on this file since beabcaf9 was beabcaf9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/10/04 at 16:41:08

2004-02-10 Ralf Corsepius <corsepiu@…>

  • 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}.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1%define _datadir %{_prefix}/share
2%define _infodir %{_datadir}/info
3
4%define srcvers @rtems_version@
5%define rpmvers  %{expand:%%(echo @rtems_version@ | tr - _ )}
6
7Name:         %{rpmprefix}rtemsdoc
8Release:      @rtems_rpm_release@
9Epoch:        0
10License:      Distributable
11Group:        %{rpmgroup}/Documentation
12
13Autoreqprov:  on
14Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
15BuildPreReq:    texinfo >= 4.2
16BuildPreReq:    tetex
17BuildPreReq:    perl
18BuildPreReq:    gcc
19
20Version:      %{rpmvers}
21Summary:      A free operating system for embedded systems
22Source:       rtems-%{srcvers}.tar.bz2
23
24#
25# The original sources are not included in the source RPM.
26# If we included them, then the source RPMs for each target
27# would duplicate MBs of source unnecessarily.  This is
28# a duplication of over 30 MBs of source for each of
29# the more than 10 targets it is possible to build.
30#
31# You can get them yourself from the Internet and copy them to
32# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
33# Or you can try the ftp options of rpm :-)
34#
35NoSource:      0
36Prefix:         %{_prefix}
37Prefix:         %{_infodir}
38Prefix:         %{_datadir}
39BuildArch:      noarch
40
41%description
42RTEMS is a free operating system for embedded systems.
43
44This package contains the documentation
45
46%prep
47%setup -c -T -n %{name}-%{version} -b0
48test -d build || mkdir build
49%build
50cd build
51# rtems does not support building inside the source tree
52  export PATH=%{_prefix}/bin:$PATH
53  ../rtems-%{srcvers}/doc/configure \
54  --prefix=%{_prefix} \
55  --infodir=%{_infodir} \
56  --datadir=%{_datadir} \
57  --enable-docs
58  make RTEMS_BSP=
59%install
60  rm -rf ${RPM_BUILD_ROOT}
61cd build
62  make RTEMS_BSP= DESTDIR=${RPM_BUILD_ROOT} install
63  rm -f ${RPM_BUILD_ROOT}/%{_infodir}/template*
64  rm -f ${RPM_BUILD_ROOT}/%{_datadir}/rtems/*/template*
65  rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/rtems/html/supplements/template*
66
67  gzip -9qf ${RPM_BUILD_ROOT}/%{_infodir}/*
68
69## base
70
71%package base
72Summary: Documentation for RTEMS ada support
73Group: %{rpmgroup}/Documentation
74
75%description base
76RTEMS is a free operating system for embedded systems.
77
78This package contains the files shared between different documentation
79packages.
80
81%files base
82%dir %{_infodir}
83%dir %{_datadir}/rtems
84%dir %{_datadir}/rtems/html
85%{_datadir}/rtems/html/images
86%{_datadir}/rtems/html/*.html
87
Note: See TracBrowser for help on using the repository browser.