File md5deep.spec of Package md5deep
#
# spec file for package md5deep
#
# Copyright (c) 2011 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: md5deep
Version: 3.9.2
Release: 1
License: Public Domain and GPLv2
Summary: Compute MD5, SHA-1, SHA-256, Tiger or Whirlpool message digests
Url: http://md5deep.sourceforge.net/
Group: System/Base
Source0: %{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python
BuildRequires: python-devel
Requires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
md5deep computes the MD5, SHA-1, SHA-256, Tiger, or Whirlpool message digest
for any number of files while optionally recursively digging through the
directory structure. md5deep can also match input files against lists of known
hashes in a variety of formats.
%prep
%setup -q
%build
if test -x ./configure; then
%configure
fi
make
%install
%make_install
# create symlinks for man pages
%fdupes -s %{buildroot}/%{_mandir}
# create hardlinks for the rest
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/hashdeep
%{_bindir}/md5deep
%{_bindir}/sha1deep
%{_bindir}/sha256deep
%{_bindir}/tigerdeep
%{_bindir}/whirlpooldeep
%{_mandir}/man1/hashdeep.1*
%{_mandir}/man1/md5deep.1*
%{_mandir}/man1/sha1deep.1*
%{_mandir}/man1/sha256deep.1*
%{_mandir}/man1/whirlpooldeep.1*
%{_mandir}/man1/tigerdeep.1*
%doc AUTHORS ChangeLog COPYING README NEWS
%changelog