diff --git a/python-dpkt.spec b/python-dpkt.spec new file mode 100644 index 0000000..5e29e21 --- /dev/null +++ b/python-dpkt.spec @@ -0,0 +1,44 @@ +%define modname dpkt +Name: python-%{modname} +Version: 1.5 +Release: 1 +Summary: Fast, simple packet creation and parsing +URL: http://monkey.org/~dugsong/dpkt/ +License: Other License(s), see package +Group: Development/Libraries/Python +Source: %{modname}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-buildroot +%{py_requires} +BuildRequires: python-devel python-xml epydoc + +%description +Fast, simple packet creation / parsing, with definitions for the basic TCP/IP +protocols. + +Authors: +-------- + Dug Song + +%prep +%setup -q -n %{modname}-%{version} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +python setup.py build +make doc + +%install +rm -rf %{buildroot} +python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc doc examples AUTHORS CHANGES HACKING LICENSE README + +%changelog + +* Wed Sep 06 2006 - James Oakley - 1.5-1 +- Initial release