forked from pool/fdupes
Accepting request 138346 from home:mvyskocil:branches:utilities
- update to 1.5.0-PR2 * new "--summarize" option * new "--recurse:" selective recursion option * new "--noprompt" option for totally automated deletion of duplicate files. * sorts duplicates (old to new) for consistent order when listing or deleteing duplicate files. * tests for early matching of files, which should help speed up the matching process when large files are involved. * warns whenever a file cannot be deleted. * bugfixes (proper file closing, zero-length files, ...) - add -p/--permissions switch so files with different permissions or uid/gid are not considered as duplicates (bnc#784670) * this mode is a default one for fdupes macro - refresh all patches - drop the fdupes-sort-output.diff - use the upstream mtime sorting - add the debian patches - see spec file for details OBS-URL: https://build.opensuse.org/request/show/138346 OBS-URL: https://build.opensuse.org/package/show/utilities/fdupes?expand=0&rev=6
This commit is contained in:
70
fdupes.spec
70
fdupes.spec
@@ -16,20 +16,40 @@
|
||||
#
|
||||
|
||||
Name: fdupes
|
||||
Url: http://premium.caribe.net/~adrian2/fdupes.html
|
||||
Group: Productivity/Archiving/Compression
|
||||
Version: 1.50
|
||||
Release: 0
|
||||
Summary: Identifying or deleting duplicate files
|
||||
Version: 1.40
|
||||
Release: 111
|
||||
Url: http://code.google.com/p/fdupes/
|
||||
Group: Productivity/Archiving/Compression
|
||||
License: MIT
|
||||
Source0: %name-%{version}.tar.bz2
|
||||
Source0: http://fdupes.googlecode.com/files/fdupes-1.50-PR2.tar.gz
|
||||
Source1: macros.fdupes
|
||||
Patch0: %name.diff
|
||||
Patch1: fdupes-sort-output.diff
|
||||
#PATCH-FIX-OPENSUSE - bnc#406825
|
||||
Patch2: fdupes-speedup.patch
|
||||
#PATCH-FIX-OPENSUSE - bnc#406825
|
||||
Patch3: fdupes-endianness.patch
|
||||
#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: support for large files
|
||||
Patch4: 0004-Large-file-support-for-2GB-files-bts447601.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
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version}
|
||||
BuildRequires: which
|
||||
@@ -40,11 +60,19 @@ FDUPES is a program for identifying or deleting duplicate files
|
||||
residing within specified directories
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n %name-%{version}-PR2
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2 -p0 -b .speedup
|
||||
%patch3 -p1 -b .endianness
|
||||
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
echo -e "#!/bin/bash\n`which %__cc` \"\$@\"" >gcc
|
||||
@@ -53,15 +81,15 @@ export PATH=`pwd`:$PATH
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
install -D -m755 fdupes $RPM_BUILD_ROOT/usr/bin/fdupes
|
||||
install -D -m644 fdupes.1 $RPM_BUILD_ROOT/usr/share/man/man1/fdupes.1
|
||||
install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/rpm/macros.fdupes
|
||||
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}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc CHANGES
|
||||
%{_prefix}/bin/fdupes
|
||||
%{_mandir}/*/*
|
||||
/etc/rpm
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
%config %{_sysconfdir}/rpm/macros.%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user