]>
Commit | Line | Data |
---|---|---|
5c0621cb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with libgcrypt # libgcrypt crypto instead of openssl | |
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 |
5c0621cb | 8 | Version: 2.4.0 |
16e3b58d AM |
9 | Release: 1 |
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 |
5c0621cb | 14 | # Source0-md5: 269e8122e0588d56092abe3f2e38c8b9 |
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 JB |
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} | |
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 | |
47 | %{?with_libgcrypt:Requires: libgcrypt-devel >= 1.6.0} | |
48 | %{!?with_libgcrypt:Requires: openssl-devel} | |
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 | |
91 | ||
92 | %build | |
5c0621cb JB |
93 | %{__libtoolize} |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
16e3b58d AM |
98 | %configure \ |
99 | --disable-silent-rules \ | |
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) | |
5c0621cb JB |
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 | |
16e3b58d | 146 | /lib/udev/rules.d/60-tpm-udev.rules |
5c0621cb JB |
147 | # what subsystem handles this? |
148 | #/etc/sysusers.d/tpm2-tss.conf | |
16e3b58d AM |
149 | |
150 | %files devel | |
151 | %defattr(644,root,root,755) | |
5c0621cb JB |
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 | |
16e3b58d | 160 | %{_includedir}/tss2 |
5c0621cb JB |
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* | |
16e3b58d AM |
177 | |
178 | %files static | |
179 | %defattr(644,root,root,755) | |
5c0621cb JB |
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 |