1 | # ============================================================== |
---|
2 | # rtems-base-gcc |
---|
3 | # ============================================================== |
---|
4 | %package -n rtems-base-gcc |
---|
5 | Provides: rtems-base-gcc |
---|
6 | Summary: base package for rtems gcc and newlib C Library |
---|
7 | Group: rtems |
---|
8 | |
---|
9 | %description -n rtems-base-gcc |
---|
10 | |
---|
11 | RTEMS is an open source operating system for embedded systems. |
---|
12 | |
---|
13 | This is the files for gcc and newlib that are shared by all targets. |
---|
14 | |
---|
15 | %files -n rtems-base-gcc |
---|
16 | %dir /opt/rtems/info |
---|
17 | %doc /opt/rtems/info/cpp.info*.gz |
---|
18 | %doc /opt/rtems/info/gcc.info*.gz |
---|
19 | %doc /opt/rtems/info/libc.info*.gz |
---|
20 | %doc /opt/rtems/info/libm.info*.gz |
---|
21 | |
---|
22 | %dir /opt/rtems/bin |
---|
23 | /opt/rtems/bin/gcov@exe_ext@ |
---|
24 | |
---|
25 | %dir /opt/rtems/man |
---|
26 | %dir /opt/rtems/man/man1 |
---|
27 | # not in gcc 3.x -- only in gcc 2.x |
---|
28 | # %doc /opt/rtems/man/man1/cccp.1 |
---|
29 | |
---|
30 | %dir /opt/rtems/include |
---|
31 | # gcc 3.0.1 specific |
---|
32 | /opt/rtems/include/g++-v3 |
---|
33 | # gcc 2.x specific |
---|
34 | # /opt/rtems/include/g++-3 |
---|
35 | |
---|
36 | %post -n rtems-base-gcc |
---|
37 | if test -d $RPM_INSTALL_PREFIX/rtems/info; |
---|
38 | then |
---|
39 | rm -f $RPM_INSTALL_PREFIX/rtems/info/dir |
---|
40 | f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` |
---|
41 | test -n "$f" && for i in $f; do |
---|
42 | install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir |
---|
43 | done |
---|
44 | fi |
---|
45 | |
---|
46 | %postun -n rtems-base-gcc |
---|
47 | if test -d $RPM_INSTALL_PREFIX/rtems/info; |
---|
48 | then |
---|
49 | rm -f $RPM_INSTALL_PREFIX/rtems/info/dir |
---|
50 | f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` |
---|
51 | test -n "$f" && for i in $f; do |
---|
52 | install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir |
---|
53 | done |
---|
54 | fi |
---|
55 | |
---|