2007-01-15 23:12:10 +00:00
|
|
|
#
|
2015-08-03 19:29:01 +00:00
|
|
|
# spec file for package fdupes
|
2007-01-15 23:12:10 +00:00
|
|
|
#
|
2016-11-04 14:33:00 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:12:10 +00:00
|
|
|
#
|
2009-01-22 12:03:22 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:12:10 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2020-04-26 10:13:17 +00:00
|
|
|
%{?!_rpmmacrodir:%define _rpmmacrodir /usr/lib/rpm/macros.d}
|
|
|
|
|
2007-01-15 23:12:10 +00:00
|
|
|
Name: fdupes
|
2020-06-05 14:24:23 +00:00
|
|
|
Version: 2.0.0
|
2012-10-16 11:48:01 +00:00
|
|
|
Release: 0
|
2007-01-15 23:12:10 +00:00
|
|
|
Summary: Identifying or deleting duplicate files
|
2012-02-13 13:09:03 +00:00
|
|
|
License: MIT
|
2015-08-03 19:29:01 +00:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: https://github.com/adrianlopezroche/fdupes
|
2020-06-05 14:24:23 +00:00
|
|
|
Source0: https://github.com/adrianlopezroche/fdupes/releases/download/%{version}/fdupes-%{version}.tar.gz
|
2007-05-17 09:34:40 +00:00
|
|
|
Source1: macros.fdupes
|
2020-06-05 14:24:23 +00:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pcre2-devel
|
2007-01-15 23:12:10 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
FDUPES is a program for identifying or deleting duplicate files
|
2016-11-04 14:33:00 +00:00
|
|
|
residing within specified directories.
|
2007-01-15 23:12:10 +00:00
|
|
|
|
|
|
|
%prep
|
2020-06-05 14:24:23 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2007-01-15 23:12:10 +00:00
|
|
|
|
|
|
|
%build
|
2020-06-05 14:24:23 +00:00
|
|
|
%configure
|
|
|
|
%make_build
|
2007-01-15 23:12:10 +00:00
|
|
|
|
|
|
|
%install
|
2012-10-16 11:48:01 +00:00
|
|
|
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
2019-05-08 09:48:39 +00:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
2007-01-15 23:12:10 +00:00
|
|
|
|
2015-08-03 19:29:01 +00:00
|
|
|
%check
|
|
|
|
./%{name} testdir
|
|
|
|
./%{name} --omitfirst testdir
|
|
|
|
./%{name} --recurse testdir
|
|
|
|
./%{name} --size testdir
|
|
|
|
|
2007-01-15 23:12:10 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc CHANGES
|
2012-10-16 11:48:01 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2019-05-08 09:48:39 +00:00
|
|
|
%{_rpmmacrodir}/macros.%{name}
|
2007-01-15 23:12:10 +00:00
|
|
|
|
2007-05-17 09:34:40 +00:00
|
|
|
%changelog
|