File ssdeep.spec of Package ssdeep
#
# spec file for package ssdeep (Version 2.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ssdeep
Version: 2.7
Release: 0
Url: http://www.forensicswiki.org/wiki/Ssdeep
# BuildRequires: fftw3-devel gtk2-devel
# Requires: fftw3 gtk2
License: GPL-2.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
PreReq: %install_info_prereq
AutoReqProv: on
Summary: Context Triggered Piecewise Hashing values
Source: %{name}-%{version}.tar.gz
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
Authors:
--------
Jesse Kornblum
%package -n libfuzzy2
License: GPL-2.0+
Group: Development/Libraries/C and C++
Summary: API for ssdeep
%description -n libfuzzy2
Libraries for ssdeep, the primary library is libfuzzy.*
%package -n libfuzzy-devel
License: GPL-2.0+
Group: Development/Libraries/C and C++
Summary: API for ssdeep
Requires: libfuzzy2 = %{version}-%{release}
%description -n libfuzzy-devel
Devel API for ssdeep, the primary library is libfuzzy.*
%prep
%setup
%build
# for unknown reason --disable-static causes a rpm packaging error. Just delete the static lib after build/install.
# %%configure --disable-static
%configure
%{__make} %{?_smp_mflags}
%post -n libfuzzy2 -p /sbin/ldconfig
%postun -n libfuzzy2 -p /sbin/ldconfig
%install
%makeinstall
# Clean up *.a and *.la files
find %{buildroot}%{_libdir} -name '*.a' -type f -delete -print
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