Remove rpath and enable debuginfo

(cherry picked from commit 8ed1b7a97bb871370c31fb12bce65be109b822d1)
This commit is contained in:
wk333 2022-08-24 17:03:11 +08:00 committed by openeuler-sync-bot
parent e31ace945f
commit 84a733328b

View File

@ -1,5 +1,4 @@
%define package_option() %bcond_with %1
%define debug_package %{nil}
%define _unpackaged_files_terminate_build 0
%define java_devel java-18-openjdk-devel
@ -8,7 +7,7 @@
Name: pki-core
Version: 11.0.0
Release: 1
Release: 2
Summary: The PKI Core Package
License: GPLv2 and LGPLv2
URL: http://www.dogtagpki.org/
@ -29,7 +28,7 @@ BuildRequires: python3 python3-devel python3-cryptography python3-lxml pyt
BuildRequires: python3-nss python3-requests >= 2.6.0 systemd-units tomcat >= 1:9.0.7
BuildRequires: junit jpackage-utils >= 0:1.7.5-10 jss >= 4.6.0 tomcatjss >= 7.4.1
BuildRequires: apr-devel apr-util-devel cyrus-sasl-devel httpd-devel >= 2.4.2 pcre-devel
BuildRequires: systemd zlib zlib-devel nss-tools openssl golang
BuildRequires: systemd zlib zlib-devel nss-tools openssl golang chrpath
%description
Dogtag PKI is a designed enterprise software system
manage enterprise Public Key Infrastructure deployments.
@ -254,6 +253,12 @@ cd build
ln -sf /usr/share/java/jboss-annotations-1.2-api/jboss-annotations-api_1.2_spec.jar\
%{buildroot}%{_datadir}/pki/server/common/lib/jboss-annotations-api_1.2_spec.jar
chrpath -d %{buildroot}/%{_bindir}/tpsclient
chrpath -d %{buildroot}/%{_libdir}/tps/libtokendb.so
chrpath -d %{buildroot}/%{_libdir}/tps/libtps.so
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/tps" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%pretrans -n pki-base -p <lua>
function test(a)
if posix.stat(a) then
@ -314,6 +319,12 @@ then
systemctl daemon-reload
fi
%post -n pki-tps
/sbin/ldconfig
%postun -n pki-tps
/sbin/ldconfig
%files -n pki-symkey
%doc base/symkey/LICENSE
%{_jnidir}/symkey.jar
@ -426,6 +437,7 @@ fi
%{_datadir}/pki/tps/{applets/,conf/,setup/,webapps/}
%{_bindir}/tpsclient
%{_libdir}/tps/{libtps.so,libtokendb.so}
%config(noreplace) /etc/ld.so.conf.d/*
%files -n pki-help
%{_javadocdir}/pki/
@ -441,6 +453,9 @@ fi
%endif
%changelog
* Wed Aug 24 2022 wangkai <wangkai385@h-partners.com> - 11.0.0-2
- Remove rpath and enable debuginfo
* Thu Jun 16 2022 liyanan <liyanan32@h-partners.com> - 11.0.0-1
- Update to 11.0.0