]>
Commit | Line | Data |
---|---|---|
2d575351 JB |
1 | Summary: Management tools for the TPM hardware |
2 | Summary(pl.UTF-8): Narzędzia zarządzające sprzętem TPM | |
3 | Name: tpm-tools | |
f84ef361 JB |
4 | Version: 1.3.9.2 |
5 | Release: 1 | |
a5ddd477 | 6 | License: CPL v1.0+ |
2d575351 | 7 | Group: Applications/System |
f84ef361 JB |
8 | Source0: https://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 44091f5497996c6fd674c73b43f190ab | |
b7843a2f | 10 | Patch0: %{name}-link.patch |
b772a6cf | 11 | Patch1: %{name}-x32.patch |
bbdb5be0 | 12 | Patch4: 0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch |
f84ef361 | 13 | URL: https://trousers.sourceforge.net/ |
b7843a2f JB |
14 | BuildRequires: autoconf >= 2.12 |
15 | BuildRequires: automake >= 1.6 | |
6bbb2ec1 | 16 | BuildRequires: gettext-tools >= 0.15 |
b7843a2f | 17 | BuildRequires: libtool |
2d575351 JB |
18 | BuildRequires: opencryptoki-devel >= 2.2.4 |
19 | BuildRequires: openssl-devel | |
6e7f171a JB |
20 | BuildRequires: trousers-devel >= 0.3.9 |
21 | Requires: trousers-libs >= 0.3.9 | |
2d575351 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | tpm-tools is a group of tools to manage and utilize the Trusted | |
26 | Computing Group's TPM hardware. TPM hardware can create, store and use | |
27 | RSA keys securely (without ever being exposed in memory), verify a | |
28 | platform's software state using cryptographic hashes and more. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | tpm-tools to grupa narzędzi do zarządzania i wykorzystywania sprzętu | |
32 | TPM opracowanego przez Trusted Computing Group. Sprzęt TPM potrafi | |
33 | tworzyć, przechowywać i wykorzystywać klucze RSA w sposób bezpieczny | |
34 | (bez ujawniania ich kiedykolwiek w pamięci), weryfikować stan | |
35 | oprogramowania przy użyciu skrótów kryptograficznych itp. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for tpm_unseal library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tpm_unseal | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
6e7f171a | 42 | Requires: trousers-devel >= 0.3.9 |
f84ef361 | 43 | Obsoletes: tpm-tools-static < 1.3.5 |
2d575351 JB |
44 | |
45 | %description devel | |
46 | Header files for tpm_unseal library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki tpm_unseal. | |
50 | ||
2d575351 JB |
51 | %package pkcs11 |
52 | Summary: Data management tools that use a PKCS#11 interface to the TPM | |
53 | Summary(pl.UTF-8): Narzędzia do zarządzania danymi wykorzystujace interfejs PKCS#11 do TPM | |
54 | Group: Applications/System | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: opencryptoki >= 2.2.4 | |
57 | ||
58 | %description pkcs11 | |
59 | tpm-tools-pkcs11 is a group of tools that uses the TPM PKCS#11 token | |
60 | developed in the opencryptoki project. All data contained in the | |
61 | PKCS#11 data store is protected by the TPM (keys, certificates, etc.). | |
62 | You can import keys and certificates, list out the objects in the data | |
63 | store, and protect data. | |
64 | ||
65 | %description pkcs11 -l pl.UTF-8 | |
66 | tpm-tools-pkcs11 to grupa narzędzi wykorzystujących token TPM PKCS#11 | |
67 | opracowany w ramach projektu opencryptoki. Wszystkie dane zawarte w | |
68 | kontenerze PKCS#11 są chronione przez TPM (klucze, certyfikaty itp.). | |
69 | Narzędzia pozwalają importować klucze i certyfikaty, wypisywać listę | |
70 | obiektów w kontenerze i chronić dane. | |
71 | ||
72 | %prep | |
f84ef361 | 73 | %setup -q |
b7843a2f | 74 | %patch0 -p1 |
b772a6cf | 75 | %patch1 -p1 |
bbdb5be0 | 76 | %patch4 -p1 |
2d575351 | 77 | |
f84ef361 JB |
78 | # prepare for gettextize |
79 | %{__sed} -i -e '/po\/Makefile\.in/d' configure.ac | |
80 | mkdir -p m4 | |
81 | touch m4/Makefile.am | |
82 | ||
2d575351 | 83 | %build |
b7843a2f JB |
84 | %{__gettextize} |
85 | %{__libtoolize} | |
86 | %{__aclocal} | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
2d575351 | 90 | %configure |
a5ddd477 | 91 | |
2d575351 JB |
92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc LICENSE README | |
109 | %attr(755,root,root) %{_bindir}/tpm_* | |
110 | %attr(755,root,root) %{_sbindir}/tpm_* | |
111 | %attr(755,root,root) %{_libdir}/libtpm_unseal.so.*.*.* | |
a5ddd477 | 112 | %attr(755,root,root) %ghost %{_libdir}/libtpm_unseal.so.1 |
2d575351 JB |
113 | %{_mandir}/man1/tpm_*.1* |
114 | %{_mandir}/man8/tpm_*.8* | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libtpm_unseal.so | |
119 | %{_libdir}/libtpm_unseal.la | |
120 | %{_includedir}/tpm_tools | |
121 | %{_mandir}/man3/tpmUnseal*.3* | |
122 | ||
2d575351 JB |
123 | %files pkcs11 |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_bindir}/tpmtoken_* | |
126 | %{_mandir}/man1/tpmtoken_*.1* |