[halberd] Imported new Source RPM

Fabian Affolter fab at fedoraproject.org
Mon Aug 16 18:25:37 UTC 2010


commit 594bd6eec807ae5706c072440ea0245b49be18ba
Author: Fabian Affolter <fabian at bernewireless.net>
Date:   Mon Aug 16 20:23:44 2010 +0200

    Imported new Source RPM

 dead.package          |    1 -
 halberd-hashlib.patch |   11 ++++++
 halberd.spec          |   86 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 98 insertions(+), 1 deletions(-)
---
diff --git a/halberd-hashlib.patch b/halberd-hashlib.patch
new file mode 100644
index 0000000..3924f02
--- /dev/null
+++ b/halberd-hashlib.patch
@@ -0,0 +1,11 @@
+--- halberd-0.2.3/Halberd/clues/Clue.py.orig	2010-08-14 11:14:19.241044429 +0200
++++ halberd-0.2.3/Halberd/clues/Clue.py	2010-08-14 11:26:54.332784188 +0200
+@@ -30,7 +30,7 @@
+ import rfc822
+ 
+ try:
+-    from sha import new as hashfn
++    from hashlib import sha1 as hashfn
+ except ImportError:
+     from md5 import new as hashfn
+ 
diff --git a/halberd.spec b/halberd.spec
new file mode 100644
index 0000000..e7a058a
--- /dev/null
+++ b/halberd.spec
@@ -0,0 +1,86 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
+
+Name:           halberd
+Version:        0.2.3
+Release:        3%{?dist}
+Summary:        Tool to discover HTTP load balancers
+
+Group:          Applications/Internet
+License:        GPLv2+
+URL:            http://halberd.superadditive.com
+Source0:        http://halberd.superadditive.com/dist/%{name}-%{version}.tar.gz
+Patch0:         halberd-hashlib.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  python-devel
+
+
+%description
+Halberd discovers HTTP load balancers. It is useful for web application
+security auditing and for load balancer configuration testing.
+
+%prep
+%setup -q
+%patch0 -p1 -b .hashlib
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+mkdir -p %{buildroot}%{_mandir}/man1
+mv %{buildroot}/usr/man/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+
+ 
+%clean
+rm -rf %{buildroot}
+
+
+%check
+%{__python} setup.py test
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog LICENSE NEWS README THANKS
+%{_mandir}/man*/*.*
+%{_bindir}/%{name}
+%{python_sitelib}/Halberd/
+%{python_sitelib}/%{name}*.egg-info
+
+
+%changelog
+* Sat Aug 14 2010 Fabian Affolter <fabian at bernewireless.net> - 0.2.3-3
+- Added patch to replace deprecated sha module
+
+* Sun Jun 20 2010 Fabian Affolter <fabian at bernewireless.net> - 0.2.3-2
+- Put the man page in the right place
+- Changed from define to global
+- Added files to doc
+
+* Wed Apr 01 2009 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 0.2.3-1
+- New upstream release
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.2.2-4
+- Rebuild for Python 2.6
+
+* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.2.2-3
+- fix license tag
+
+* Wed May 30 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.2.2-1
+- New upstream release
+
+* Mon May 28 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.2.1-3
+- Bump release for rebuild
+
+* Thu May 03 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.2.1-1
+- Initial build
diff --git a/sources b/sources
new file mode 100644
index 0000000..b6d82b4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3d90556573d0d347dac53ddad6412071  halberd-0.2.3.tar.gz


More information about the scm-commits mailing list