File vmfs-tools.spec of Package vmfs-tools
#
# spec file for package vmfs-tools
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: vmfs-tools
Version: 0.2.5
Release: 0
Summary: Tools to access VMFS filesystems
License: GPL-2.0-or-later
Group: System/Filesystems
URL: http://glandium.org/projects/vmfs-tools/
Source: http://glandium.org/projects/vmfs-tools/vmfs-tools-%{version}.tar.gz
Patch1: vmfs-tools-uuid
BuildRequires: pkg-config
BuildRequires: pkgconfig(fuse)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: asciidoc
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libuuid-devel
BuildRequires: libxslt
%description
Originally loosely based on the vmfs code from fluidOps, this set of tools has
since evolved to handle more features from VMFS, such as extents, and allows to
access VMFS through the standard Linux VFS with the help of the FUSE framework.
While it is still work in progress and is not destined for production use yet,
it can be of some help for some people.
%package -n libvmfs-devel
Summary: Library to access VMFS filesystems
Group: Development/Libraries/C and C++
Requires: libuuid-devel
%description -n libvmfs-devel
Originally loosely based on the vmfs code from fluidOps, this set of tools has
since evolved to handle more features from VMFS, such as extents, and allows to
access VMFS through the standard Linux VFS with the help of the FUSE framework.
While it is still work in progress and is not destined for production use yet,
it can be of some help for some people.
%prep
%setup -q
%patch -P1 -p1
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
chmod 0644 "%{buildroot}%{_mandir}/man8"/*.8
install -d "%{buildroot}%{_includedir}/libvmfs"
install -m0644 libvmfs/*.h "%{buildroot}%{_includedir}/libvmfs/"
%files
%license LICENSE
%doc AUTHORS TODO
%{_sbindir}/debugvmfs
%{_sbindir}/fsck.vmfs
%{_sbindir}/vmfs-fuse
%{_sbindir}/vmfs-lvm
%{_mandir}/man8/debugvmfs.8%{ext_man}
%{_mandir}/man8/fsck.vmfs.8%{ext_man}
%{_mandir}/man8/vmfs-fuse.8%{ext_man}
%{_mandir}/man8/vmfs-lvm.8%{ext_man}
%files -n libvmfs-devel
%{_includedir}/libvmfs
%changelog