## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: bees Version: 0.10 Release: %autorelease Summary: Best-Effort Extent-Same, a btrfs dedupe agent License: GPL-3.0-only AND MIT AND Zlib URL: https://github.com/Zygo/bees Source: %{url}/archive/v%{version}/%{name}-v%{version}.tar.gz # https://github.com/Zygo/bees/pull/286 Patch0: 286.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: btrfs-progs-devel BuildRequires: systemd-rpm-macros %description bees is a block-oriented userspace deduplication agent designed for large btrfs filesystems. It is an offline dedupe combined with an incremental data scan capability to minimize time data spends on disk from write to dedupe. %prep %autosetup -p1 %conf cat < localconf BEES_VERSION=v%{version} DEFAULT_MAKE_TARGET=all LIBEXEC_PREFIX=%{_libexecdir}/%{name} LIB_PREFIX=%{_libdir} PREFIX=%{_prefix} SYSTEMD_SYSTEM_UNIT_DIR=%{_unitdir} EOF %build %make_build %install %make_install %post %systemd_post 'bees@*.service' %preun %systemd_preun 'bees@*.service' %postun %systemd_postun_with_restart 'bees@*.service' %check make test %files %license COPYING %doc README.md %{_sbindir}/beesd %{_libexecdir}/%{name} %{_unitdir}/beesd@.service %{_sysconfdir}/%{name}/ %config %{_sysconfdir}/%{name}/beesd.conf.sample %changelog ## START: Generated by rpmautospec * Fri Aug 16 2024 Kyle Gospodnetich - 0.10-1 - Initial import (fedora#2299972). ## END: Generated by rpmautospec