fix execution succeed when format a disk with partitions.

Signed-off-by: zhanchengbin <zhanchengbin1@huawei.com>
(cherry picked from commit d95aa8f6df89d497f683a97991cd43b7e566c2b6)
This commit is contained in:
root 2022-07-05 16:37:13 +08:00 committed by openeuler-sync-bot
parent 8efdf33bc7
commit f6f0eeb85f

View File

@ -1,12 +1,12 @@
Name: dosfstools
Version: 4.1
Release: 11
Release: 12
Summary: FAT file system userspace tools
License: GPLv3+
URL: http://www.github.com/dosfstools/dosfstools
Source0: http://www.github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires: gcc autoconf automake
BuildRequires: gcc autoconf automake systemd-devel
Patch0: 0000-Fix-signed-integer-overflow-in-FSTART.patch
Patch1: 0001-Avoid-returning-deleted-directory-entries-as-labels.patch
@ -36,7 +36,7 @@ This package includes man pages for dosfstools.
%build
%configure --enable-compat-symlinks
%make_build CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing"
%make_build CFLAGS="%{optflags} -D HAVE_UDEV -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing"
%check
make check
@ -54,6 +54,9 @@ make check
%{_mandir}/man8/*
%changelog
* Tue Jul 5 2022 zhanchengbin <zhanchengbin1@huawei.com> - 4.1-12
- fix execution successd when format a disk with partitions.
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.1-11
- DESC: delete -S git from %autosetup, and delete BuildRequires git