rpms/dpkt/F-13 dpkt-1.7-r73.patch, NONE, 1.1 dpkt.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Yanko Kaneti
yaneti at fedoraproject.org
Wed Jul 21 12:12:20 UTC 2010
Author: yaneti
Update of /cvs/pkgs/rpms/dpkt/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25469/F-13
Modified Files:
.cvsignore sources
Added Files:
dpkt-1.7-r73.patch dpkt.spec import.log
Log Message:
Initial import in F-13
dpkt-1.7-r73.patch:
http.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- NEW FILE dpkt-1.7-r73.patch ---
Index: dpkt/http.py
===================================================================
--- dpkt/http.py (revision 72)
+++ dpkt/http.py (revision 73)
@@ -15,11 +15,11 @@
line = line.strip()
if not line:
break
- l = line.split(None, 1)
- if not l[0].endswith(':'):
+ l = line.split(':', 1)
+ if len(l[0].split()) != 1:
raise dpkt.UnpackError('invalid header: %r' % line)
- k = l[0][:-1].lower()
- v = len(l) != 1 and l[1] or ''
+ k = l[0].lower()
+ v = len(l) != 1 and l[1].lstrip() or ''
if k in d:
if not type(d[k]) is list:
d[k] = [d[k]]
--- NEW FILE dpkt.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: dpkt
Version: 1.7
Release: 2%{?dist}
Summary: Simple packet creation/parsing python library
Group: Development/Languages
License: BSD
URL: http://dpkt.googlecode.com/
Source0: http://dpkt.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: dpkt-1.7-r73.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
%description
Fast, simple packet creation and parsing python library
with definitions for the basic TCP/IP protocols.
%prep
%setup -q
%patch0 -p0 -b .r73
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES HACKING LICENSE README examples
%{python_sitelib}/*
%changelog
* Tue May 11 2010 Yanko Kaneti <yaneti at declera.com> 1.7-2
- Small summary change
- Pull an upstream http header parsing fix.
* Wed May 5 2010 Yanko Kaneti <yaneti at declera.com> 1.7-1
- Initial package
--- NEW FILE import.log ---
dpkt-1_7-2_fc14:F-13:dpkt-1.7-2.fc14.src.rpm:1279714322
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/dpkt/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 21 Jul 2010 05:22:01 -0000 1.1
+++ .cvsignore 21 Jul 2010 12:12:20 -0000 1.2
@@ -0,0 +1 @@
+dpkt-1.7.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/dpkt/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 21 Jul 2010 05:22:01 -0000 1.1
+++ sources 21 Jul 2010 12:12:20 -0000 1.2
@@ -0,0 +1 @@
+0baa25fd5d87066cf6189a66cf452ac0 dpkt-1.7.tar.gz
More information about the scm-commits
mailing list