add make test

This commit is contained in:
lixiaokeng 2020-11-04 18:12:51 +08:00
parent b3202a2f96
commit 227c5935d4

View File

@ -1,6 +1,6 @@
Name: gdisk
Version: 1.0.5
Release: 3
Release: 4
Summary: GPT fdisk(consisting of the gdisk,sgdisk,cgdisk) is a set of text-mode partitioning tools
License: GPLv2
URL: http://www.rodsbooks.com/gdisk
@ -24,11 +24,14 @@ This package contains the man page for GPT fdisk(consisting of the gdisk,sgdisk,
%prep
%autosetup -n gptfdisk-%{version} -p1 -Sgit
chmod 0644 gdisk_test.sh
%build
make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" LDFLAGS="%{build_ldflags}"
%check
make test
chmod 0644 gdisk_test.sh
%install
install -Dp -m 0755 cgdisk %{buildroot}%{_sbindir}/cgdisk
install -Dp -m 0644 cgdisk.8 %{buildroot}%{_mandir}/man8/cgdisk.8
@ -48,6 +51,9 @@ install -Dp -m 0644 fixparts.8 %{buildroot}%{_mandir}/man8/fixparts.8
%{_mandir}/man8/*
%changelog
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@huawei.com> - 1.0.5-4
- add make test
* Thu Oct 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.0.5-3
- backport one patch for solving potential segfault problem.