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