extend spec file for RHEL10

This commit is contained in:
zimoch committed 2026-10-07 17:01:32 +02:00
1 parent b97d7a1532
commit 5cd93afb37
1 file changed
+12 -6
+12 -6
View File
@@ -17,6 +17,7 @@ Obsoletes: caRepeater = 1
%define debug_package %{nil}
%define _build_id_links none
%define source_date_epoch_from_changelog 0
# do not strip libraries
%global __strip /bin/true
@@ -31,6 +32,10 @@ Obsoletes: caRepeater = 1
%endif
# else define epics_host_arch as suitable
BuildRequires: make >= 3.80
BuildRequires: readline-devel
BuildRequires: clang
%description
EPICS is a set of Open Source software tools, libraries and applications
developed collaboratively and used worldwide to create distributed soft
@@ -42,13 +47,13 @@ This RPM is a binary-only package.
%package host-devel
Requires: make >= 3.80
BuildRequires: make >= 3.80
Requires: readline-devel
Summary: Minimal stuff needed to build EPICS host apps
Requires: %{name} = %{version}-%{release}
%if 0%{?rhel} >= 8 && 0%{?rhel} <= 9
# This EPICS installation uses the toolset 12 compiler
%if 0%{?rhel} >= 8
Requires: gcc-toolset-12-gcc-c++
BuildRequires: gcc-toolset-12-gcc-c++
%endif
@@ -135,8 +140,11 @@ Requires: wine
%endif
# For some 32 bit cross compilers
# unavailable for RHEL10+: use wrapper (see CONFIG_SITE.RHEL10-x86_64.Common)
%if 0%{?rhel} <= 9
BuildRequires: /lib/libc.so.6
Requires: /lib/libc.so.6
%endif
%description devel
All what is needed to develop EPICS for different target architectures.
@@ -203,6 +211,8 @@ export EPICS_HOST_ARCH=%{epics_host_arch}
shopt -s extglob
%{__rm} -f %{buildroot}%{prog_folder}/bin/{V,RTEMS}*/{*Harness,softIoc,softIocPVA}
%{__rm} -f %{buildroot}%{prog_folder}/bin/RTEMS*/TEMP.*
%{__rm} -rf %{buildroot}%{prog_folder}/lib/perl/[0-9]*
%{__rm} -f %{buildroot}%{prog_folder}/lib/perl/CA.pm
# fix permissions of caRepeater.service
%{__chmod} 644 %{buildroot}%{prog_folder}/bin/*/caRepeater.service
@@ -281,11 +291,7 @@ fi
%{prog_folder}/bin/epics-base.sh
%{prog_folder}/lib/perl/EpicsHostArch.pl
%{prog_folder}/lib/perl/CA.pm
%dir %{prog_folder}/lib/perl
%dir %{prog_folder}/lib/perl/[0-9]*
%dir %{prog_folder}/lib/perl/[0-9]*/*-linux-thread-multi
%{prog_folder}/lib/perl/*/*-linux-thread-multi/libCap5.so
# Install host binaries but avoid installing *.pl scripts
# and other development tools