use ORIGIN linking to make EPICS relocatable
This commit is contained in:
1 parent
4cdca3589e
commit
2c7209ca8f
2 files changed
+6
-6
No files matched your search
@@ -2,3 +2,5 @@
|
||||
ifeq ($(INSTALL_LOCATION),$(EPICS_BASE))
|
||||
EPICS_SITE_VERSION=$(shell $(PERL) -MPOSIX -e 'print strftime "%Y-%m-%d", localtime')
|
||||
endif
|
||||
|
||||
LINKER_USE_RPATH = ORIGIN
|
||||
+4
-6
@@ -9,16 +9,18 @@ Release: 1%{?dist}
|
||||
License: EPICS Open License
|
||||
Packager: dirk.zimoch@psi.ch
|
||||
URL: https://git.psi.ch/epics_base/base-7.0
|
||||
Prefix: /usr/local/epics
|
||||
|
||||
Obsoletes: caRepeater = 1
|
||||
|
||||
%define module_name %{name}
|
||||
%define prog_folder /usr/local/epics/base-%{EpicsVersion}
|
||||
|
||||
%define source_date_epoch_from_changelog 0
|
||||
%undefine source_date_epoch_from_changelog
|
||||
|
||||
%undefine __brp_mangle_shebangs
|
||||
%undefine __brp_ldconfig
|
||||
%undefine source_date_epoch_from_changelog
|
||||
%define _binaries_in_noarch_packages_terminate_build 0
|
||||
|
||||
%if %{defined rhel}
|
||||
@@ -111,7 +113,6 @@ Allows to run EPICS in wine.
|
||||
Summary: EPICS base %{EpicsVersion} for boot servers
|
||||
BuildArch: noarch
|
||||
AutoReqProv: no
|
||||
Prefix: /usr/local/epics
|
||||
|
||||
%description boot
|
||||
Contains files needed on NFS server to boot EPICS targets from.
|
||||
@@ -168,7 +169,6 @@ Only needed to build statically linked applications.
|
||||
Summary: Sources code of EPICS base %{EpicsVersion}
|
||||
BuildArch: noarch
|
||||
AutoReqProv: no
|
||||
Prefix: /usr/local/epics
|
||||
|
||||
%description src
|
||||
The source code of EPICS base %{EpicsVersion}.
|
||||
@@ -180,7 +180,6 @@ May help when debugging
|
||||
Summary: EPICS base %{EpicsVersion} documentation
|
||||
BuildArch: noarch
|
||||
AutoReqProv: no
|
||||
Prefix: /usr/local/epics
|
||||
|
||||
%description doc
|
||||
The documentation of EPICS base %{EpicsVersion}.
|
||||
@@ -191,7 +190,6 @@ The documentation of EPICS base %{EpicsVersion}.
|
||||
# and here we also build
|
||||
# RPMS will be stored here, too
|
||||
%define _topdir %(pwd)
|
||||
%define _sourcedir %{_topdir}
|
||||
%define _builddir %{_topdir}
|
||||
|
||||
%prep
|
||||
@@ -233,7 +231,7 @@ chmod +x %{buildroot}%{prog_folder}/bin/epics-base.sh
|
||||
%make_build INSTALL_LOCATION=%{buildroot}%{prog_folder} realclean
|
||||
%{__rm} -f modules/RELEASE.*.local
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__cp} %{_rpmdir}/*/%{name}*%{version}-%{release}.*.rpm %{_sourcedir}
|
||||
%{__cp} %{_rpmdir}/*/%{name}*%{version}-%{release}.*.rpm %(pwd)
|
||||
|
||||
# Link caRepeater and profile script to highest installed EPICS version after install and uninstall
|
||||
%post
|
||||
|
||||
Reference in new issue
Block a user