修改spec问题
This commit is contained in:
parent
69e2f27e07
commit
7fd2a213c0
@ -26,23 +26,10 @@ BuildRequires: openssl-devel
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRequires: ntfs-3g-devel
|
||||
BuildRequires: libblkid-devel
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: nilfs-utils-devel
|
||||
%endif
|
||||
%if 0%{?testsuite}
|
||||
BuildRequires: e2fsprogs
|
||||
BuildRequires: ntfsprogs
|
||||
BuildRequires: dosfstools
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
# RHEL 6 provides xfsprogs RPM only as part of Resilient Storage Add-On
|
||||
BuildRequires: xfsprogs
|
||||
# RHEL 6 provides btrfs-progs RPM only on x86_64 architecture as it seems
|
||||
BuildRequires: btrfs-progs
|
||||
%endif
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: f2fs-tools
|
||||
BuildRequires: hfsplus-tools
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -61,11 +48,6 @@ autoreconf -i -f
|
||||
%build
|
||||
# /usr/include/asm/types.h:31 and xfs/platform_defs.h:50 try both to define
|
||||
# umode_t, reported: https://github.com/Thomas-Tsai/partclone/issues/96
|
||||
%if 0%{?rhel} == 6
|
||||
%ifarch ppc64
|
||||
export CFLAGS="$RPM_OPT_FLAGS -DHAVE_UMODE_T"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-extfs \
|
||||
@ -76,11 +58,7 @@ export CFLAGS="$RPM_OPT_FLAGS -DHAVE_UMODE_T"
|
||||
--enable-fat \
|
||||
--disable-exfat \
|
||||
--enable-f2fs \
|
||||
%if 0%{?fedora}
|
||||
--enable-nilfs2 \
|
||||
%else
|
||||
--disable-nilfs2 \
|
||||
%endif
|
||||
--enable-ntfs \
|
||||
--disable-ufs \
|
||||
--disable-vmfs \
|
||||
@ -125,11 +103,6 @@ sed -e 's/^\(am__append_3 = fat.test\)/#\1/' \
|
||||
%endif
|
||||
|
||||
# No f2fs-tools and hfsplus-tools in RHEL or EPEL
|
||||
%if 0%{?rhel}
|
||||
sed -e 's/^\(am__append_5 = hfsplus.test\)/#\1/' \
|
||||
-e 's/^\(am__append_8 = f2fs.test\)/#\1/' \
|
||||
-i tests/Makefile
|
||||
%endif
|
||||
|
||||
make check || (cat tests/test-suite.log; exit 1)
|
||||
%endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user