rpms/pcapy/F-7 pcapy.spec,NONE,1.1 sources,1.1,1.2

Jon Ciesla (limb) fedora-extras-commits at redhat.com
Thu Dec 6 14:12:57 UTC 2007


Author: limb

Update of /cvs/pkgs/rpms/pcapy/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10105

Modified Files:
	sources 
Added Files:
	pcapy.spec 
Log Message:
Initial import.



--- NEW FILE pcapy.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: pcapy
Version: 0.10.5
Release:  1%{?dist}
Summary: A Python interface to libpcap

Group: Development/Languages
License: ASL 1.1
URL: http://oss.coresecurity.com/projects/pcapy.html
Source0: http://oss.coresecurity.com/repo/pcapy-0.10.5.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
BuildRequires: python-devel, libpcap-devel

%description
Pcapy is a Python extension module that interfaces with the libpcap
packet capture library. Pcapy enables python scripts to capture packets
on the network. Pcapy is highly effective when used in conjunction with 
a packet-handling package such as Impacket, which is a collection of 
Python classes for constructing and dissecting network packets.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

#fix encodings
sed -i 's/\r//' LICENSE
sed -i 's/\r//' README
sed -i 's/\r//' pcapy.html
iconv -f IBM850 -t UTF8 pcapy.html > pcapy.html.tmp
mv pcapy.html.tmp pcapy.html


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

rm -rf $RPM_BUILD_ROOT/usr/share/doc/pcapy

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE README pcapy.html
%attr(0755,root,root) %{python_sitearch}/%{name}.so

%changelog
* Thu Nov 29 2007 Jon Ciesla <limb at jcomserv.net> - 0.10.5-1
- create.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pcapy/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Dec 2007 20:04:23 -0000	1.1
+++ sources	6 Dec 2007 14:12:23 -0000	1.2
@@ -0,0 +1 @@
+1dcff6af494f3d6763f457aa86aa0853  pcapy-0.10.5.tar.gz




More information about the fedora-extras-commits mailing list