update spec file and source file
Signed-off-by: jiangfangjie <jiangfangjie@huawei.com>
This commit is contained in:
parent
9d9290ce43
commit
e6e9493e17
Binary file not shown.
12
libtpms.spec
12
libtpms.spec
@ -1,8 +1,12 @@
|
|||||||
# --- libtpm rpm-spec ---
|
# --- libtpm rpm-spec ---
|
||||||
|
%global gitdate 20200710
|
||||||
|
%global gitcommit 1d392d466a14234b2c0751ed6c22491836691166
|
||||||
|
%global gitshortcommit %(c=%{gitcommit}; echo ${c:0:7})
|
||||||
|
|
||||||
|
|
||||||
%define name libtpms
|
%define name libtpms
|
||||||
%define version 0.7.3
|
%define version 0.7.3
|
||||||
%define release 2
|
%define release 3
|
||||||
|
|
||||||
# Valid crypto subsystems are 'freebl' and 'openssl'
|
# Valid crypto subsystems are 'freebl' and 'openssl'
|
||||||
%if "%{?crypto_subsystem}" == ""
|
%if "%{?crypto_subsystem}" == ""
|
||||||
@ -19,7 +23,7 @@ Release: 2
|
|||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Url: http://github.com/stefanberger/libtpms
|
Url: http://github.com/stefanberger/libtpms
|
||||||
Source0: %{url}/archive/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
|
||||||
Provides: libtpms-%{crypto_subsystem} = %{version}-%{release}
|
Provides: libtpms-%{crypto_subsystem} = %{version}-%{release}
|
||||||
|
|
||||||
%if "%{crypto_subsystem}" == "openssl"
|
%if "%{crypto_subsystem}" == "openssl"
|
||||||
@ -70,7 +74,7 @@ Libtpms header files and documentation.
|
|||||||
%attr(644, root, root) %{_mandir}/man3/*
|
%attr(644, root, root) %{_mandir}/man3/*
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -n %{name}-%{gitcommit}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -113,7 +117,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Sep 14 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.7.3-2
|
* Mon Sep 14 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.7.3-2
|
||||||
- update source0
|
- update spec file including source0 and update source file
|
||||||
|
|
||||||
* Fri Aug 21 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.7.3-1
|
* Fri Aug 21 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.7.3-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user