File ssdeep.spec of Package ssdeep
#
# spec file for package ssdeep
#
# Copyright (c) 2012 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: ssdeep
Version: 2.7
Release: 0
Summary: Context Triggered Piecewise Hashing values
License: GPL-2.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://www.forensicswiki.org/wiki/Ssdeep
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE ssdeep-dynamic.patch dimstar@opensuse.org -- Link ssdeep dynamically
Patch0: ssdeep-dynamic.patch
BuildRequires: libtool
Requires(pre): %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
ssdeep is a program for computing and matching Context Triggered Piecewise
Hashing values. It is based on a spam detector called spamsum by Andrews
Trigdell
%package -n libfuzzy2
Summary: API for ssdeep
License: GPL-2.0+
Group: Development/Libraries/C and C++
%description -n libfuzzy2
Libraries for ssdeep, the primary library is libfuzzy.*
%package -n libfuzzy-devel
Summary: API for ssdeep
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libfuzzy2 = %{version}
%description -n libfuzzy-devel
Devel API for ssdeep, the primary library is libfuzzy.*
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}
%post -n libfuzzy2 -p /sbin/ldconfig
%postun -n libfuzzy2 -p /sbin/ldconfig
%install
%make_install
# Clean up *.a and *.la files
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_mandir}/man1/*
%files -n libfuzzy2
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/libfuzzy.so.*
%files -n libfuzzy-devel
%defattr(-,root,root)
%{_includedir}/fuzzy.h
%{_libdir}/libfuzzy.so
%changelog