diff --git a/libtpms-0.7.3.tar.gz b/libtpms-0.7.3.tar.gz deleted file mode 100644 index 18be7d908396ca821c0b26d2bc2ff56bdbbd6c17..0000000000000000000000000000000000000000 Binary files a/libtpms-0.7.3.tar.gz and /dev/null differ diff --git a/libtpms-1d392d4.tar.gz b/libtpms-1d392d4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8fbc1af93ce9293651908f1efab5860f9dc96c1b Binary files /dev/null and b/libtpms-1d392d4.tar.gz differ diff --git a/libtpms.spec b/libtpms.spec index 32e2dd5047e0279c55c9ab20a8e6f2d7fcf2a432..c9710ae26e4df6e8271a294775c97c0dd927f5ce 100644 --- a/libtpms.spec +++ b/libtpms.spec @@ -1,8 +1,12 @@ # --- libtpm rpm-spec --- +%global gitdate 20200710 +%global gitcommit 1d392d466a14234b2c0751ed6c22491836691166 +%global gitshortcommit %(c=%{gitcommit}; echo ${c:0:7}) + %define name libtpms -%define version 0.7.3 -%define release 1 +%define versionx 0.7.3 +%define release 2 # Valid crypto subsystems are 'freebl' and 'openssl' %if "%{?crypto_subsystem}" == "" @@ -14,12 +18,12 @@ Summary: Library providing Trusted Platform Module (TPM) functionality Name: %{name} -Version: %{version} -Release: %{release}%{?dist} +Version: %{versionx} +Release: 2 License: BSD Group: Development/Libraries Url: http://github.com/stefanberger/libtpms -Source: libtpms-%{version}.tar.gz +Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz Provides: libtpms-%{crypto_subsystem} = %{version}-%{release} %if "%{crypto_subsystem}" == "openssl" @@ -70,7 +74,7 @@ Libtpms header files and documentation. %attr(644, root, root) %{_mandir}/man3/* %prep -%setup -q +%autosetup -n %{name}-%{gitcommit} %build @@ -112,6 +116,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la %postun -p /sbin/ldconfig %changelog +* Mon Sep 14 2020 jiangfangjie - 0.7.3-2 +- update spec file including source0 and update source file + * Fri Aug 21 2020 jiangfangjie - 0.7.3-1 - Package init - Version of library is now 0.7.3