]> git.pld-linux.org Git - packages/ibmswtpm2.git/blob - ibmswtpm2.spec
1bcd9c64f34947650d1a6fd51123689b818cde7d
[packages/ibmswtpm2.git] / ibmswtpm2.spec
1 Summary:        IBM's Software TPM 2.0
2 Summary(pl.UTF-8):      Programowy TPM 2.0 stworzony przez IBM
3 Name:           ibmswtpm2
4 Version:        1661
5 Release:        2
6 License:        BSD
7 Group:          Development/Tools
8 Source0:        https://downloads.sourceforge.net/ibmswtpm2/ibmtpm%{version}.tar.gz
9 # Source0-md5:  df691c9c548023c1126742ff9213c006
10 Patch0:         %{name}-openssl3.patch
11 URL:            https://sourceforge.net/projects/ibmswtpm2/
12 BuildRequires:  openssl-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 This project is an implementation of the TCG TPM 2.0 specification. It
17 is based on the TPM specification Parts 3 and 4 source code donated by
18 Microsoft, with additional files to complete the implementation.
19
20 %description -l pl.UTF-8
21 Ten projekt jest implementacją specyfikacji TCG TPM 2.0. Jest oparty
22 na kodzie źródłowym części 3 i 4 specyfikacji TPM udostępnionym przez
23 Microsoft z dodatkowymi plikami dopełniającymi implementację.
24
25 %prep
26 %setup -q -c
27 %patch0 -p1
28
29 %build
30 %{__make} -C src \
31         CC="%{__cc}" \
32         CCFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Werror -Wsign-compare -Wno-uninitialized -Wno-error=deprecated-declarations -DTPM_POSIX -D_POSIX_ -DTPM_NUVOTON -I. -c" \
33         LNFLAGS="%{rpmldflags} %{rpmcflags} -lcrypto -lpthread -lrt"
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 %{__make} -C src install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc LICENSE README.md ibmtpm.doc
47 %attr(755,root,root) %{_bindir}/tpm_server
This page took 0.037966 seconds and 2 git commands to generate.