Dominique Leuenberger 2023-05-20 15:23:31 +00:00 committed by Git OBS Bridge
commit fd97144e12
2 changed files with 18 additions and 32 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 18 15:29:46 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>
- Merge subpackages lib and devel into the main one
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 16 15:21:43 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com> Thu Feb 16 15:21:43 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>

View File

@ -50,33 +50,19 @@ BuildRequires: pkgconfig(tss2-mu)
BuildRequires: pkgconfig(tss2-rc) BuildRequires: pkgconfig(tss2-rc)
BuildRequires: pkgconfig(tss2-tctildr) BuildRequires: pkgconfig(tss2-tctildr)
BuildRequires: pkgconfig(yaml-0.1) BuildRequires: pkgconfig(yaml-0.1)
# Merge both subpackages
Provides: libtpm2_pkcs11-0 = %{version}
Obsoletes: libtpm2_pkcs11-0 < %{version}
Provides: tpm2-pkcs11-devel = %{version}
Obsoletes: tpm2-pkcs11-devel < %{version}
%{?python_enable_dependency_generator} %{?python_enable_dependency_generator}
%description %description
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to tpm2-pkcs11 is a plugin shared library implementing the PKCS #11
access cryptographic services from tokens/devices such as hardware security Cryptographic Token Interface (Cryptoki) C API atop of TPM2 devices.
modules (HSM), smart cards, etc. This project uses a TPM2 device
as the cryptographic token.
%package -n libtpm2_pkcs11-0 %dnl "make install" copies no .h files, a strong indicator that this project is
Summary: A PKCS#11 interface for TPM2 hardware %dnl an (SLPP-exempt) plugin rather than a "normal" shared library.
Group: System/Libraries
Requires: %{name} = %{version}
%description -n libtpm2_pkcs11-0
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to
access cryptographic services from tokens/devices such as hardware security
modules (HSM), smart cards, etc. This project uses a TPM2 device
as the cryptographic token.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libtpm2_pkcs11-0 = %{version}
Provides: libtpm2_pkcs11-devel = %{version}-%{release}
%description devel
Headers and libraries to build software against %{name}.
%prep %prep
%autosetup %autosetup
@ -96,27 +82,22 @@ cd tools
%python_install %python_install
%fdupes %{buildroot} %fdupes %{buildroot}
%post -n libtpm2_pkcs11-0 -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -n libtpm2_pkcs11-0 -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%license LICENSE %license LICENSE
%doc docs/* %doc docs/*
%dir %{_datadir}/p11-kit/modules %dir %{_datadir}/p11-kit/modules
%dir %{_datadir}/p11-kit %dir %{_datadir}/p11-kit
%dir %{_libdir}/pkcs11
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module %{_datadir}/p11-kit/modules/tpm2_pkcs11.module
%{_sysconfdir}/tpm2_pkcs11 %{_sysconfdir}/tpm2_pkcs11
%{_bindir}/tpm2_ptool %{_bindir}/tpm2_ptool
%{python_sitelib}/tpm2_pkcs11 %{python_sitelib}/tpm2_pkcs11
%{python_sitelib}/*.egg-info %{python_sitelib}/*.egg-info
%files -n libtpm2_pkcs11-0
%dir %{_libdir}/pkcs11
%{_libdir}/pkcs11/libtpm2_pkcs11.so.%{so_ver}* %{_libdir}/pkcs11/libtpm2_pkcs11.so.%{so_ver}*
%files devel
%dir %{_libdir}/pkcs11
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
%{_libdir}/pkcs11/libtpm2_pkcs11.so %{_libdir}/pkcs11/libtpm2_pkcs11.so
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
%changelog %changelog