%define snapshot 5 Name: blindelephant Version: 1.0 Release: %mkrel 0.%{snapshot}.1 Summary: Web Application Finger Printer License: LGPL Group: Networking/Other URL: http://blindelephant.sourceforge.net/ Source: %{name}-%{snapshot}.tar.bz2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description The BlindElephant Web Application Fingerprinter attempts to discover the version of a (known) web application by comparing static files at known locations against precomputed hashes for versions of those files in all all available releases. The technique is fast, low-bandwidth, non-invasive, generic, and highly automatable. %prep %setup -q -n %{name} %build cd src python setup.py build %install rm -rf %{buildroot} pushd src python setup.py install --root=%{buildroot} popd install -d -m 755 %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/blindelephant <<EOF #!/bin/sh python %{py_sitedir}/blindelephant/BlindElephant.py EOF chmod +x %{buildroot}%{_bindir}/blindelephant install -d -m 755 %{buildroot}%{_datadir}/%{name}/shell-scripts install -m 755 tools/shell-scripts/* \ %{buildroot}%{_datadir}/%{name}/shell-scripts/ %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README doc/* %{_bindir}/blindelephant %{py_sitedir}/blindelephant %{py_sitedir}/BlindElephant-1.0-py%{pyver}.egg-info %{_datadir}/%{name} %changelog * Wed May 18 2011 Guillaume Rousse <guillomovitch@mandriva.org> 1.0-0.5.1mdv2011.0 + Revision: 676002 - import blindelephant