jdupes/jdupes.spec
Enrico Belleri cfc8ce809c Accepting request 1106140 from home:jubalh:branches:utilities
- Update to 1.27.3:
  * Fix crash on Linux when opening a file for hashing fails

- Update to 1.27.2:
  * Hash database no longer crashes on 32-bit and x32 systems
  * Hash database now uses 64-bit time and size counts

- Update to 1.27.1:
  * Fix a hash database corruption bug

- Update to 1.27.0:
  * Added long-awaited hash database feature -y (SEE README BEFORE USING)
  * Removed legacy long options that were deprecated in v1.20.0
  * -E option was moved to -e and now throws an error (CHECK YOUR SCRIPTS)
  * Multiple hash algorithm capability added, but no user option exists yet
  * Linux: use posix_fadvise() to improve read performance
  * Fixed possible infinite loop freezing on certain errors when linking files
  * Removed annoying warning for -Q; the user deserves what the user asks for

- Update to 1.26.1:
  * Fix '-P early' to actually work correctly

- Update to 1.26.0:
  * Change -C to use KiB instead of bytes for easier typing

- Update to 1.25.3:
  * Fix CTRL+C broken during scanning phase
  * Added verbose error information for dedupe errors 22 and 95
  * Partial-only flag for dedupe is no longer inappropriately enabled on macOS
  * Build now enables dedupe support and uses nearby libjodycode by default

OBS-URL: https://build.opensuse.org/request/show/1106140
OBS-URL: https://build.opensuse.org/package/show/utilities/jdupes?expand=0&rev=10
2023-08-30 07:48:18 +00:00

67 lines
2.1 KiB
RPMSpec

#
# spec file for package jdupes
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2019-2020 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: jdupes
Version: 1.27.3
Release: 0
Summary: A powerful duplicate file finder and an enhanced fork of 'fdupes'
License: MIT
Group: Productivity/File utilities
URL: https://github.com/jbruchon/jdupes
Source0: https://github.com/jbruchon/jdupes/archive/refs/tags/v%{version}.tar.gz
Source1: macros.jdupes
Source2: jdupes_wrapper.cpp
BuildRequires: gcc-c++
BuildRequires: libjodycode-devel
%description
A program for identifying and taking actions upon duplicate files.
A WORD OF WARNING: jdupes IS NOT a drop-in compatible replacement for fdupes!
Do not blindly replace fdupes with jdupes in scripts and expect everything to
work the same way. Option availability and meanings differ between the two
programs.
%prep
%setup -q
%build
%make_build \
ENABLE_DEDUPE=1 \
STATIC_DEDUPE_H=1
g++ %{optflags} -O2 -Wall %{SOURCE2} -o jdupes_wrapper
%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.%{name}
install -D -m755 jdupes_wrapper %{buildroot}%{_prefix}/lib/rpm/jdupes_wrapper
%check
./jdupes -q -r testdir
%files
%license LICENSE.txt
%doc CHANGES.txt README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_rpmmacrodir}/macros.%{name}
%{_prefix}/lib/rpm/jdupes_wrapper
%changelog