!6 Update spec file including source0 and source file
From: @jackjf Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
d817276ca1
Binary file not shown.
BIN
libtpms-1d392d4.tar.gz
Normal file
BIN
libtpms-1d392d4.tar.gz
Normal file
Binary file not shown.
19
libtpms.spec
19
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 <jiangfangjie@huawei.com> - 0.7.3-2
|
||||
- update spec file including source0 and update source file
|
||||
|
||||
* Fri Aug 21 2020 jiangfangjie <jiangfangjie@huawei.com> - 0.7.3-1
|
||||
- Package init
|
||||
- Version of library is now 0.7.3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user