summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/gcc/base-gfortran.add
blob: 2045c5699df9c779f215619f81b8c538f5de096e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%if %build_infos
%if %build_f95
# ==============================================================
# @rpmprefix@gcc-gfortran-common
# ==============================================================
%package -n @rpmprefix@gcc-gfortran-common
Summary:	Base package for RTEMS gcc/gfortran compiler
Group:          Development/Tools
License:	GPL

Requires(post): 	/sbin/install-info
Requires(preun):	/sbin/install-info

Provides:	@rpmprefix@rtems4.7-base-gfortran = %{gcc_rpmvers}-%{release}
Obsoletes:	@rpmprefix@rtems4.7-base-gfortran < %{gcc_rpmvers}-%{release}
Provides:	@rpmprefix@rtems-base-gfortran = %{gcc_rpmvers}-%{release}
Obsoletes:	@rpmprefix@rtems-base-gfortran < %{gcc_rpmvers}-%{release}

%description -n @rpmprefix@gcc-gfortran-common
RTEMS is an open source operating system for embedded systems.

This is the files for gcc/gfortran that are shared by all targets.

%files -n @rpmprefix@gcc-gfortran-common
%defattr(-,root,root)
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gfortran.info*.gz

%post -n @rpmprefix@gcc-gfortran-common
  /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :

%preun -n @rpmprefix@gcc-gfortran-common
if [ $1 -eq 0 ]; then
  /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
fi

%endif
%endif