]>
Commit | Line | Data |
---|---|---|
5c0621cb JB |
1 | # |
2 | # Conditional build: | |
a73a4e92 | 3 | %bcond_with mbedtls # mbedTLS crypto instead of OpenSSL |
5c0621cb | 4 | |
16e3b58d | 5 | Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2) |
5c0621cb | 6 | Summary(pl.UTF-8): Mająca otwarte źródła implementacja TCG TPM2 Software Stack (TSS2) |
16e3b58d | 7 | Name: tpm2-tss |
a7003d70 | 8 | Version: 3.1.0 |
9c57923c | 9 | Release: 1 |
16e3b58d AM |
10 | License: BSD |
11 | Group: Libraries | |
5c0621cb | 12 | #Source0Download: https://github.com/tpm2-software/tpm2-tss/releases |
16e3b58d | 13 | Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz |
a7003d70 | 14 | # Source0-md5: 4d04cf52fff4ee061bb3f7b4f4ea03b7 |
9f95f1fd | 15 | Patch0: %{name}-install.patch |
16e3b58d | 16 | URL: https://github.com/tpm2-software/tpm2-tss |
5c0621cb JB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: automake | |
19 | BuildRequires: curl-devel | |
16e3b58d | 20 | BuildRequires: doxygen |
5c0621cb | 21 | BuildRequires: json-c-devel |
5c0621cb | 22 | BuildRequires: libtool >= 2:2 |
a73a4e92 JB |
23 | %{?with_mbedtls:BuildRequires: mbedtls-devel} |
24 | %{!?with_mbedtls:BuildRequires: openssl-devel >= 0.9.8} | |
5c0621cb | 25 | BuildRequires: pkgconfig |
16e3b58d AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Implementation of the Trusted Computing Group's (TCG) TPM2 Software | |
30 | Stack (TSS). | |
31 | ||
5c0621cb JB |
32 | %description -l pl.UTF-8 |
33 | Implementacja specyfikacji TPM2 Software Stack (TSS), stworzonej przez | |
34 | Trusted Computing Group (TCG). | |
35 | ||
16e3b58d | 36 | %package devel |
5c0621cb JB |
37 | Summary: Header files for tpm2-tss |
38 | Summary(es.UTF-8): Arquivos de cabeçalho para tpm2-tss | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe do tpm2-tss | |
40 | Summary(pt_BR.UTF-8): Arquivos de inclusão para a tpm2-tss | |
41 | Summary(ru.UTF-8): Хедеры для tpm2-tss | |
42 | Summary(uk.UTF-8): Хедери для tpm2-tss | |
16e3b58d | 43 | Group: Development/Libraries |
5c0621cb JB |
44 | Requires: %{name} = %{version}-%{release} |
45 | Requires: curl-devel | |
46 | Requires: json-c-devel | |
a73a4e92 JB |
47 | %{?with_mbedtls:Requires: mbedtls-devel >= 1.6.0} |
48 | %{!?with_mbedtls:Requires: openssl-devel >= 0.9.8} | |
16e3b58d AM |
49 | |
50 | %description devel | |
5c0621cb JB |
51 | Header files for implementation of the Trusted Computing Group's (TCG) |
52 | TPM2 Software Stack (TSS). | |
16e3b58d AM |
53 | |
54 | %description devel -l pl.UTF-8 | |
5c0621cb JB |
55 | Pliki nagłówkowe implementacji Trusted Computing Group (TCG) TPM2 |
56 | Software Stack (TSS). | |
16e3b58d AM |
57 | |
58 | %description devel -l ru.UTF-8 | |
5c0621cb | 59 | Хедеры необходимые для программирования с tpm2-tss. |
16e3b58d AM |
60 | |
61 | %description devel -l uk.UTF-8 | |
5c0621cb | 62 | Хедери необхідні для програмування з tpm2-tss. |
16e3b58d AM |
63 | |
64 | %package static | |
65 | Summary: Static tpm2-tss library | |
66 | Summary(es.UTF-8): Biblioteca estática usada no desenvolvimento de aplicativos com tpm2-tss | |
67 | Summary(pl.UTF-8): Biblioteka statyczna tpm2-tss | |
68 | Summary(pt_BR.UTF-8): Biblioteca estática de desenvolvimento | |
69 | Summary(ru.UTF-8): Статическая библиотека tpm2-tss | |
70 | Summary(uk.UTF-8): Статична бібліотека tpm2-tss | |
71 | Group: Development/Libraries | |
5c0621cb | 72 | Requires: %{name}-devel = %{version}-%{release} |
16e3b58d AM |
73 | |
74 | %description static | |
75 | Implementation of the Trusted Computing Group's (TCG) TPM2 Software | |
76 | Stack (TSS). | |
77 | ||
78 | This package contains the static library used for development. | |
79 | ||
16e3b58d AM |
80 | %description static -l pl.UTF-8 |
81 | Biblioteka statyczna tpm2-tss. | |
82 | ||
83 | %description static -l ru.UTF-8 | |
84 | Статическая библиотека, необходимая для программирования с tpm2-tss. | |
85 | ||
86 | %description static -l uk.UTF-8 | |
87 | Статична бібліотека, необхідна для програмування з tpm2-tss. | |
88 | ||
89 | %prep | |
90 | %setup -q | |
9f95f1fd | 91 | %patch0 -p1 |
16e3b58d AM |
92 | |
93 | %build | |
5c0621cb JB |
94 | %{__libtoolize} |
95 | %{__aclocal} -I m4 | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
16e3b58d AM |
99 | %configure \ |
100 | --disable-silent-rules \ | |
a73a4e92 | 101 | %{?with_mbedtls:--with-crypto=mbed} \ |
5c0621cb | 102 | --with-tmpfilesdir=%{systemdtmpfilesdir} \ |
16e3b58d AM |
103 | --with-udevrulesdir=/lib/udev/rules.d \ |
104 | --with-udevrulesprefix=60- | |
105 | ||
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
5c0621cb JB |
114 | # obsoleted by pkg-config |
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtss2*.la | |
116 | ||
16e3b58d AM |
117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
9c57923c | 125 | %doc AUTHORS CHANGELOG.md LICENSE MAINTAINERS README.md |
5c0621cb JB |
126 | %attr(755,root,root) %{_libdir}/libtss2-esys.so.*.*.* |
127 | %attr(755,root,root) %ghost %{_libdir}/libtss2-esys.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libtss2-fapi.so.*.*.* | |
a73a4e92 | 129 | %attr(755,root,root) %ghost %{_libdir}/libtss2-fapi.so.1 |
5c0621cb JB |
130 | %attr(755,root,root) %{_libdir}/libtss2-mu.so.*.*.* |
131 | %attr(755,root,root) %ghost %{_libdir}/libtss2-mu.so.0 | |
132 | %attr(755,root,root) %{_libdir}/libtss2-rc.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libtss2-rc.so.0 | |
134 | %attr(755,root,root) %{_libdir}/libtss2-sys.so.*.*.* | |
a73a4e92 JB |
135 | %attr(755,root,root) %ghost %{_libdir}/libtss2-sys.so.1 |
136 | %attr(755,root,root) %{_libdir}/libtss2-tcti-cmd.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-cmd.so.0 | |
5c0621cb JB |
138 | %attr(755,root,root) %{_libdir}/libtss2-tcti-device.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-device.so.0 | |
140 | %attr(755,root,root) %{_libdir}/libtss2-tcti-mssim.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-mssim.so.0 | |
a7003d70 JB |
142 | %attr(755,root,root) %{_libdir}/libtss2-tcti-pcap.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-pcap.so.0 | |
a73a4e92 JB |
144 | %attr(755,root,root) %{_libdir}/libtss2-tcti-swtpm.so.*.*.* |
145 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-swtpm.so.0 | |
5c0621cb JB |
146 | %attr(755,root,root) %{_libdir}/libtss2-tctildr.so.*.*.* |
147 | %attr(755,root,root) %ghost %{_libdir}/libtss2-tctildr.so.0 | |
148 | %dir %{_sysconfdir}/tpm2-tss | |
149 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tpm2-tss/fapi-config.json | |
150 | %dir %{_sysconfdir}/tpm2-tss/fapi-profiles | |
151 | %{_sysconfdir}/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json | |
152 | %{_sysconfdir}/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json | |
153 | %{systemdtmpfilesdir}/tpm2-tss-fapi.conf | |
16e3b58d | 154 | /lib/udev/rules.d/60-tpm-udev.rules |
5c0621cb JB |
155 | # what subsystem handles this? |
156 | #/etc/sysusers.d/tpm2-tss.conf | |
9c57923c JB |
157 | %{_mandir}/man5/fapi-config.5* |
158 | %{_mandir}/man5/fapi-profile.5* | |
16e3b58d AM |
159 | |
160 | %files devel | |
161 | %defattr(644,root,root,755) | |
5c0621cb JB |
162 | %attr(755,root,root) %{_libdir}/libtss2-esys.so |
163 | %attr(755,root,root) %{_libdir}/libtss2-fapi.so | |
164 | %attr(755,root,root) %{_libdir}/libtss2-mu.so | |
165 | %attr(755,root,root) %{_libdir}/libtss2-rc.so | |
166 | %attr(755,root,root) %{_libdir}/libtss2-sys.so | |
a73a4e92 | 167 | %attr(755,root,root) %{_libdir}/libtss2-tcti-cmd.so |
5c0621cb JB |
168 | %attr(755,root,root) %{_libdir}/libtss2-tcti-device.so |
169 | %attr(755,root,root) %{_libdir}/libtss2-tcti-mssim.so | |
a7003d70 | 170 | %attr(755,root,root) %{_libdir}/libtss2-tcti-pcap.so |
a73a4e92 | 171 | %attr(755,root,root) %{_libdir}/libtss2-tcti-swtpm.so |
5c0621cb | 172 | %attr(755,root,root) %{_libdir}/libtss2-tctildr.so |
16e3b58d | 173 | %{_includedir}/tss2 |
5c0621cb JB |
174 | %{_pkgconfigdir}/tss2-esys.pc |
175 | %{_pkgconfigdir}/tss2-fapi.pc | |
176 | %{_pkgconfigdir}/tss2-mu.pc | |
177 | %{_pkgconfigdir}/tss2-rc.pc | |
178 | %{_pkgconfigdir}/tss2-sys.pc | |
a73a4e92 | 179 | %{_pkgconfigdir}/tss2-tcti-cmd.pc |
5c0621cb JB |
180 | %{_pkgconfigdir}/tss2-tcti-device.pc |
181 | %{_pkgconfigdir}/tss2-tcti-mssim.pc | |
a7003d70 | 182 | %{_pkgconfigdir}/tss2-tcti-pcap.pc |
a73a4e92 | 183 | %{_pkgconfigdir}/tss2-tcti-swtpm.pc |
5c0621cb JB |
184 | %{_pkgconfigdir}/tss2-tctildr.pc |
185 | %{_mandir}/man3/ESYS_*.3* | |
186 | %{_mandir}/man3/Esys_*.3* | |
187 | %{_mandir}/man3/FapiTestgroup.3* | |
188 | %{_mandir}/man3/Fapi_*.3* | |
189 | %{_mandir}/man3/Tss2_*.3* | |
a73a4e92 | 190 | %{_mandir}/man7/tss2-tcti-cmd.7* |
5c0621cb JB |
191 | %{_mandir}/man7/tss2-tcti-device.7* |
192 | %{_mandir}/man7/tss2-tcti-mssim.7* | |
a73a4e92 | 193 | %{_mandir}/man7/tss2-tcti-swtpm.7* |
5c0621cb | 194 | %{_mandir}/man7/tss2-tctildr.7* |
16e3b58d AM |
195 | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
5c0621cb JB |
198 | %{_libdir}/libtss2-esys.a |
199 | %{_libdir}/libtss2-fapi.a | |
200 | %{_libdir}/libtss2-mu.a | |
201 | %{_libdir}/libtss2-rc.a | |
202 | %{_libdir}/libtss2-sys.a | |
a73a4e92 | 203 | %{_libdir}/libtss2-tcti-cmd.a |
5c0621cb JB |
204 | %{_libdir}/libtss2-tcti-device.a |
205 | %{_libdir}/libtss2-tcti-mssim.a | |
a7003d70 | 206 | %{_libdir}/libtss2-tcti-pcap.a |
a73a4e92 | 207 | %{_libdir}/libtss2-tcti-swtpm.a |
5c0621cb | 208 | %{_libdir}/libtss2-tctildr.a |