import libguestfs-winsupport-8.2-1.module+el8.3.0+6423+e4cb6418
This commit is contained in:
parent
a2b46b2883
commit
459277bce8
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
SOURCES/ntfs-3g-system-compression-1.0.tar.gz
|
||||
SOURCES/ntfs-3g_ntfsprogs-2017.3.23.tgz
|
||||
|
@ -1 +1,2 @@
|
||||
a0c3bb13ac09fe6ac0307fd7a7e9d577099987e9 SOURCES/ntfs-3g-system-compression-1.0.tar.gz
|
||||
160a836274c38d92e5c3a55256f404c8dd8f3cc1 SOURCES/ntfs-3g_ntfsprogs-2017.3.23.tgz
|
||||
|
@ -1,22 +1,25 @@
|
||||
%global ntfs_version 2017.3.23
|
||||
%global compression_version 1.0
|
||||
|
||||
# debuginfo makes no sense for this package, so disable it
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: libguestfs-winsupport
|
||||
Version: 8.0
|
||||
Release: 4%{?dist}
|
||||
Version: 8.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Add support for Windows guests to virt-v2v and virt-p2v
|
||||
|
||||
URL: http://www.ntfs-3g.org/
|
||||
# and URL: https://github.com/ebiggers/ntfs-3g-system-compression
|
||||
License: GPLv2+
|
||||
|
||||
# This package shouldn't be installed without installing the base
|
||||
# libguestfs package.
|
||||
Requires: libguestfs >= 1:1.38.2
|
||||
|
||||
# Source and patches for ntfs. Try to keep this in step with Fedora.
|
||||
# Source and patches for ntfs-3g and ntfs-3g-system-compression.
|
||||
Source0: http://tuxera.com/opensource/ntfs-3g_ntfsprogs-%{ntfs_version}.tgz
|
||||
Source1: https://github.com/ebiggers/ntfs-3g-system-compression/archive/v%{version}/ntfs-3g-system-compression-%{compression_version}.tar.gz
|
||||
|
||||
Patch0: ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch
|
||||
Patch1: check-mftmirr.patch
|
||||
@ -27,17 +30,24 @@ Patch2: ntfs-3g-big-sectors.patch
|
||||
Patch3: ntfsclone-full-clusters-bz1601146.patch
|
||||
# CVE-2019-9755 (https://bugzilla.redhat.com/show_bug.cgi?id=1698502)
|
||||
Patch4: 0001-Fixed-reporting-an-error-when-failed-to-build-the-mo.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libtool, libattr-devel
|
||||
BuildRequires: libconfig-devel, libgcrypt-devel, gnutls-devel, libuuid-devel
|
||||
BuildRequires: autoconf, automake, libtool, fuse-devel
|
||||
|
||||
|
||||
%description
|
||||
This optional package adds support for Windows guests (NTFS) to the
|
||||
virt-v2v and virt-p2v programs.
|
||||
|
||||
This package also supports system compression ("Compact OS") using the
|
||||
plugin from https://github.com/ebiggers/ntfs-3g-system-compression
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n ntfs-3g_ntfsprogs-%{ntfs_version}
|
||||
%setup -n ntfs-3g_ntfsprogs-%{ntfs_version} -T -D -a 1
|
||||
%patch0 -p1 -b .unsupported
|
||||
%patch1 -p0 -b .check-mftmirr
|
||||
%patch2 -p0 -b .big-sectors
|
||||
@ -58,6 +68,20 @@ CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
|
||||
--enable-quarantined
|
||||
make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
|
||||
|
||||
# Build ntfs-3g-system-compression plugin.
|
||||
pushd ntfs-3g-system-compression-%{compression_version}
|
||||
autoreconf -i
|
||||
# Trick the plugin into using the just-compiled ntfs-3g.
|
||||
cp ../libntfs-3g/libntfs-3g.pc .
|
||||
sed -i \
|
||||
-e 's,^libdir=.*,libdir=../libntfs-3g,' \
|
||||
-e 's,^includedir=.*,includedir=../include,' \
|
||||
libntfs-3g.pc
|
||||
export PKG_CONFIG_PATH=.
|
||||
%configure
|
||||
%make_build
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
# Build it into a destdir which is not the final buildroot.
|
||||
@ -92,10 +116,16 @@ rm -r destdir/%{_defaultdocdir}
|
||||
rm -r destdir/%{_includedir}
|
||||
rm -r destdir/%{_libdir}/pkgconfig
|
||||
|
||||
# Install ntfs-3g-system-compression plugin in the same place.
|
||||
pushd ntfs-3g-system-compression-%{compression_version}
|
||||
%make_install DESTDIR=$(pwd)/../destdir
|
||||
popd
|
||||
rm -rf destdir/%{_libdir}/ntfs-3g/*.la
|
||||
|
||||
# Take the destdir and put it into a tarball for the libguestfs appliance.
|
||||
mkdir -p %{buildroot}%{_libdir}/guestfs/supermin.d
|
||||
pushd destdir
|
||||
tar zcf %{buildroot}%{_libdir}/guestfs/supermin.d/zz-winsupport.tar.gz .
|
||||
tar zvcf %{buildroot}%{_libdir}/guestfs/supermin.d/zz-winsupport.tar.gz .
|
||||
popd
|
||||
|
||||
|
||||
@ -106,6 +136,10 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 27 2020 Danilo C. L. de Paula <ddepaula@redhat.com> - 8.2
|
||||
- Resolves: bz#1810193
|
||||
(Upgrade components in virt:rhel module:stream for RHEL-8.3 release)
|
||||
|
||||
* Fri Jun 28 2019 Danilo de Paula <ddepaula@redhat.com> - 8.0-4
|
||||
- Rebuild all virt packages to fix RHEL's upgrade path
|
||||
- Resolves: rhbz#1695587
|
||||
|
Loading…
Reference in New Issue
Block a user