!2 p11-kit: delete unused file

Merge pull request !2 from guoxiaoqi/next
This commit is contained in:
openeuler-ci-bot 2020-01-11 17:35:25 +08:00 committed by Gitee
commit 8e3f7a8abc
2 changed files with 7 additions and 27 deletions

View File

@ -1,13 +1,12 @@
Name: p11-kit
Version: 0.23.14
Release: 5
Release: 6
Summary: Provides a way to load and enumerate PKCS#11 modules.
License: BSD
URL: http://p11-glue.freedesktop.org/p11-kit.html
Source0: %{name}-%{version}.tar.gz
Source1: trust-extract-compat
Source2: p11-kit-client.service
Source0: https://github.com/p11-glue/p11-kit/releases/download/%{version}//%{name}-%{version}.tar.gz
Source1: p11-kit-client.service
Patch6001: debug-Work-around-cppcheck-false-positives.patch
Patch6002: build-Call-va_end-always-when-leaving-the-function.patch
@ -76,8 +75,7 @@ make -j 4 V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/p11-kit/
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_userunitdir}
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_userunitdir}
find $RPM_BUILD_ROOT -type f -name "*.la" -delete -print
%check
@ -132,9 +130,11 @@ fi
%ghost %{_libdir}/libnssckbi.so
%{_libdir}/pkcs11/p11-kit-trust.so
%{_datadir}/p11-kit/modules/p11-kit-trust.module
%{_libexecdir}/p11-kit/trust-extract-compat
%changelog
* Fri Jan 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.23.14-6
- delete unused file
* Sat Dec 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.23.14-5
- fix update problem

View File

@ -1,20 +0,0 @@
#!/bin/sh
# This script is a placeholder designed to be replaced when this software
# has been customized for distribution. It should be symlinked linked to the
# distribution's update-ca-certificates or update-ca-trust command as
# appropriate. In the future this script will be called when the PKCS#11
# trust module is used to modify trust anchors and related data.
if [ $# -ne 0 ]; then
echo "usage: trust extract-compat" >&2
exit 2
fi
uid=$(id -u)
if [ "$uid" != 0 ]; then
echo "trust: running as non-root user: skip extracting compat bundles" >&2
exit 0
fi
exec /usr/bin/update-ca-trust