2015-09-05 17:56:45 -04:00
|
|
|
Name: mergerfs
|
|
|
|
|
Version: __VERSION__
|
|
|
|
|
Release: 1%{?dist}
|
2020-02-21 08:01:49 -05:00
|
|
|
Summary: A featureful FUSE based union filesystem
|
2015-09-05 17:56:45 -04:00
|
|
|
|
|
|
|
|
Group: Applications/System
|
2016-01-14 16:50:22 -05:00
|
|
|
License: ISC
|
2015-09-05 17:56:45 -04:00
|
|
|
URL: https://github.com/trapexit/mergerfs
|
|
|
|
|
|
|
|
|
|
Source: mergerfs-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
# rpmbuild driven by the Makefile uses git to generate a version number
|
|
|
|
|
BuildRequires: git
|
|
|
|
|
|
2019-04-24 16:19:01 -04:00
|
|
|
%global debug_package %{nil}
|
2025-08-05 00:39:52 -04:00
|
|
|
%undefine _debuginfo_subpackages
|
|
|
|
|
%global _enable_debug_packages 0
|
2019-04-24 16:19:01 -04:00
|
|
|
|
2015-09-05 17:56:45 -04:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%description
|
2019-04-24 16:19:01 -04:00
|
|
|
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.
|
2015-09-05 17:56:45 -04:00
|
|
|
|
|
|
|
|
%build
|
build: make NDEBUG=1 and make release build the release profile
- The RELEASE=1 profile replaced 2.42.0's NDEBUG=1 one, but the
static archives and the container image still build with NDEBUG=1,
which therefore selected the debug profile: -O0 -g3 with assertions
on. Both Makefiles accept NDEBUG=1 again, as -O3 -DNDEBUG, and the
debug profile defines DEBUG. The vendored libfuse follows the same
profile as mergerfs.
- make release first removes the objects, binaries and stamp under
build/ and cleans vendored/libfuse, because make only compares
timestamps: objects from an earlier debug build were otherwise
linked into the release binary unchanged. Packages and build reports
in build/pkgs are kept; TEST_release_pkg_preservation checks both.
- make release also builds preload.so. It takes the release defines
through its own PRELOAD_CPPFLAGS: the global CPPFLAGS add
_FILE_OFFSET_BITS=64, which would hide its unsuffixed
open/openat/fopen/creat interposers.
- mergerfs.spec builds the release target, as debian/rules does. The
distribution's CFLAGS, CXXFLAGS and LDFLAGS still apply.
- The release driver mounts the repository with ":ro,z", not ":ro:z",
which Podman read as an extra field instead of a mount option.
TEST_release_metadata runs the driver against a fake podman and
checks the volume argument and the build report.
- Remove release-installer: build-release has no installer target.
- make help printed a literal "\n" where /bin/sh is bash. Match the
build.md transcript to its output and document the profiles.
Performance: static archives and the container image go from -O0 with
assertions back to optimized builds, now -O3 -DNDEBUG (2.42.0: -O2
-DNDEBUG). RPM packages keep the distribution's -O2 and no longer
evaluate assertions. A plain make is unoptimized, as before.
2026-11-29 23:10:53 -05:00
|
|
|
make %{?_smp_mflags} release CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
|
2015-09-05 17:56:45 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
2020-06-30 10:41:17 -04:00
|
|
|
/usr/bin/mergerfs
|
|
|
|
|
/usr/bin/mergerfs-fusermount
|
2025-06-23 21:57:55 -05:00
|
|
|
/usr/bin/fsck.mergerfs
|
2025-07-03 20:18:05 -05:00
|
|
|
/usr/bin/mergerfs.collect-info
|
2020-06-30 10:41:17 -04:00
|
|
|
/sbin/mount.mergerfs
|
2024-01-22 13:42:55 -05:00
|
|
|
/usr/lib/mergerfs/preload.so
|
2015-09-05 17:56:45 -04:00
|
|
|
%doc %{_mandir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-04-24 16:19:01 -04:00
|
|
|
* Fri Apr 26 2019 Antonio SJ Musumeci <trapexit@spawn.link>
|
|
|
|
|
- Update description
|
|
|
|
|
|
2016-01-25 09:42:27 -05:00
|
|
|
* Mon Jan 25 2016 Antonio SJ Musumeci <trapexit@spawn.link>
|
|
|
|
|
- Remove sbin files
|
|
|
|
|
|
2015-09-05 17:56:45 -04:00
|
|
|
* Sat Sep 05 2015 Antonio SJ Musumeci <trapexit@spawn.link>
|
|
|
|
|
- Include PREFIX to install
|
|
|
|
|
|
|
|
|
|
* Mon Dec 29 2014 Joe Lawrence <joe.lawrence@stratus.com>
|
|
|
|
|
- Tweak rpmbuild to archive current git HEAD into a tarball, then (re)build in
|
|
|
|
|
the rpmbuild directory -- more complicated but seemingly better suited to
|
|
|
|
|
generate source and debug rpms.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 20 2014 Joe Lawrence <joe.lawrence@stratus.com>
|
|
|
|
|
- Initial rpm spec file.
|