Michal Ambroz 305255
%global         gituser         CoreSecurity
Michal Ambroz 305255
%global         gitname         pcapy
Michal Ambroz 305255
%global         commit          b91a418374d1636408c435f11799ef725ef70097
Michal Ambroz 305255
%global         commitdate      20170116
Michal Ambroz 305255
Michal Ambroz 305255
%global         shortcommit     %(c=%{commit}; echo ${c:0:7})
Michal Ambroz 305255
%global         sum             A Python interface to libpcap
Michal Ambroz 305255
Michal Ambroz 305255
%global         with_tests      0
Michal Ambroz 305255
Michal Ambroz 305255
Michal Ambroz 305255
Michal Ambroz 305255
Name:           pcapy
819dc9
Version:        0.11.5
3ff776
Release:        8%{?dist}
Michal Ambroz 305255
Summary:        %{sum}
Michal Ambroz 305255
Michal Ambroz 305255
License:        ASL 1.1
Michal Ambroz 305255
URL:            https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
Michal Ambroz 305255
#               http://oss.coresecurity.com/projects/pcapy.html
Michal Ambroz 305255
#               https://github.com/CoreSecurity/pcapy/releases
Michal Ambroz 305255
#Source0:       https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Michal Ambroz 305255
Source0:        https://github.com/%{gituser}/%{gitname}/archive/%{version}.tar.gz#/%{gitname}-%{version}.tar.gz
Michal Ambroz 305255
c4a346
BuildRequires:  gcc-c++
f1409e
BuildRequires:  python3-devel
7227aa
BuildRequires:  python3-setuptools
Michal Ambroz 305255
BuildRequires:  libpcap-devel
09bb63
09bb63
%description
09bb63
Pcapy is a Python extension module that interfaces with the libpcap
09bb63
packet capture library. Pcapy enables python scripts to capture packets
09bb63
on the network. Pcapy is highly effective when used in conjunction with 
09bb63
a packet-handling package such as Impacket, which is a collection of 
09bb63
Python classes for constructing and dissecting network packets.
09bb63
Michal Ambroz 305255
Michal Ambroz 305255
Michal Ambroz 305255
#===== the python3 package definition
Michal Ambroz 305255
%package -n python3-%{gitname}
Michal Ambroz 305255
Summary:        %{sum}
Michal Ambroz 305255
Michal Ambroz 305255
%{?python_provide:%python_provide python3-%{gitname}}
Michal Ambroz 305255
Michal Ambroz 305255
%description -n python3-%{gitname}
Michal Ambroz 305255
Python3 package of %{gitname}.
Michal Ambroz 305255
Pcapy is a Python extension module that interfaces with the libpcap
Michal Ambroz 305255
packet capture library. Pcapy enables python scripts to capture packets
Michal Ambroz 305255
on the network. Pcapy is highly effective when used in conjunction with
Michal Ambroz 305255
a packet-handling package such as Impacket, which is a collection of
Michal Ambroz 305255
Python classes for constructing and dissecting network packets.
Michal Ambroz 305255
Michal Ambroz 305255
Michal Ambroz 305255
09bb63
%prep
09bb63
%setup -q
09bb63
09bb63
%build
Michal Ambroz 305255
%py3_build
09bb63
09bb63
#fix encodings
09bb63
sed -i 's/\r//' LICENSE
09bb63
sed -i 's/\r//' README
09bb63
sed -i 's/\r//' pcapy.html
09bb63
iconv -f IBM850 -t UTF8 pcapy.html > pcapy.html.tmp
09bb63
mv pcapy.html.tmp pcapy.html
09bb63
09bb63
09bb63
%install
Michal Ambroz 305255
%py3_install
Michal Ambroz 305255
Michal Ambroz 305255
rm -rf %{buildroot}/usr/share/doc/pcapy
09bb63
Michal Ambroz 305255
%files -n python3-%{gitname}
Michal Ambroz 305255
%license LICENSE
f1409e
%doc README pcapy.html
Michal Ambroz 305255
%{python3_sitearch}/*
09bb63
09bb63
09bb63
%changelog
3ff776
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.5-8
3ff776
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3ff776
7227aa
* Tue Jun 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.11.5-7
7227aa
- BR python3-setuptools
7227aa
d67fc9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11.5-6
d67fc9
- Rebuilt for Python 3.9
d67fc9
5a207f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.5-5
5a207f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5a207f
73a9ce
* Sat Oct 12 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.11.5-4
73a9ce
- Drop Python 2.
73a9ce
cdbb0c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.5-3
cdbb0c
- Rebuilt for Python 3.8
cdbb0c
343844
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.5-2
343844
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
343844
819dc9
* Mon Jul 08 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.11.5-1
819dc9
- 0.11.5
819dc9
22bda5
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-4
22bda5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
22bda5
6e60af
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-3
6e60af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6e60af
05c736
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11.4-2
05c736
- Rebuilt for Python 3.7
05c736
f1409e
* Wed Jun 20 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.11.4-1
f1409e
- 0.11.4
f1409e
Michal Ambroz 305255
* Sun Mar 11 2018 Michal Ambroz <rebus _AT seznam.cz> - 0.11.1-1
Michal Ambroz 305255
- bump to version 0.11.1
Michal Ambroz 305255
b3cf03
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.8-14
b3cf03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b3cf03
1a60ef
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10.8-13
1a60ef
- Update Python 2 dependency declarations to new packaging standards
1a60ef
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1a60ef
d1ce04
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.8-12
d1ce04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d1ce04
065e30
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.8-11
065e30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
065e30
ee1ffa
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.8-10
ee1ffa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ee1ffa
96fb41
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-9
96fb41
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
96fb41
2f7066
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.8-8
2f7066
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2f7066
a0e152
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-7
a0e152
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a0e152
9a863d
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.10.8-6
9a863d
- Rebuilt for GCC 5 C++11 ABI change
9a863d
adea7d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-5
adea7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
adea7d
eb998e
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-4
eb998e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
eb998e
0ffa6d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-3
0ffa6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0ffa6d
1d2690
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.8-2
1d2690
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1d2690
11d189
* Wed Jan 23 2013 Jon Ciesla <limburgher@gmail.com> - 0.10.8-1
11d189
- Latest upstream, BZ 901992.
11d189
afb03f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-11
afb03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
afb03f
b2abf4
* Tue Jan 17 2012 Jon Ciesla <limburgher@gmail.com> - 0.10.5-10
b2abf4
- Fixed file listing.
b2abf4
fce748
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-9
fce748
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fce748
ca0c0c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-8
ca0c0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ca0c0c
cbfebf
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10.5-7
cbfebf
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cbfebf
92464c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-6
92464c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
92464c
9906b2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-5
9906b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9906b2
a79ce7
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.5-4
a79ce7
- Rebuild for Python 2.6
a79ce7
9baea9
* Fri Feb 08 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-3
9baea9
- GCC 4.3 rebuild.
9baea9
309236
* Thu Jan 03 2008 Jon Ciesla <limb@jcomserv.net> - 0.10.5-2
309236
- Fixed file listing.
309236
09bb63
* Thu Nov 29 2007 Jon Ciesla <limb@jcomserv.net> - 0.10.5-1
09bb63
- create.