public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libzpc] rawhide: packaging fixes
@ 2026-10-27  7:13 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-27  7:13 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libzpc
            Branch : rawhide
            Commit : 0987c0fcfc6a3968120a5fbb4cd15cecbc1d679f
            Author : Dan Horák <dan@danny.cz>
            Date   : 2026-10-27T07:13:26+00:00
            Stats  : +7/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/libzpc/c/0987c0fcfc6a3968120a5fbb4cd15cecbc1d679f?branch=rawhide

            Log:
            packaging fixes

- move to using macros instead of variable
- own the directory for the pkcs11 config
- set upgrade path for older package versions
- set strict dependency between the pkcs11 module and the openssl provider

---
diff --git a/libzpc.spec b/libzpc.spec
index dffa1d0..1c61f2c 100644
--- a/libzpc.spec
+++ b/libzpc.spec
@@ -39,7 +39,7 @@ later), interfacing to the protected key feature of z/Architecture.
 
 %package	pkcs11
 Summary:	PKCS#11 module for %{name}
-Requires:	%{name}-provider
+Requires:	%{name}-provider = %{version}-%{release}
 
 %description	pkcs11
 The %{name}-pkcs11 package contains a PKCS#11 module for using protected key
@@ -49,6 +49,9 @@ origins.
 
 %package	tools
 Summary:	Key management tool for %{name} keys
+# set upgrade path for old packages
+Obsoletes:	%{name} < 2.1.0
+Obsoletes:	%{name}-devel < 2.0.0
 
 %description	tools
 The %{name}-tools package contains a key management tool for key origins.
@@ -69,9 +72,9 @@ persistent protected key origins, from which protected keys can be (re-)derived.
 %cmake_install
 %ifarch s390x
 install -m644 %_vpath_builddir/hbkzpcprovider.conf \
-        -D -t $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/openssl.d/
+	-D -t %{buildroot}%{_sysconfdir}/pki/tls/openssl.d/
 install -m644 %{SOURCE1} \
-        -D -t $RPM_BUILD_ROOT/%{_sysconfdir}/zpcpkcs11/
+	-D -t %{buildroot}%{_sysconfdir}/zpcpkcs11/
 %endif
 
 %check
@@ -93,6 +96,7 @@ install -m644 %{SOURCE1} \
 %{p11modulesdir}/zpcpkcs11.so
 %{_mandir}/man5/zpcpkcs11.conf.5*
 %{_mandir}/man7/zpcpkcs11.7*
+%dir %{_sysconfdir}/zpcpkcs11
 %config(noreplace) %{_sysconfdir}/zpcpkcs11/zpcpkcs11.conf
 %endif
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-27  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27  7:13 [rpms/libzpc] rawhide: packaging fixes 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox