3 %bcond_with libgcrypt # libgcrypt crypto instead of openssl
5 Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2)
6 Summary(pl.UTF-8): Mająca otwarte źródła implementacja TCG TPM2 Software Stack (TSS2)
12 #Source0Download: https://github.com/tpm2-software/tpm2-tss/releases
13 Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 269e8122e0588d56092abe3f2e38c8b9
15 URL: https://github.com/tpm2-software/tpm2-tss
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 BuildRequires: curl-devel
19 BuildRequires: doxygen
20 BuildRequires: json-c-devel
21 %{?with_libgcrypt:BuildRequires: libgcrypt-devel >= 1.6.0}
22 BuildRequires: libtool >= 2:2
23 %{!?with_libgcrypt:BuildRequires: openssl-devel}
24 BuildRequires: pkgconfig
25 %{?with_libgcrypt:Requires: libgcrypt >= 1.6.0}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Implementation of the Trusted Computing Group's (TCG) TPM2 Software
32 %description -l pl.UTF-8
33 Implementacja specyfikacji TPM2 Software Stack (TSS), stworzonej przez
34 Trusted Computing Group (TCG).
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
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
46 Requires: json-c-devel
47 %{?with_libgcrypt:Requires: libgcrypt-devel >= 1.6.0}
48 %{!?with_libgcrypt:Requires: openssl-devel}
51 Header files for implementation of the Trusted Computing Group's (TCG)
52 TPM2 Software Stack (TSS).
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe implementacji Trusted Computing Group (TCG) TPM2
58 %description devel -l ru.UTF-8
59 Хедеры необходимые для программирования с tpm2-tss.
61 %description devel -l uk.UTF-8
62 Хедери необхідні для програмування з tpm2-tss.
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
72 Requires: %{name}-devel = %{version}-%{release}
75 Implementation of the Trusted Computing Group's (TCG) TPM2 Software
78 This package contains the static library used for development.
80 %description static -l pl.UTF-8
81 Biblioteka statyczna tpm2-tss.
83 %description static -l ru.UTF-8
84 Статическая библиотека, необходимая для программирования с tpm2-tss.
86 %description static -l uk.UTF-8
87 Статична бібліотека, необхідна для програмування з tpm2-tss.
99 --disable-silent-rules \
100 --with-tmpfilesdir=%{systemdtmpfilesdir} \
101 --with-udevrulesdir=/lib/udev/rules.d \
102 --with-udevrulesprefix=60-
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
112 # obsoleted by pkg-config
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtss2*.la
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc AUTHORS CHANGELOG.md CONTRIBUTING.md LICENSE MAINTAINERS README.md
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.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libtss2-fapi.so.0
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.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libtss2-sys.so.0
134 %attr(755,root,root) %{_libdir}/libtss2-tcti-device.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-device.so.0
136 %attr(755,root,root) %{_libdir}/libtss2-tcti-mssim.so.*.*.*
137 %attr(755,root,root) %ghost %{_libdir}/libtss2-tcti-mssim.so.0
138 %attr(755,root,root) %{_libdir}/libtss2-tctildr.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libtss2-tctildr.so.0
140 %dir %{_sysconfdir}/tpm2-tss
141 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tpm2-tss/fapi-config.json
142 %dir %{_sysconfdir}/tpm2-tss/fapi-profiles
143 %{_sysconfdir}/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json
144 %{_sysconfdir}/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json
145 %{systemdtmpfilesdir}/tpm2-tss-fapi.conf
146 /lib/udev/rules.d/60-tpm-udev.rules
147 # what subsystem handles this?
148 #/etc/sysusers.d/tpm2-tss.conf
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libtss2-esys.so
153 %attr(755,root,root) %{_libdir}/libtss2-fapi.so
154 %attr(755,root,root) %{_libdir}/libtss2-mu.so
155 %attr(755,root,root) %{_libdir}/libtss2-rc.so
156 %attr(755,root,root) %{_libdir}/libtss2-sys.so
157 %attr(755,root,root) %{_libdir}/libtss2-tcti-device.so
158 %attr(755,root,root) %{_libdir}/libtss2-tcti-mssim.so
159 %attr(755,root,root) %{_libdir}/libtss2-tctildr.so
161 %{_pkgconfigdir}/tss2-esys.pc
162 %{_pkgconfigdir}/tss2-fapi.pc
163 %{_pkgconfigdir}/tss2-mu.pc
164 %{_pkgconfigdir}/tss2-rc.pc
165 %{_pkgconfigdir}/tss2-sys.pc
166 %{_pkgconfigdir}/tss2-tcti-device.pc
167 %{_pkgconfigdir}/tss2-tcti-mssim.pc
168 %{_pkgconfigdir}/tss2-tctildr.pc
169 %{_mandir}/man3/ESYS_*.3*
170 %{_mandir}/man3/Esys_*.3*
171 %{_mandir}/man3/FapiTestgroup.3*
172 %{_mandir}/man3/Fapi_*.3*
173 %{_mandir}/man3/Tss2_*.3*
174 %{_mandir}/man7/tss2-tcti-device.7*
175 %{_mandir}/man7/tss2-tcti-mssim.7*
176 %{_mandir}/man7/tss2-tctildr.7*
179 %defattr(644,root,root,755)
180 %{_libdir}/libtss2-esys.a
181 %{_libdir}/libtss2-fapi.a
182 %{_libdir}/libtss2-mu.a
183 %{_libdir}/libtss2-rc.a
184 %{_libdir}/libtss2-sys.a
185 %{_libdir}/libtss2-tcti-device.a
186 %{_libdir}/libtss2-tcti-mssim.a
187 %{_libdir}/libtss2-tctildr.a