diff --git a/coolkey.changes b/coolkey.changes index 1ddf270..f050e2d 100644 --- a/coolkey.changes +++ b/coolkey.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 15 19:50:30 UTC 2022 - Dirk Müller + +- light modernization of the spec file +- avoid bashism in post scripts (bsc#1195391) + ------------------------------------------------------------------- Mon Jul 24 23:02:16 UTC 2017 - jengelh@inai.de diff --git a/coolkey.spec b/coolkey.spec index b40415c..65510bd 100644 --- a/coolkey.spec +++ b/coolkey.spec @@ -1,7 +1,7 @@ # # spec file for package coolkey # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,9 +22,9 @@ Name: coolkey Version: 1.1.0 Release: 0 Summary: CoolKey and CAC PKCS #11 PKI Module for Smart Cards -License: LGPL-2.1 +License: LGPL-2.1-only Group: Productivity/Security -Url: http://directory.fedoraproject.org/wiki/CoolKey +URL: https://www.dogtagpki.org/wiki/CoolKey Source: %{name}-%{version}.tar.gz Source1: %{name}.rpmlintrc Source2: baselibs.conf @@ -132,7 +132,7 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing" --with-debug\ --disable-dependency-tracking\ --enable-pk11install -make %{?_smp_mflags} +%make_build %install %make_install @@ -141,11 +141,11 @@ ln -s pkcs11/libcoolkeypk11.so %{buildroot}/%{_libdir} %triggerin -- mozilla-nss-sysinit mozilla-nss-tools if [ -x %{_bindir}/pk11install -a -x %{_bindir}/modutil -a -f %{_sysconfdir}/pki/nssdb/pkcs11.txt ]; then isThere=`modutil -rawlist -dbdir dbm:%{nssdb} | grep %{coolkey_module} || echo NO` - if [ "$isThere" == "NO" ]; then + if [ "$isThere" = "NO" ]; then pk11install -l -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||: fi isThere=`modutil -rawlist -dbdir sql:%{nssdb} | grep %{coolkey_module} || echo NO` - if [ "$isThere" == "NO" ]; then + if [ "$isThere" = "NO" ]; then pk11install -s -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||: fi fi @@ -154,11 +154,11 @@ fi /sbin/ldconfig if [ -x %{_bindir}/pk11install -a -x %{_bindir}/modutil -a -f %{_sysconfdir}/pki/nssdb/pkcs11.txt ]; then isThere=`modutil -rawlist -dbdir dbm:%{nssdb} | grep %{coolkey_module} || echo NO` - if [ "$isThere" == "NO" ]; then + if [ "$isThere" = "NO" ]; then pk11install -l -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||: fi isThere=`modutil -rawlist -dbdir sql:%{nssdb} | grep %{coolkey_module} || echo NO` - if [ "$isThere" == "NO" ]; then + if [ "$isThere" = "NO" ]; then pk11install -s -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||: fi fi @@ -171,7 +171,8 @@ if [ $1 -eq 0 -a -x %{_bindir}/modutil -a -f %{_sysconfdir}/pki/nssdb/pkcs11.txt fi %files -%doc ChangeLog LICENSE README +%license LICENSE +%doc ChangeLog README %{_bindir}/pk11install %{_libdir}/libcoolkeypk11.so %{_libdir}/pkcs11/*.so