forked from pool/tpm2-pkcs11
Accepting request 913462 from home:gmbr3:Active
- Build and install python tools OBS-URL: https://build.opensuse.org/request/show/913462 OBS-URL: https://build.opensuse.org/package/show/security/tpm2-pkcs11?expand=0&rev=5
This commit is contained in:
parent
1282805b47
commit
459c032e1b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 21 13:32:30 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
- Build and install python tools
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 20 17:59:05 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
Fri Aug 20 17:59:05 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define so_ver 0
|
%define so_ver 0
|
||||||
|
%define pythons python3
|
||||||
Name: tpm2-pkcs11
|
Name: tpm2-pkcs11
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -31,6 +32,9 @@ BuildRequires: automake
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: tpm2.0-tools
|
BuildRequires: tpm2.0-tools
|
||||||
|
BuildRequires: python3-base
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig(libcrypto) >= 1.0.2g
|
BuildRequires: pkgconfig(libcrypto) >= 1.0.2g
|
||||||
BuildRequires: pkgconfig(p11-kit-1)
|
BuildRequires: pkgconfig(p11-kit-1)
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
@ -39,6 +43,8 @@ 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)
|
||||||
|
BuildRequires: python-rpm-generators
|
||||||
|
%{?python_enable_dependency_generator}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to
|
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to
|
||||||
@ -66,6 +72,7 @@ Provides: libtpm2_pkcs11-devel = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Headers and libraries to build software against %{name}.
|
Headers and libraries to build software against %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup
|
||||||
|
|
||||||
@ -73,22 +80,30 @@ Headers and libraries to build software against %{name}.
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
%make_build
|
%make_build
|
||||||
|
cd tools
|
||||||
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/tpm2_pkcs11
|
mkdir -p %{buildroot}%{_sysconfdir}/tpm2_pkcs11
|
||||||
|
cd tools
|
||||||
|
%python_install
|
||||||
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%post -n libtpm2_pkcs11-0 -p /sbin/ldconfig
|
%post -n libtpm2_pkcs11-0 -p /sbin/ldconfig
|
||||||
%postun -n libtpm2_pkcs11-0 -p /sbin/ldconfig
|
%postun -n libtpm2_pkcs11-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md docs/*
|
%doc docs/*
|
||||||
%dir %{_datadir}/p11-kit/modules
|
%dir %{_datadir}/p11-kit/modules
|
||||||
%dir %{_datadir}/p11-kit
|
%dir %{_datadir}/p11-kit
|
||||||
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
||||||
%{_sysconfdir}/tpm2_pkcs11
|
%{_sysconfdir}/tpm2_pkcs11
|
||||||
|
%{_bindir}/tpm2_ptool
|
||||||
|
%{python_sitelib}/tpm2_pkcs11
|
||||||
|
%{python_sitelib}/*.egg-info
|
||||||
|
|
||||||
%files -n libtpm2_pkcs11-0
|
%files -n libtpm2_pkcs11-0
|
||||||
%dir %{_libdir}/pkcs11
|
%dir %{_libdir}/pkcs11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user