source: rtems/scripts/rtemsdoc/rtemsdoc.add @ 54ceffa

4.104.114.84.95
Last change on this file since 54ceffa was ab591073, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 07:29:27

2003-01-31 Ralf Corsepius <corsepiu@…>

  • common/common.add.in: Add Vendor, Distribution, BuildRoot?.
  • binutils/Makefile.am: Fix path to clean.add.
  • binutils/binutils.add: Remove BuildRoot?.
  • cpukit/Makefile.am: Use $(top_builddir)/common/common.add, $(top_builddir)/common/clean.add, header.add. Generate rtems-cpukit.spec.in.
  • cpukit/header.add: New.
  • cpukit/rtems-cpukit.spec.in: Remove.
  • cpukit/rtems-cpukit.add: New.
  • gccnewlib/gccnewlib.add: Remove Buildroot.
  • gdb/gdb.add: Remove Buildroot.
  • rtemsdoc/rtemsdoc.add: Remove BuildRoot?.
  • 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:         rtemsdoc
8Release:      @rtems_rpm_release@
9License:      Distributable
10Group:        rtems
11
12Autoreqprov:  on
13Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
14BuildPreReq:    texinfo >= 4.2
15BuildPreReq:    tetex
16BuildPreReq:    perl
17BuildPreReq:    gcc
18
19Version:      %{rpmvers}
20Summary:      A free operating system for embedded systems
21Source:       rtems-%{srcvers}.tar.bz2
22
23#
24# The original sources are not included in the source RPM.
25# If we included them, then the source RPMs for each target
26# would duplicate MBs of source unnecessarily.  This is
27# a duplication of over 30 MBs of source for each of
28# the more than 10 targets it is possible to build.
29#
30# You can get them yourself from the Internet and copy them to
31# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
32# Or you can try the ftp options of rpm :-)
33#
34NoSource:      0
35Prefix:         %{_prefix}
36Prefix:         %{_infodir}
37Prefix:         %{_datadir}
38BuildArch:      noarch
39
40%description
41RTEMS is a free operating system for embedded systems.
42
43This package contains the documentation
44
45%prep
46%setup -c -T -n %{name}-%{version} -b0
47test -d build || mkdir build
48%build
49cd build
50# rtems does not support building inside the source tree
51  export PATH=%{_prefix}/bin:$PATH
52  ../rtems-%{srcvers}/doc/configure \
53  --prefix=%{_prefix} \
54  --infodir=%{_infodir} \
55  --datadir=%{_datadir} \
56  --enable-docs
57  make RTEMS_BSP=
58%install
59  rm -rf ${RPM_BUILD_ROOT}
60cd build
61  make RTEMS_BSP= DESTDIR=${RPM_BUILD_ROOT} install
62  rm -f ${RPM_BUILD_ROOT}/%{_infodir}/template*
63  rm -f ${RPM_BUILD_ROOT}/%{_datadir}/rtems/*/template*
64  rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/rtems/html/supplements/template*
65
66  gzip -9qf ${RPM_BUILD_ROOT}/%{_infodir}/*
67  bzip2 -9qf ${RPM_BUILD_ROOT}/%{_datadir}/rtems/ps/*
68
69## base
70
71%package base
72Summary: Documentation for RTEMS ada support
73Group: rtems/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.