source: rtems/scripts/rtemsdoc/rtemsdoc.spec.in @ 2dae735f

4.104.114.84.95
Last change on this file since 2dae735f was 2dae735f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2003 at 8:13:55 AM

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

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