SHA256
1
0
forked from pool/fdupes
fdupes/fdupes.spec
Ismail Dönmez bb7f5ba608 Accepting request 438708 from home:psimons:branches:utilities
Drop 50_bts284274_hardlinkreplace.dpatch. The --linkhard option
added by this patch has an implementation bug that can cause data
loss. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677419
has more details.

OBS-URL: https://build.opensuse.org/request/show/438708
OBS-URL: https://build.opensuse.org/package/show/utilities/fdupes?expand=0&rev=15
2016-11-04 16:07:06 +00:00

62 lines
1.9 KiB
RPMSpec

#
# spec file for package fdupes
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: fdupes
Version: 1.6.1
Release: 0
Summary: Identifying or deleting duplicate files
License: MIT
Group: Productivity/Archiving/Compression
Url: https://github.com/adrianlopezroche/fdupes
Source0: https://github.com/adrianlopezroche/fdupes/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: macros.fdupes
#PATCH-FIX-SUSE: fix patch according distro's needs
Patch0: fdupes-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FDUPES is a program for identifying or deleting duplicate files
residing within specified directories.
%prep
%setup -q
%patch0
%build
make %{?_smp_mflags} COMPILER_OPTIONS="%{optflags}"
%install
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}
%check
./%{name} testdir
./%{name} --omitfirst testdir
./%{name} --recurse testdir
./%{name} --size testdir
%files
%defattr(-, root, root)
%doc CHANGES
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%config %{_sysconfdir}/rpm/macros.%{name}
%changelog