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 | |
---|
17 | Vendor: OAR Corporation |
---|
18 | Distribution: Linux |
---|
19 | Name: rtemsdoc |
---|
20 | Release: @rtems_rpm_release@ |
---|
21 | License: Distributable |
---|
22 | Group: rtems |
---|
23 | |
---|
24 | Autoreqprov: on |
---|
25 | Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com |
---|
26 | BuildPreReq: texinfo >= 4.2 |
---|
27 | BuildPreReq: tetex |
---|
28 | BuildPreReq: perl |
---|
29 | BuildPreReq: gcc |
---|
30 | |
---|
31 | Version: %{rpmvers} |
---|
32 | Summary: A free operating system for embedded systems |
---|
33 | Source: 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 | # |
---|
46 | NoSource: 0 |
---|
47 | Prefix: %{_prefix} |
---|
48 | Prefix: %{_infodir} |
---|
49 | Prefix: %{_datadir} |
---|
50 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
51 | BuildArch: noarch |
---|
52 | |
---|
53 | %description |
---|
54 | RTEMS is a free operating system for embedded systems. |
---|
55 | |
---|
56 | This package contains the documentation |
---|
57 | |
---|
58 | %prep |
---|
59 | %setup -c -T -n %{name}-%{version} -b0 |
---|
60 | test -d build || mkdir build |
---|
61 | %build |
---|
62 | cd 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} |
---|
73 | cd 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 |
---|
85 | Summary: Documentation for RTEMS ada support |
---|
86 | Group: rtems/documentation |
---|
87 | |
---|
88 | %description base |
---|
89 | RTEMS is a free operating system for embedded systems. |
---|
90 | |
---|
91 | This package contains the files shared between different documentation |
---|
92 | packages. |
---|
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 | |
---|