File mergerfs-tools.spec of Package mergerfs-tools
#
# spec file for package mergerfs-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: mergerfs-tools
Version: 0.0+git.20230911T192423~80d6c95
Release: 0
Summary: A featureful FUSE based union filesystem
License: ISC
Group: System/Filesystems
URL: https://github.com/trapexit/mergerfs-tools
Source: mergerfs-tools-%{version}.tar.xz
# rpmbuild driven by the Makefile uses git to generate a version number
Requires: mergerfs
Requires: python3-xattr
BuildArch: noarch
%description
mergerfs is a union filesystem geared towards simplifying storage and
management of files across numerous commodity storage devices. It is
similar to mhddfs, unionfs, and aufs.
%prep
%setup -q
sed -i -e "s,#!%{_bindir}/env python3,#!%{_bindir}/python3," src/*
%build
# Nothing to build, the tools are python and bash scripts
%install
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
%files
%{_bindir}/mergerfs.balance
%{_bindir}/mergerfs.consolidate
%{_bindir}/mergerfs.ctl
%{_bindir}/mergerfs.dedup
%{_bindir}/mergerfs.dup
%{_bindir}/mergerfs.fsck
%{_bindir}/mergerfs.mktrash
%changelog