[e8a6236] | 1 | %if %build_infos |
---|
[2c7efaa7] | 2 | %if %build_newlib |
---|
| 3 | # ============================================================== |
---|
[793bad2] | 4 | # @rpmprefix@newlib-common |
---|
[2c7efaa7] | 5 | # ============================================================== |
---|
[793bad2] | 6 | %package -n @rpmprefix@newlib-common |
---|
[2c7efaa7] | 7 | Summary: Base package for RTEMS newlib C Library |
---|
| 8 | Group: Development/Tools |
---|
| 9 | Version: %{newlib_version} |
---|
| 10 | License: Distributable |
---|
| 11 | |
---|
[793bad2] | 12 | Provides: @rpmprefix@rtems4.7-base-newlib = %{newlib_version}-%{release} |
---|
| 13 | Obsoletes: @rpmprefix@rtems4.7-base-newlib < %{newlib_version}-%{release} |
---|
| 14 | Provides: @rpmprefix@rtems-base-newlib = %{newlib_version}-%{release} |
---|
| 15 | Obsoletes: @rpmprefix@rtems-base-newlib < %{newlib_version}-%{release} |
---|
| 16 | |
---|
[1ac7a00] | 17 | Provides: @rpmprefix@rtems4.7-base-libc = %{newlib_version}-%{release} |
---|
[793bad2] | 18 | Obsoletes: @rpmprefix@rtems4.7-base-libc < %{newlib_version}-%{release} |
---|
| 19 | Provides: @rpmprefix@rtems-base-libc = %{newlib_version}-%{release} |
---|
| 20 | Obsoletes: @rpmprefix@rtems-base-libc < %{newlib_version}-%{release} |
---|
| 21 | |
---|
[2c7efaa7] | 22 | |
---|
| 23 | Requires(post): /sbin/install-info |
---|
| 24 | Requires(preun): /sbin/install-info |
---|
| 25 | |
---|
[793bad2] | 26 | %description -n @rpmprefix@newlib-common |
---|
[2c7efaa7] | 27 | newlib files that are shared by all targets. |
---|
| 28 | |
---|
[793bad2] | 29 | %files -n @rpmprefix@newlib-common |
---|
[2c7efaa7] | 30 | %defattr(-,root,root) |
---|
[c3af37c] | 31 | %sysdir %{_infodir} |
---|
[2c7efaa7] | 32 | %ghost %{_infodir}/dir |
---|
| 33 | %{_infodir}/libc.info* |
---|
| 34 | %{_infodir}/libm.info* |
---|
| 35 | |
---|
[793bad2] | 36 | %post -n @rpmprefix@newlib-common |
---|
[64ccc152] | 37 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || : |
---|
| 38 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || : |
---|
[2c7efaa7] | 39 | |
---|
[793bad2] | 40 | %preun -n @rpmprefix@newlib-common |
---|
[2c7efaa7] | 41 | if [ $1 -eq 0 ]; then |
---|
[64ccc152] | 42 | /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || : |
---|
| 43 | /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || : |
---|
[2c7efaa7] | 44 | fi |
---|
| 45 | |
---|
| 46 | %endif |
---|
| 47 | %endif |
---|