%define _legacy_common_support 1 Name: duperemove Version: 0.15.2 Release: 4%{?dist} Summary: Tools for deduping file systems License: GPL-2.0-only URL: https://github.com/markfasheh/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz ExcludeArch: %{ix86} BuildRequires: pkgconfig(libbsd) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(sqlite3) BuildRequires: libgcrypt-devel BuildRequires: xxhash-devel BuildRequires: libatomic BuildRequires: libuuid-devel BuildRequires: gcc BuildRequires: make %description Duperemove is a simple tool for finding duplicated extents and submitting them for deduplication. When given a list of files it will hash their contents on a block by block basis and compare those hashes to each other, finding and categorizing extents that match each other. When given the -d option, duperemove will submit those extents for deduplication using the btrfs-extent-same ioctl. %prep %autosetup # Fix prefix sed -i 's@^PREFIX ?= /usr/local$@PREFIX ?= /usr@' Makefile # Get rid of bundled libraries rm -f xxhash.h ln -s /usr/include/xxhash.h %build %set_build_flags export PREFIX=/usr export VERSION=%{version} export IS_RELEASE=1 %make_build %install %make_install SBINDIR=%{_sbindir} MANDIR=%{_mandir} # This binary doesn't exist anymore rm -f %{buildroot}%{_mandir}/man8/show-shared-extents*.8* %files %doc README.md %license LICENSE %{_mandir}/man8/btrfs-extent-same*.8* %{_mandir}/man8/duperemove*.8* %{_mandir}/man8/hashstats*.8* %{_bindir}/btrfs-extent-same %{_bindir}/duperemove %{_bindir}/hashstats %{_datadir}/zsh/site-functions/_duperemove %changelog * Wed Jul 15 2026 Fedora Release Engineering - 0.15.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 0.15.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Jul 23 2025 Fedora Release Engineering - 0.15.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jun 7 2025 Jonathan Dieter - 0.15.2-1 - Update to version 0.15.2 - Add missing requirement on libbsd - Add missing zsh completion file * Thu Jan 16 2025 Fedora Release Engineering - 0.14.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 0.14.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Mar 18 2024 Jonathan Dieter - 0.14.1-2 - Update to 0.14.1 with bug fixes (thanks Francois Menning for the initial PR) - Disable i686 builds since they're failing now * Wed Jan 24 2024 Fedora Release Engineering - 0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Oct 5 2023 Jonathan Dieter - 0.13-1 - Update to 0.13 with more bugfixes improving deduplication Note that the hash file format has changed and will need to be regenerated * Sat Jul 29 2023 Jonathan Dieter - 0.12-1 - Update to 0.12 with bug fixes * Wed Jul 19 2023 Fedora Release Engineering - 0.11.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.11.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.11.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.11.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 8 2021 Jonathan Dieter - 0.11.3-1 - Update to 0.11.3 with bug fixes - Remove patch to use system xxhash since upstream does that by default now * Wed Jul 21 2021 Fedora Release Engineering - 0.11.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.11.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 03 2020 Jonathan Dieter - 0.11.1-3 - Work around GCC 10 build failure * Tue Jan 28 2020 Fedora Release Engineering - 0.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 10 2019 Jonathan Dieter - 0.11.1-1.1 - Fix build for EPEL-8 * Sun Dec 08 2019 Jonathan Dieter - 0.11.1-1 - New release * Wed Jul 24 2019 Fedora Release Engineering - 0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Oct 20 2018 Jonathan Dieter - 0.11-3 - Add devsettool BR and build for EPEL * Fri Oct 19 2018 Jonathan Dieter - 0.11-2 - Add missing BR - Fix build to use build flags * Sat Oct 13 2018 Jonathan Dieter - 0.11-1 - Bump to 0.11 - Unbundle xxhash * Fri Nov 13 2015 Francesco Frassinelli - 0.10-1 - Version bump; license and minor packaging issues fixed * Thu Jul 30 2015 Francesco Frassinelli - 0.09.5-2 - %%license macro added * Sun Jul 19 2015 Francesco Frassinelli - 0.09.5-1 - Initial build