2007-01-16 00:12:10 +01:00
|
|
|
#
|
2015-08-03 21:29:01 +02:00
|
|
|
# spec file for package fdupes
|
2007-01-16 00:12:10 +01:00
|
|
|
#
|
2015-08-03 21:29:01 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:12:10 +01:00
|
|
|
#
|
2009-01-22 13:03:22 +01: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-16 00:12:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-08-03 21:29:01 +02:00
|
|
|
|
2007-01-16 00:12:10 +01:00
|
|
|
Name: fdupes
|
2015-08-03 21:29:01 +02:00
|
|
|
Version: 1.51
|
2012-10-16 13:48:01 +02:00
|
|
|
Release: 0
|
2007-01-16 00:12:10 +01:00
|
|
|
Summary: Identifying or deleting duplicate files
|
2012-02-13 14:09:03 +01:00
|
|
|
License: MIT
|
2015-08-03 21:29:01 +02:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: https://github.com/adrianlopezroche/fdupes
|
|
|
|
Source0: https://github.com/adrianlopezroche/%{name}/archive/%{name}-%{version}.tar.gz
|
2007-05-17 11:34:40 +02:00
|
|
|
Source1: macros.fdupes
|
2012-10-16 13:48:01 +02:00
|
|
|
#PATCH-FIX-SUSE: fix patch according distro's needs
|
|
|
|
Patch0: fdupes-makefile.patch
|
|
|
|
# I'v imported all patches from Debian (Fedora and Gentoo has the subset only)
|
|
|
|
# to git and added there as individual patches
|
|
|
|
# TODO: export the git repo or upstream it
|
|
|
|
#PATCH-FIX-DEBIAN: obsoletes partly the speedup patch
|
|
|
|
Patch1: 0001-restore-pristine-code.patch
|
|
|
|
#PATCH-FIX-DEBIAN: minor typo in man page
|
|
|
|
Patch2: 0002-Added-to-escape-minus-signs-in-manpage-lintian-warni.patch
|
|
|
|
#PATCH-FIX-DEBIAN: dtto
|
|
|
|
Patch3: 0003-Fix-a-typo-in-a-manpage-bts353789.patch
|
|
|
|
#PATCH-FIX-DEBIAN: manpage fix
|
|
|
|
Patch5: 0005-add-summarize-to-manpage-bts481809.patch
|
|
|
|
#PATCH-FIX-DEBIAN: dtto
|
|
|
|
Patch6: 0006-add-nohidden-support-bts511702.patch
|
|
|
|
#PATCH-FIX-DEBIAN: manpage fix
|
|
|
|
Patch7: 0007-Disambiguate-the-options-recurse-and-recurse-bts5371.patch
|
|
|
|
#PATCH-FIX-OPENSUSE: speedup the compare
|
|
|
|
Patch8: 0008-speedup-the-file-compare.patch
|
|
|
|
#PATCH-FIX-OPENSUSE: endianness check in md5.h
|
|
|
|
Patch9: 0009-glibc-endianness-check-in-md5.patch
|
|
|
|
#PATCH-FIX-OPENSUSE: -p/--permissions mode
|
|
|
|
Patch10: 0010-add-permissions-mode.patch
|
2014-05-02 17:10:09 +02:00
|
|
|
#PATCH-FIX-OPENSUSE: -o/--order mode
|
|
|
|
Patch11: 0011-add-an-option-to-sort-duplicate-files-by-name.patch
|
2014-12-24 19:10:56 +01:00
|
|
|
#PATCH-FIX-DEBIAN: add -L/--linkhard
|
|
|
|
Patch20: 50_bts284274_hardlinkreplace.dpatch
|
2007-01-16 00:12:10 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
FDUPES is a program for identifying or deleting duplicate files
|
|
|
|
residing within specified directories
|
|
|
|
|
|
|
|
%prep
|
2015-08-03 21:29:01 +02:00
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2009-08-28 17:44:52 +02:00
|
|
|
%patch0
|
2012-10-16 13:48:01 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2014-05-02 17:10:09 +02:00
|
|
|
%patch11 -p1
|
2014-12-24 19:10:56 +01:00
|
|
|
%patch20 -p1
|
2007-01-16 00:12:10 +01:00
|
|
|
|
|
|
|
%build
|
2015-08-03 21:29:01 +02:00
|
|
|
make %{?_smp_mflags} COMPILER_OPTIONS="%{optflags}"
|
2007-01-16 00:12:10 +01:00
|
|
|
|
|
|
|
%install
|
2012-10-16 13:48:01 +02:00
|
|
|
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.%{name}
|
2007-01-16 00:12:10 +01:00
|
|
|
|
2015-08-03 21:29:01 +02:00
|
|
|
%check
|
|
|
|
./%{name} testdir
|
|
|
|
./%{name} --omitfirst testdir
|
|
|
|
./%{name} --recurse testdir
|
|
|
|
./%{name} --size testdir
|
|
|
|
|
2007-01-16 00:12:10 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc CHANGES
|
2012-10-16 13:48:01 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%config %{_sysconfdir}/rpm/macros.%{name}
|
2007-01-16 00:12:10 +01:00
|
|
|
|
2007-05-17 11:34:40 +02:00
|
|
|
%changelog
|