File fdupes.spec of Package fdupes

#
# spec file for package fdupes
#
# Copyright (c) 2016 SUSE LINUX Products 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.40
Release:	1%{?dist}
License:	MIT
Summary:	Tool to find duplicate files in a given set of directories
Url:		http://netdial.caribe.net/~adrian2/fdupes.html
Group:		Applications/File
Source:		http://netdial.caribe.net/~adrian2/programs/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	-post-build-checks

%prep
%setup -q
%{__perl} -pi.orig -e 's|-Wall|%{optflags}|' Makefile

%build
make %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_bindir}
%{__install} -d -m0755 %{buildroot}%{_mandir}/man1/
/bin/cp fdupes %{buildroot}%{_bindir}
#%{__make} install DESTDIR="%{buildroot}" INSTALLDIR="%{_bindir}" MANPAGEDIR="%{_mandir}"
#make install DESTDIR=%{buildroot} %{?_smp_mflags}


%description
Tool to find duplicate files in a given set of directories.



%files
%defattr(-, root, root, 0755)
%doc CHANGES CONTRIBUTORS README TODO
%{_bindir}/fdupes


openSUSE Build Service is sponsored by