packages: python-pynids/python-pynids.spec (NEW) - new

glen glen at pld-linux.org
Sat Jul 17 19:58:32 CEST 2010


Author: glen                         Date: Sat Jul 17 17:58:32 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-pynids:
   python-pynids.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-pynids/python-pynids.spec
diff -u /dev/null packages/python-pynids/python-pynids.spec:1.1
--- /dev/null	Sat Jul 17 19:58:32 2010
+++ packages/python-pynids/python-pynids.spec	Sat Jul 17 19:58:26 2010
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+%define 	module	pynids
+Summary:	Python wrapper for libnids, a Network Intrusion Detection System library
+Name:		python-%{module}
+Version:	0.6.1
+Release:	1
+License:	GPL v2
+Group:		Development/Languages/Python
+Source0:	http://jon.oberheide.org/pynids/downloads/pynids-%{version}.tar.gz
+# Source0-md5:	6ce600d0130b0feec9a3797a27825d15
+URL:		http://jon.oberheide.org/pynids/
+BuildRequires:	libnet-devel
+BuildRequires:	libpcap-devel
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pynids is a Python wrapper for libnids, a Network Intrusion Detection
+System library offering sniffing, IP defragmentation, TCP stream
+reassembly and TCP port scan detection. Let your own Python routines
+examine network conversations.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README Example
+%attr(755,root,root) %{py_sitedir}/*.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/pynids-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/07/17 17:58:26  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list