# # spec file for package fdupes # # Copyright (c) 2022-2023 ZhuningOS # %{?!_rpmmacrodir:%define _rpmmacrodir /usr/lib/rpm/macros.d} Name: fdupes Version: 2.1.2 Release: 150400.1.86 Summary: Tool to identify or delete duplicate files License: MIT Group: Productivity/Archiving/Compression Url: https://github.com/adrianlopezroche/fdupes Source0: https://github.com/adrianlopezroche/fdupes/releases/download/v%{version}/fdupes-%{version}.tar.gz Source1: macros.fdupes %description FDUPES is a program for identifying or deleting duplicate files residing within specified directories. %prep %autosetup -p1 %build %configure --without-ncurses %make_build %install %make_install install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.%{name} %check ./%{name} testdir ./%{name} --omitfirst testdir ./%{name} --recurse testdir ./%{name} --size testdir %files %doc CHANGES %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_rpmmacrodir}/macros.%{name} %changelog