diff --git a/pki-core.spec b/pki-core.spec index 8553839a719a87dd390fb0624828482e8c517440..ac92baa411e8446733bd8a56e12692333ac518d3 100644 --- a/pki-core.spec +++ b/pki-core.spec @@ -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 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 - 11.0.0-2 +- Remove rpath and enable debuginfo + * Thu Jun 16 2022 liyanan - 11.0.0-1 - Update to 11.0.0