Репозитории ALT
Последнее обновление в Пт, 24 июля 2020, 14:09:54 +0000 | Пакетов: 24195
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Система/Настройка/Оборудование
Исходный пакет: tpm2-tss
Необработанный spec-файл

%define udevrules_prefix 60-
%define soname 0
%define _localstatedir /var
Name: tpm2-tss
Version: 2.4.1
Release: alt1
Summary: TPM2.0 Software Stack
# The entire source code is under BSD except implementation.h and tpmb.h which

# is under TCGL(Trusted Computing Group License).

License: BSD-2-Clause
Url: https://github.com/tpm2-software/tpm2-tss
Source0: %name-%version.tar
Source1: %name.watch
Group: System/Configuration/Hardware
BuildRequires: gcc-c++
BuildRequires: doxygen
BuildRequires: autoconf-archive
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: libsystemd-devel
BuildRequires: libgcrypt-devel
BuildRequires: openssl-devel
BuildRequires: libjson-c-devel
BuildRequires: libcurl-devel

%description
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
APIs for applications to access TPM module through kernel TPM drivers.

%package -n lib%name%soname
Summary: TPM2.0 Software Stack
Group: System/Configuration/Hardware
Requires: lib%name-common = %EVR

%description -n lib%name%soname
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
APIs for applications to access TPM module through kernel TPM drivers.

%package -n lib%name-common
Summary: Common files for TPM2.0 Software Stack
Group: System/Configuration/Hardware

%description -n lib%name-common
This package contains common files required to work witj libtpm2-tss.

%package -n lib%name-devel
Summary: Headers and libraries for building apps that use tpm2-tss
Group: Development/C
Requires: lib%name%soname = %EVR

%description -n lib%name-devel
This package contains headers and libraries required to build applications that
use tpm2-tss.

%prep
%setup

%build
./bootstrap
%autoreconf
# Use built-in tpm-udev.rules, with specified installation path and prefix.

%configure \
--disable-static \
--disable-silent-rules \
--with-udevrulesdir=%_udevrulesdir \
--with-udevrulesprefix=%udevrules_prefix \
--with-runstatedir=/run \
--with-sysusersdir=/lib/sysusers.d \
--with-tmpfilesdir=%_tmpfilesdir


%make_build

%install
%makeinstall_std
mkdir -p %buildroot%_sharedstatedir/%name/system/keystore

%pre -n lib%name-common
%_sbindir/groupadd -r -f tss >/dev/null 2>&1 ||:
%_sbindir/useradd -g tss -c 'TPM2 Software Stack User' \
-d /var/empty -s /dev/null -r -l -M tss >/dev/null 2>&1 ||:

%files -n lib%name%soname
%_libdir/*.so.*

%files -n lib%name-common
%doc README.md CHANGELOG.md LICENSE
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/*
%_udevrulesdir/%{udevrules_prefix}tpm-udev.rules
%_tmpfilesdir/*
/lib/sysusers.d/*
%attr(0775,tss,tss) %dir %_sharedstatedir/%name/system/keystore

%files -n lib%name-devel
%_includedir/tss2
%_libdir/*.so
%_pkgconfigdir/*
%_man3dir/*
%_man7dir/*

%changelog
* Wed Jul 15 2020 Anton Farygin <rider at altlinux.ru> 2.4.1-alt1
- 2.4.1

* Wed Mar 25 2020 Alexey Shabalin <shaba at altlinux.org> 2.4.0-alt1
- 2.4.0

* Thu Mar 12 2020 Anton Farygin <rider at altlinux.ru> 2.3.3-alt1
- 2.3.3

* Fri Jan 10 2020 Anton Farygin <rider at altlinux.ru> 2.3.2-alt1
- 2.3.2

* Tue Nov 05 2019 Alexey Shabalin <shaba at altlinux.org> 2.3.1-alt2
- add tss user and group (ALT #37279)

* Mon Sep 16 2019 Anton Farygin <rider at altlinux.ru> 2.3.1-alt1
- first build for ALT, based on specfile from Fedora

 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT