2021-08-12 16:23:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package jdupes
|
|
|
|
#
|
2023-02-09 18:15:36 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-08-12 16:23:07 +02:00
|
|
|
# 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
|
2023-08-30 09:48:18 +02:00
|
|
|
Version: 1.27.3
|
2021-08-12 16:23:07 +02:00
|
|
|
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
|
2022-03-11 11:13:48 +01:00
|
|
|
Source0: https://github.com/jbruchon/jdupes/archive/refs/tags/v%{version}.tar.gz
|
|
|
|
Source1: macros.jdupes
|
2022-03-14 23:07:30 +01:00
|
|
|
Source2: jdupes_wrapper.cpp
|
|
|
|
BuildRequires: gcc-c++
|
2023-08-30 09:48:18 +02:00
|
|
|
BuildRequires: libjodycode-devel
|
2021-08-12 16:23:07 +02:00
|
|
|
|
|
|
|
%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
|
2023-08-30 09:48:18 +02:00
|
|
|
%make_build \
|
2021-08-12 16:23:07 +02:00
|
|
|
ENABLE_DEDUPE=1 \
|
2022-03-14 23:07:30 +01:00
|
|
|
STATIC_DEDUPE_H=1
|
|
|
|
g++ %{optflags} -O2 -Wall %{SOURCE2} -o jdupes_wrapper
|
2021-08-12 16:23:07 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
2022-03-11 11:13:48 +01:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
2023-08-30 09:48:18 +02:00
|
|
|
install -D -m755 jdupes_wrapper %{buildroot}%{_prefix}/lib/rpm/jdupes_wrapper
|
2022-03-11 11:13:48 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
./jdupes -q -r testdir
|
2021-08-12 16:23:07 +02:00
|
|
|
|
|
|
|
%files
|
2023-08-30 09:48:18 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.txt README.md
|
2021-08-12 16:23:07 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2022-03-11 11:13:48 +01:00
|
|
|
%{_rpmmacrodir}/macros.%{name}
|
2023-08-30 09:48:18 +02:00
|
|
|
%{_prefix}/lib/rpm/jdupes_wrapper
|
2021-08-12 16:23:07 +02:00
|
|
|
|
|
|
|
%changelog
|