commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2020-10-26 16:13:35 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.3463 (New) Package is "ibmtss" Mon Oct 26 16:13:35 2020 rev:16 rq:839043 version:1.5.0 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2020-08-20 22:33:19.392107447 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.3463/ibmtss.changes 2020-10-26 16:14:51.174856474 +0100 @@ -1,0 +2,8 @@ +Thu Oct 1 19:24:56 UTC 2020 - Pedro Monreal Gonzalez + +- Regression fix: + * utils: fix ABI break caused by additional argument to -rsa + * https://sourceforge.net/p/ibmtpm20tss/mailman/message/37119441/ +- Add ibmtss-fix-dsa-regression.patch + +--- New: ibmtss-fix-dsa-regression.patch Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.QnfBei/_old 2020-10-26 16:14:52.346857553 +0100 +++ /var/tmp/diff_new_pack.QnfBei/_new 2020-10-26 16:14:52.346857553 +0100 @@ -33,6 +33,7 @@ Source1:90-tpm-ibmtss.rules Patch1: ibmtss-configure.ac-Do-not-disable-optimization-for-debug-b.patch Patch2: ibmtss-certifyx509-Fix-uninitialized-variable.patch +Patch3: ibmtss-fix-dsa-regression.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: ibmswtpm2 ++ ibmtss-fix-dsa-regression.patch ++ This can be fixed by checking first to see if -rsa appears on its own (either as the last option or followed by another option beginning with '-') and if it does assuming the default value of 2048 for keyBits. If a non options follows, parse it as a number which keeps backwards compatibility with versions before 1.5 while still allowing expanded rsa key sizes to be specified. Signed-off-by: James Bottomley --- utils/certifyx509.c | 8 ++- utils/create.c | 8 ++- utils/createek.c| 46 +++-- utils/createekcert.c| 42 + utils/createloaded.c| 8 ++- utils/createprimary.c | 8 ++- utils/objecttemplates.c | 2 +- 7 files changed, 49 insertions(+), 73 deletions(-) diff --git a/utils/certifyx509.c b/utils/certifyx509.c index 2b763eb..3eabc45 100644 --- a/utils/certifyx509.c +++ b/utils/certifyx509.c @@ -233,14 +233,10 @@ int main(int argc, char *argv[]) else if (strcmp(argv[i], "-rsa") == 0) { scheme = TPM_ALG_RSASSA; algCount++; - i++; - if (i < argc) { + if (i + 1 < argc && argv[i+1][0] != '-') { + i++; sscanf(argv[i],"%hu", &keyBits); } - else { - printf("Missing keysize parameter for -rsa\n"); - printUsage(); - } } else if (strcmp(argv[i], "-ecc") == 0) { scheme = TPM_ALG_ECDSA; diff --git a/utils/create.c b/utils/create.c index f1be83d..a707f2f 100644 --- a/utils/create.c +++ b/utils/create.c @@ -173,14 +173,10 @@ int main(int argc, char *argv[]) } else if (strcmp(argv[i], "-rsa") == 0) { algPublic = TPM_ALG_RSA; - i++; - if (i < argc) { + if (i + 1 < argc && argv[i+1][0] != '-') { + i++; sscanf(argv[i],"%hu", &keyBits); } - else { - printf("Missing parameter for -rsa\n"); - printUsage(); - } } else if (strcmp(argv[i], "-ecc") == 0) { algPublic = TPM_ALG_ECC; diff --git a/utils/createek.c b/utils/createek.c index 602d9ce..f561f78 100644 --- a/utils/createek.c +++ b/utils/createek.c @@ -196,33 +196,29 @@ int main(int argc, char *argv[]) else if (strcmp(argv[i], "-rsa") == 0) { algPublic = TPM_ALG_RSA; algCount++; - i++; - if (i < argc) { + if (i + 1 < argc && argv[i+1][0] != '-') { + i++; sscanf(argv[i],"%hu", &keyBits); - switch (keyBits) { - case 2048: - if (range == LowRange) { - ekCertIndex = EK_CERT_RSA_INDEX; - ekNonceIndex = EK_NONCE_RSA_INDEX; - ekTemplateIndex = EK_TEMPLATE_RSA_INDEX; - } - else { /* high range */ - ekCertIndex = EK_CERT_RSA_2048_INDEX_H1; - } - break; - case 3072: - ekCertIndex = EK_CERT_RSA_3072_INDEX_H6; - break; - case 4096: - ek
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2020-08-20 22:33:03 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.3399 (New) Package is "ibmtss" Thu Aug 20 22:33:03 2020 rev:15 rq:828133 version:1.5.0 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2020-03-27 21:57:24.750796769 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.3399/ibmtss.changes 2020-08-20 22:33:19.392107447 +0200 @@ -1,0 +2,9 @@ +Mon Aug 17 14:38:12 UTC 2020 - Michal Suchanek + +- Update to upstream version 1.5.0 (jsc#SLE-13828). +- Fix build warning due to -O0 + + ibmtss-configure.ac-Do-not-disable-optimization-for-debug-b.patch +- Fix uninitialized variable warning + + ibmtss-certifyx509-Fix-uninitialized-variable.patch + +--- Old: ibmtss1.3.0.tar.gz New: ibmtss-certifyx509-Fix-uninitialized-variable.patch ibmtss-configure.ac-Do-not-disable-optimization-for-debug-b.patch ibmtss1.5.0.tar.gz Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.ZuNrrb/_old 2020-08-20 22:33:20.636108029 +0200 +++ /var/tmp/diff_new_pack.ZuNrrb/_new 2020-08-20 22:33:20.640108030 +0200 @@ -18,12 +18,12 @@ # %define libversion 1 -%define libversion_full 1.3.0 +%define libversion_full 1.5.0 %define libname libibmtss %define libpkgname %{libname}%{libversion} Name: ibmtss -Version:1.3.0 +Version:1.5.0 Release:0 Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause @@ -31,6 +31,8 @@ URL:https://sourceforge.net/projects/ibmtpm20tss Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz Source1:90-tpm-ibmtss.rules +Patch1: ibmtss-configure.ac-Do-not-disable-optimization-for-debug-b.patch +Patch2: ibmtss-certifyx509-Fix-uninitialized-variable.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: ibmswtpm2 @@ -73,6 +75,7 @@ %prep %setup -q -c +%autopatch -p1 %build autoreconf -i ++ ibmtss-certifyx509-Fix-uninitialized-variable.patch ++ --- a/utils/certifyx509.c 2020-05-14 20:44:20.0 +0200 +++ b/utils/certifyx509.c 2020-08-17 18:36:52.842956894 +0200 @@ -137,7 +137,7 @@ TPMI_DH_OBJECT objectHandle = 0; TPMI_DH_OBJECT signHandle = 0; unsigned int algCount = 0; -TPMI_ALG_SIG_SCHEMEscheme; +TPMI_ALG_SIG_SCHEMEscheme = TPM_ALG_ERROR; TPMI_RSA_KEY_BITS keyBits = 0; TPMI_ECC_CURVE curveID = 0; TPMI_ALG_HASH halg = TPM_ALG_SHA256; ++ ibmtss-configure.ac-Do-not-disable-optimization-for-debug-b.patch ++ >From 005064b673d937a305427eb9fa4d549f93f6090a Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Mon, 17 Aug 2020 18:21:51 +0200 Subject: [PATCH] configure.ac: Do not disable optimization for debug build. This conflicts with FORTIFY_SOURCE and generates completely different assembly for debug and procuction. Signed-off-by: Michal Suchanek --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,7 @@ AC_CHECK_FUNCS([gethostbyname memmove memset socket strerror strtoul]) # Replace autotools default optimization AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Build a TSS library used for debugging])) - AS_IF([test "$enable_debug" = "yes"], [CFLAGS="$USER_CFLAGS -g -ggdb -O0"]) + AS_IF([test "$enable_debug" = "yes"], [CFLAGS="$USER_CFLAGS -g -ggdb -Wextra -Werror"]) # Linux requires -DTPM_POSIX case $host_os in -- 2.26.2 ++ ibmtss1.3.0.tar.gz -> ibmtss1.5.0.tar.gz ++ 17578 lines of diff (skipped)
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2020-03-27 21:56:55 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.3160 (New) Package is "ibmtss" Fri Mar 27 21:56:55 2020 rev:14 rq:789048 version:1.3.0 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2020-02-10 21:53:12.894184075 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.3160/ibmtss.changes 2020-03-27 21:57:24.750796769 +0100 @@ -1,0 +2,14 @@ +Fri Mar 27 13:19:08 UTC 2020 - Dominique Leuenberger + +- Don't mess with Epoch: in the long run it can't but cause + problems. Upstreams that don't understand the meaning of version + numbers can't be helped with Epoch. Let's rely on the distro + features for dist-upgrade (that has no problem with a 'version + downgrade'. + +--- +Mon Mar 23 20:10:11 UTC 2020 - Michal Suchanek + +- Fix dependencies for epoch, remove useless define. + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.IueBm9/_old 2020-03-27 21:57:25.570797245 +0100 +++ /var/tmp/diff_new_pack.IueBm9/_new 2020-03-27 21:57:25.574797248 +0100 @@ -17,14 +17,12 @@ # -%define suite ibmtss %define libversion 1 %define libversion_full 1.3.0 %define libname libibmtss %define libpkgname %{libname}%{libversion} Name: ibmtss -Epoch: 1 Version:1.3.0 Release:0 Summary:IBM's TPM 2.0 TSS @@ -68,7 +66,7 @@ Summary:IBM's TPM 2.0 TSS headers Group: Development/Libraries/C and C++ Requires: %{libpkgname} = %{version} -Requires: %{suite} = %{version} +Requires: %{name} = %{version} %description devel Includes IBM's TPM 2.0 TSS C header files @@ -80,7 +78,7 @@ autoreconf -i %configure --enable-hwtpm --enable-debug --disable-static cd utils -%{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" +%{_libexecdir}/%{name}/tpm_server & tpm_server="$!" CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libdir}" %{?_smp_mflags} testfailed=0 TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=.libs ./reg.sh || testfailed=$? @@ -92,8 +90,8 @@ cd utils %make_install -mkdir -p %{buildroot}/%{_datadir}/%{suite} -cp -a policies certificates %{buildroot}/%{_datadir}/%{suite} +mkdir -p %{buildroot}/%{_datadir}/%{name} +cp -a policies certificates %{buildroot}/%{_datadir}/%{name} find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -name .cvsignore | xargs rm -v @@ -115,12 +113,12 @@ %files base %license LICENSE -%{_datadir}/%{suite} +%{_datadir}/%{name} %{_prefix}/lib/udev/rules.d/* %files devel %license LICENSE -%{_includedir}/%{suite} +%{_includedir}/%{name} %{_libdir}/%{libname}*.so %changelog
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2020-02-10 21:53:01 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.26092 (New) Package is "ibmtss" Mon Feb 10 21:53:01 2020 rev:13 rq:769087 version:1.3.0 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2019-08-27 15:26:24.596689163 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.26092/ibmtss.changes 2020-02-10 21:53:12.894184075 +0100 @@ -1,0 +2,7 @@ +Fri Jan 31 11:53:40 UTC 2020 - Michal Suchanek + +- Update to upstream version 1.3.0 +- copy tpm device permission handling udev rule from tpm2-0-tss +- depend on user(tss) (boo#1162360). + +--- Old: ibmtss1470.tar.gz New: 90-tpm-ibmtss.rules ibmtss1.3.0.tar.gz Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.1IAAYz/_old 2020-02-10 21:53:14.314184861 +0100 +++ /var/tmp/diff_new_pack.1IAAYz/_new 2020-02-10 21:53:14.326184867 +0100 @@ -1,7 +1,7 @@ # # spec file for package ibmtss # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,25 +18,26 @@ # %define suite ibmtss -%define libversion 0 -%define libversion_full 0.0.1 +%define libversion 1 +%define libversion_full 1.3.0 %define libname libibmtss %define libpkgname %{libname}%{libversion} Name: ibmtss -Version:1470 +Epoch: 1 +Version:1.3.0 Release:0 Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause Group: Productivity/Security URL:https://sourceforge.net/projects/ibmtpm20tss Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz +Source1:90-tpm-ibmtss.rules BuildRequires: autoconf BuildRequires: automake BuildRequires: ibmswtpm2 BuildRequires: libopenssl-devel BuildRequires: libtool -Recommends: %{name}-base = %{version} %description This is a user space TCG Software Stack (TSS) for TPM 2.0. It @@ -49,6 +50,7 @@ %package -n %{libpkgname} Summary:Shared library for IBM's TPM 2.0 TSS Group: System/Libraries +Recommends: %{name}-base = %{version} %description -n %{libpkgname} Shared library for IBM's TPM 2.0 TSS tools @@ -57,6 +59,7 @@ Summary:IBM's TPM 2.0 TSS shared files Group: Productivity/Security BuildArch: noarch +Requires(post): user(tss) %description base Includes IBM's TPM 2.0 TSS certificates and policy files. @@ -85,19 +88,18 @@ [ "$testfailed" -eq 0 ] %install +install -m 644 -D -t %{buildroot}%{_prefix}/lib/udev/rules.d/ %{SOURCE1} cd utils %make_install mkdir -p %{buildroot}/%{_datadir}/%{suite} cp -a policies certificates %{buildroot}/%{_datadir}/%{suite} -rm -f %{buildroot}/%{_libdir}/*.la +find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -name .cvsignore | xargs rm -v -for i in %{buildroot}/%{_mandir}/man1/tsstss*.1 ; do - mv -v $i $(echo $i | sed -e s,/tsstss,/tss,) -done - +%post base +%_bindir/udevadm trigger -s tpm -s tpmrm || : %post -n %{libpkgname} -p /sbin/ldconfig %postun -n %{libpkgname} -p /sbin/ldconfig @@ -114,6 +116,7 @@ %files base %license LICENSE %{_datadir}/%{suite} +%{_prefix}/lib/udev/rules.d/* %files devel %license LICENSE ++ 90-tpm-ibmtss.rules ++ # tpm devices can only be accessed by the tss user but the tss # group members can access tpmrm devices KERNEL=="tpm[0-9]*", MODE="0660", OWNER="tss" KERNEL=="tpmrm[0-9]*", MODE="0660", OWNER="tss", GROUP="tss" ++ ibmtss1470.tar.gz -> ibmtss1.3.0.tar.gz ++ 31400 lines of diff (skipped)
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2019-08-27 15:26:21 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.7948 (New) Package is "ibmtss" Tue Aug 27 15:26:21 2019 rev:12 rq:726413 version:1470 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2019-08-19 21:41:59.900283286 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.7948/ibmtss.changes 2019-08-27 15:26:24.596689163 +0200 @@ -1,0 +2,5 @@ +Sat Aug 24 04:36:04 UTC 2019 - Jan Engelhardt + +- Disable static libs (standard openSUSE behavior) + +--- @@ -20 +25 @@ -- Update to v1047 +- Update to v1047 (FATE#327307, jsc#SLE-6593, jsc#SLE-9179). Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.yjYYbo/_old 2019-08-27 15:26:25.568688673 +0200 +++ /var/tmp/diff_new_pack.yjYYbo/_new 2019-08-27 15:26:25.572688671 +0200 @@ -75,7 +75,7 @@ %build autoreconf -i -%configure --enable-hwtpm --enable-debug +%configure --enable-hwtpm --enable-debug --disable-static cd utils %{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libdir}" %{?_smp_mflags} @@ -118,7 +118,6 @@ %files devel %license LICENSE %{_includedir}/%{suite} -%{_libdir}/%{libname}*.a %{_libdir}/%{libname}*.so %changelog
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2019-08-19 21:41:21 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.22127 (New) Package is "ibmtss" Mon Aug 19 21:41:21 2019 rev:11 rq:724374 version:1470 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2019-08-13 20:45:07.627047539 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.22127/ibmtss.changes 2019-08-19 21:41:59.900283286 +0200 @@ -1,0 +2,6 @@ +Wed Aug 14 08:21:58 UTC 2019 - Michal Suchanek + +- Remove installed .cvsignore file +- Don't create already created directory + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.wVXfrJ/_old 2019-08-19 21:42:00.292283208 +0200 +++ /var/tmp/diff_new_pack.wVXfrJ/_new 2019-08-19 21:42:00.296283208 +0200 @@ -87,11 +87,12 @@ %install cd utils %make_install + mkdir -p %{buildroot}/%{_datadir}/%{suite} cp -a policies certificates %{buildroot}/%{_datadir}/%{suite} -mkdir -p %{buildroot}/%{_includedir}/%{suite} rm -f %{buildroot}/%{_libdir}/*.la +find %{buildroot} -name .cvsignore | xargs rm -v for i in %{buildroot}/%{_mandir}/man1/tsstss*.1 ; do mv -v $i $(echo $i | sed -e s,/tsstss,/tss,)
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2019-08-13 20:45:00 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.9556 (New) Package is "ibmtss" Tue Aug 13 20:45:00 2019 rev:10 rq:723095 version:1470 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2019-07-11 13:16:35.330801502 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.9556/ibmtss.changes 2019-08-13 20:45:07.627047539 +0200 @@ -1,0 +2,5 @@ +Fri Aug 9 15:52:02 UTC 2019 - Michal Suchanek + +- Don't install duplicate headers + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.7VhrCh/_old 2019-08-13 20:45:08.503047286 +0200 +++ /var/tmp/diff_new_pack.7VhrCh/_new 2019-08-13 20:45:08.507047285 +0200 @@ -90,7 +90,6 @@ mkdir -p %{buildroot}/%{_datadir}/%{suite} cp -a policies certificates %{buildroot}/%{_datadir}/%{suite} mkdir -p %{buildroot}/%{_includedir}/%{suite} -cp -a ibmtss *.h %{buildroot}/%{_includedir}/%{suite} rm -f %{buildroot}/%{_libdir}/*.la
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2019-07-11 13:16:35 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new.4615 (New) Package is "ibmtss" Thu Jul 11 13:16:35 2019 rev:9 rq:714059 version:1470 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2018-05-29 10:39:33.416369164 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new.4615/ibmtss.changes 2019-07-11 13:16:35.330801502 +0200 @@ -1,0 +2,15 @@ +Mon Jul 8 09:59:35 UTC 2019 - Michal Suchanek + +- Remove .la files + +--- +Thu Jul 4 16:51:35 UTC 2019 - Michal Suchanek + +- Update to v1047 + - now supports autotools + - supports library versioning + - installs tools with program prefx + - remove binary tool wrapper + - remove makefile.patch + +--- Old: ibmtss ibmtss.1 ibmtss1045.tar.gz makefile.patch New: ibmtss1470.tar.gz Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.VncXfi/_old 2019-07-11 13:16:35.802801353 +0200 +++ /var/tmp/diff_new_pack.VncXfi/_new 2019-07-11 13:16:35.806801352 +0200 @@ -1,7 +1,7 @@ # # spec file for package ibmtss # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,30 +12,30 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # # %define suite ibmtss %define libversion 0 -%define libname libtss +%define libversion_full 0.0.1 +%define libname libibmtss %define libpkgname %{libname}%{libversion} -%define soname %{libname}.so.%{libversion} Name: ibmtss -Version:1045 +Version:1470 Release:0 Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause Group: Productivity/Security URL:https://sourceforge.net/projects/ibmtpm20tss Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz -Source1:%{name} -Source2:%{name}.1 -Patch: makefile.patch +BuildRequires: autoconf +BuildRequires: automake BuildRequires: ibmswtpm2 BuildRequires: libopenssl-devel +BuildRequires: libtool Recommends: %{name}-base = %{version} %description @@ -72,31 +72,31 @@ %prep %setup -q -c -%patch -p 1 %build +autoreconf -i +%configure --enable-hwtpm --enable-debug cd utils %{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libdir}" %{?_smp_mflags} testfailed=0 -TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$? +TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=.libs ./reg.sh || testfailed=$? kill "$tpm_server" || : [ "$testfailed" -eq 0 ] %install cd utils -install -m 755 -D -t %{buildroot}/%{_libdir} %{soname} -ln -s %{soname} %{buildroot}/%{_libdir}/%{libname}.so -install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} \ -activatecredential eventextend imaextend certify certifycreation changeeps changepps clear clearcontrol clockrateadjust clockset commit contextload contextsave create createloaded createprimary dictionaryattacklockreset dictionaryattackparameters duplicate eccparameters ecephemeral encryptdecrypt eventsequencecomplete evictcontrol flushcontext getcommandauditdigest getcapability getrandom getsessionauditdigest gettime hashsequencestart hash hierarchycontrol hierarchychangeauth hmac hmacstart import importpem load loadexternal makecredential nvcertify nvchangeauth nvdefinespace nvextend nvglobalwritelock nvincrement nvread nvreadlock nvreadpublic nvsetbits nvundefinespace nvundefinespacespecial nvwrite nvwritelock objectchangeauth pcrallocate pcrevent pcrextend pcrread pcrreset policyauthorize policyauthvalue policycommandcode policycphash policycountertimer policygetdigest policymaker policymakerpcr policyauthorizenv policynv policynvwritten policyor policypassword policypcr policyrestart policysigned policysecret policytemplate policyticket quote powerup readclock readpublic returncode rewrap rsadecrypt rsaencrypt sequenceupdate sequencecomplete setprimarypolicy shutdown sign startauthsession startup stirrandom unseal verifysignature signapp writeapp timepacket createek ntc2getconfig ntc2preconfig ntc2lockconfig +%make_insta
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2018-05-29 10:39:26 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Tue May 29 10:39:26 2018 rev:8 rq:611237 version:1045 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2018-01-19 11:54:48.503127623 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2018-05-29 10:39:33.416369164 +0200 @@ -1,0 +2,15 @@ +Tue May 22 10:18:35 UTC 2018 - msucha...@suse.com + +- Add post/postun ldconfig call + +--- +Fri May 18 21:55:16 UTC 2018 - jeng...@inai.de + +- Fix RPM groups + +--- +Thu May 17 13:12:22 UTC 2018 - msucha...@suse.com + +- Split off library, spec-clean (bsc#1093612) + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.IitrzA/_old 2018-05-29 10:39:34.992310987 +0200 +++ /var/tmp/diff_new_pack.IitrzA/_new 2018-05-29 10:39:34.992310987 +0200 @@ -18,6 +18,10 @@ # %define suite ibmtss +%define libversion 0 +%define libname libtss +%define libpkgname %{libname}%{libversion} +%define soname %{libname}.so.%{libversion} Name: ibmtss Version:1045 @@ -25,15 +29,14 @@ Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause Group: Productivity/Security -Url:https://sourceforge.net/projects/ibmtpm20tss +URL:https://sourceforge.net/projects/ibmtpm20tss Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz -Patch: makefile.patch Source1:%{name} Source2:%{name}.1 +Patch: makefile.patch BuildRequires: ibmswtpm2 BuildRequires: libopenssl-devel Recommends: %{name}-base = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a user space TCG Software Stack (TSS) for TPM 2.0. It @@ -43,6 +46,13 @@ It comes with over 100 "TPM tools" that can be used for scripted apps, rapid prototyping, education, and debugging. +%package -n %{libpkgname} +Summary:Shared library for IBM's TPM 2.0 TSS +Group: System/Libraries + +%description -n %{libpkgname} +Shared library for IBM's TPM 2.0 TSS tools + %package base Summary:IBM's TPM 2.0 TSS shared files Group: Productivity/Security @@ -54,19 +64,20 @@ %package devel Summary:IBM's TPM 2.0 TSS headers Group: Development/Libraries/C and C++ +Requires: %{libpkgname} = %{version} Requires: %{suite} = %{version} %description devel Includes IBM's TPM 2.0 TSS C header files %prep -%setup -c -q +%setup -q -c %patch -p 1 %build cd utils %{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" -CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libexecdir}/%{suite}" %{?_smp_mflags} +CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libdir}" %{?_smp_mflags} testfailed=0 TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$? kill "$tpm_server" || : @@ -74,7 +85,8 @@ %install cd utils -install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} libtss.so +install -m 755 -D -t %{buildroot}/%{_libdir} %{soname} +ln -s %{soname} %{buildroot}/%{_libdir}/%{libname}.so install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} \ activatecredential eventextend imaextend certify certifycreation changeeps changepps clear clearcontrol clockrateadjust clockset commit contextload contextsave create createloaded createprimary dictionaryattacklockreset dictionaryattackparameters duplicate eccparameters ecephemeral encryptdecrypt eventsequencecomplete evictcontrol flushcontext getcommandauditdigest getcapability getrandom getsessionauditdigest gettime hashsequencestart hash hierarchycontrol hierarchychangeauth hmac hmacstart import importpem load loadexternal makecredential nvcertify nvchangeauth nvdefinespace nvextend nvglobalwritelock nvincrement nvread nvreadlock nvreadpublic nvsetbits nvundefinespace nvundefinespacespecial nvwrite nvwritelock objectchangeauth pcrallocate pcrevent pcrextend pcrread pcrreset policyauthorize policyauthvalue policycommandcode policycphash policycountertimer policygetdigest policymaker policymakerpcr policyauthorizenv policynv policynvwritten policyor policypassword policypcr policyrestart policysigned policysecret policytemplate policyticket quote powerup readclock readpublic returncode rewrap rsadecrypt rsaencrypt sequenceupdate sequencecomplete setprimarypolicy shutdown sign startauthsession startup stirra
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2018-01-19 11:53:58 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Fri Jan 19 11:53:58 2018 rev:7 rq:567293 version:1045 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-11-22 11:22:14.245755248 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2018-01-19 11:54:48.503127623 +0100 @@ -1,0 +2,5 @@ +Thu Jan 18 08:34:51 UTC 2018 - msucha...@suse.com + +- Enable test on BE + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.wf3ELu/_old 2018-01-19 11:54:49.559077862 +0100 +++ /var/tmp/diff_new_pack.wf3ELu/_new 2018-01-19 11:54:49.563077674 +0100 @@ -1,7 +1,7 @@ # # spec file for package ibmtss # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,13 +30,8 @@ Patch: makefile.patch Source1:%{name} Source2:%{name}.1 -BuildRequires: libopenssl-devel -%ifnarch s390x s390 ppc64 ppc BuildRequires: ibmswtpm2 -%define test 1 -%else -%define test "" -%endif +BuildRequires: libopenssl-devel Recommends: %{name}-base = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -70,11 +65,11 @@ %build cd utils -[ -n "%{test}" ] && { %{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" ; } +%{_libexecdir}/%{suite}/tpm_server & tpm_server="$!" CCFLAGS="%{optflags}" make LNAFLAGS="-Wl,-rpath,%{_libexecdir}/%{suite}" %{?_smp_mflags} testfailed=0 -[ -n "%{test}" ] && { TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$? ; } -[ -n "%{test}" ] && kill "$tpm_server" || : +TPM_INTERFACE_TYPE=socsim LD_LIBRARY_PATH=. ./reg.sh || testfailed=$? +kill "$tpm_server" || : [ "$testfailed" -eq 0 ] %install
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2017-11-22 11:22:08 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Wed Nov 22 11:22:08 2017 rev:6 rq:543838 version:1045 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-11-11 14:19:58.234398478 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2017-11-22 11:22:14.245755248 +0100 @@ -4 +4 @@ -- Update to upstream 1045 (bsc#1066914) +- Update to upstream version 1045 - works with OpenSSL 1.1 (bsc#1066914) Other differences: --
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2017-11-11 14:19:49 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Sat Nov 11 14:19:49 2017 rev:5 rq:540230 version:1045 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-04-11 09:34:29.307557698 +0200 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2017-11-11 14:19:58.234398478 +0100 @@ -1,0 +2,5 @@ +Wed Nov 8 15:35:53 UTC 2017 - msucha...@suse.com + +- Update to upstream 1045 (bsc#1066914) + +--- Old: ibmtss755withman.tar.gz New: ibmtss1045.tar.gz Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.rYNLYo/_old 2017-11-11 14:20:00.258324301 +0100 +++ /var/tmp/diff_new_pack.rYNLYo/_new 2017-11-11 14:20:00.258324301 +0100 @@ -1,7 +1,7 @@ # # spec file for package ibmtss # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,18 +20,17 @@ %define suite ibmtss Name: ibmtss -Version:755 +Version:1045 Release:0 Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause Group: Productivity/Security -Url:https://sourceforge.net/projects/ibmtpm20tss/ -Source: %{name}%{version}withman.tar.gz -Patch0: makefile.patch +Url:https://sourceforge.net/projects/ibmtpm20tss +Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz +Patch: makefile.patch Source1:%{name} Source2:%{name}.1 -BuildRequires: libopenssl-devel <= 1.1 -BuildRequires: libopenssl-devel >= 1.0 +BuildRequires: libopenssl-devel %ifnarch s390x s390 ppc64 ppc BuildRequires: ibmswtpm2 %define test 1 @@ -67,7 +66,7 @@ %prep %setup -c -q -%patch0 -p1 +%patch -p 1 %build cd utils @@ -81,7 +80,8 @@ %install cd utils install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} libtss.so -install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} activatecredential certify changeeps changepps clear clearcontrol clockrateadjust clockset contextload contextsave create createek createprimary dictionaryattacklockreset dictionaryattackparameters duplicate eccparameters encryptdecrypt eventextend eventsequencecomplete evictcontrol flushcontext getcapability getcommandauditdigest getrandom getsessionauditdigest gettime hash hashsequencestart hierarchychangeauth hierarchycontrol hmac hmacstart import load loadexternal makecredential nvcertify nvchangeauth nvdefinespace nvextend nvglobalwritelock nvincrement nvread nvreadlock nvreadpublic nvsetbits nvundefinespace nvundefinespacespecial nvwrite nvwritelock objectchangeauth pcrallocate pcrevent pcrextend pcrread pcrreset policyauthorize policyauthvalue policycommandcode policycountertimer policycphash policygetdigest policymaker policymakerpcr policynv policynvwritten policyor policypassword policypcr policyrestart policysecret policysigned policyticket powerup quote readclock readpublic returncode rewrap rsadecrypt rsaencrypt sequencecomplete sequenceupdate setprimarypolicy shutdown sign signapp startauthsession startup stirrandom unseal verifysignature writeapp +install -m 755 -D -t %{buildroot}/%{_libexecdir}/%{suite} \ +activatecredential eventextend imaextend certify certifycreation changeeps changepps clear clearcontrol clockrateadjust clockset commit contextload contextsave create createloaded createprimary dictionaryattacklockreset dictionaryattackparameters duplicate eccparameters ecephemeral encryptdecrypt eventsequencecomplete evictcontrol flushcontext getcommandauditdigest getcapability getrandom getsessionauditdigest gettime hashsequencestart hash hierarchycontrol hierarchychangeauth hmac hmacstart import importpem load loadexternal makecredential nvcertify nvchangeauth nvdefinespace nvextend nvglobalwritelock nvincrement nvread nvreadlock nvreadpublic nvsetbits nvundefinespace nvundefinespacespecial nvwrite nvwritelock objectchangeauth pcrallocate pcrevent pcrextend pcrread pcrreset policyauthorize policyauthvalue policycommandcode policycphash policycountertimer policygetdigest policymaker policymakerpcr policyauthorizenv policynv policynvwritten policyor policypassword policypcr policyrestart policysigned policysecret policytemplate policyticket quote powerup readclock readpublic returncode rewrap rsadecrypt rsaenc
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2017-04-11 09:34:28 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Tue Apr 11 09:34:28 2017 rev:4 rq:483308 version:755 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-03-12 20:03:06.605312406 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2017-04-11 09:34:29.307557698 +0200 @@ -24 +24 @@ -- Import v713 +- Import v713 (FATE#321601) Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.w9Zr8U/_old 2017-04-11 09:34:29.823484816 +0200 +++ /var/tmp/diff_new_pack.w9Zr8U/_new 2017-04-11 09:34:29.827484251 +0200 @@ -1,7 +1,7 @@ # # spec file for package ibmtss # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2017-03-12 20:03:05 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Sun Mar 12 20:03:05 2017 rev:3 rq:477562 version:755 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-03-03 17:55:36.311304800 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2017-03-12 20:03:06.605312406 +0100 @@ -1,0 +2,5 @@ +Thu Mar 2 12:28:23 UTC 2017 - msucha...@suse.com + +- fix description of -devel package + +--- Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.MiyL8q/_old 2017-03-12 20:03:07.137237138 +0100 +++ /var/tmp/diff_new_pack.MiyL8q/_new 2017-03-12 20:03:07.141236573 +0100 @@ -63,7 +63,7 @@ Requires: %{suite} = %{version} %description devel -Includes IBM's TPM 2.0 TSS certificates and policy files. +Includes IBM's TPM 2.0 TSS C header files %prep %setup -c -q
commit ibmtss for openSUSE:Factory
Hello community, here is the log from the commit of package ibmtss for openSUSE:Factory checked in at 2017-03-03 17:55:35 Comparing /work/SRC/openSUSE:Factory/ibmtss (Old) and /work/SRC/openSUSE:Factory/.ibmtss.new (New) Package is "ibmtss" Fri Mar 3 17:55:35 2017 rev:2 rq:461924 version:755 Changes: --- /work/SRC/openSUSE:Factory/ibmtss/ibmtss.changes2017-02-20 13:15:02.424918846 +0100 +++ /work/SRC/openSUSE:Factory/.ibmtss.new/ibmtss.changes 2017-03-03 17:55:36.311304800 +0100 @@ -1,0 +2,6 @@ +Wed Mar 1 17:06:55 UTC 2017 - meiss...@suse.com + +- update to v755 (FATE#321601) + - This is the version prefered by IBM. + +--- Old: ibmtss713.tar New: ibmtss755withman.tar.gz Other differences: -- ++ ibmtss.spec ++ --- /var/tmp/diff_new_pack.K2Z5Ju/_old 2017-03-03 17:55:37.243173175 +0100 +++ /var/tmp/diff_new_pack.K2Z5Ju/_new 2017-03-03 17:55:37.243173175 +0100 @@ -20,14 +20,14 @@ %define suite ibmtss Name: ibmtss -Version:713 +Version:755 Release:0 Summary:IBM's TPM 2.0 TSS License:BSD-3-Clause Group: Productivity/Security Url:https://sourceforge.net/projects/ibmtpm20tss/ -Source: %{name}%{version}.tar -Patch: makefile.patch +Source: %{name}%{version}withman.tar.gz +Patch0: makefile.patch Source1:%{name} Source2:%{name}.1 BuildRequires: libopenssl-devel <= 1.1 @@ -67,7 +67,7 @@ %prep %setup -c -q -%patch -p 1 +%patch0 -p1 %build cd utils ++ makefile.patch ++ --- /var/tmp/diff_new_pack.K2Z5Ju/_old 2017-03-03 17:55:37.295165831 +0100 +++ /var/tmp/diff_new_pack.K2Z5Ju/_new 2017-03-03 17:55:37.299165265 +0100 @@ -1,17 +1,8 @@ ibmtss713/utils/makefile-common~ 2016-08-09 22:28:08.0 +0200 -+++ ibmtss713/utils/makefile-common2017-01-30 16:36:53.844633306 +0100 -@@ -43,7 +43,7 @@ - - CCFLAGS +=\ - -Wall -W -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ -- -ggdb -O0 -c\ -+ -ggdb -fno-strict-aliasing -c \ - -DTPM_BITFIELD_LE \ - -DTPM_ENCRYPT_SESSIONS_DEFAULT="\"0\"" - ibmtss713/utils/makefile~ 2016-08-09 22:28:08.0 +0200 -+++ ibmtss713/utils/makefile 2017-01-30 16:46:22.512727982 +0100 -@@ -44,9 +44,8 @@ +Index: ibmtss-755/utils/makefile +=== +--- ibmtss-755.orig/utils/makefile ibmtss-755/utils/makefile +@@ -44,9 +44,8 @@ CC = /usr/bin/gcc # compile - common flags for TSS library and applications @@ -23,3 +14,16 @@ # compile - for TSS library +Index: ibmtss-755/utils/makefile-common +=== +--- ibmtss-755.orig/utils/makefile-common ibmtss-755/utils/makefile-common +@@ -43,7 +43,7 @@ + + CCFLAGS +=\ + -Wall -W -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ +- -ggdb -O0 -c\ ++ -ggdb -c\ + -DTPM_ENCRYPT_SESSIONS_DEFAULT="\"0\"" + +