[python-nmap] switch to py3
Fabian Affolter
fab at fedoraproject.org
Wed Aug 6 14:04:30 UTC 2014
commit f0cc9c5c210329e6a0d4ba9eb3d339b80f45ece8
Author: Fabian Affolter <fabian at affolter-engineering.ch>
Date: Wed Aug 6 11:22:58 2014 +0200
switch to py3
python-nmap.spec | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/python-nmap.spec b/python-nmap.spec
index cd57021..0ac72d4 100644
--- a/python-nmap.spec
+++ b/python-nmap.spec
@@ -3,14 +3,13 @@ Version: 0.3.4
Release: 1%{?dist}
Summary: A python library which helps in using nmap port scanner
-Group: Applications/Engineering
License: GPLv3+
URL: http://xael.org/norman/python/python-nmap/
Source0: http://xael.org/norman/python/python-nmap/%{name}-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: python2-devel
-BuildRequires: python-setuptools
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
Requires: nmap
@@ -22,21 +21,22 @@ It also supports nmap script outputs.
%prep
%setup -q
-sed -i -e '/^#!\//, 1d' nmap/{example.py,nmap.py}
+sed -i -e '/^#!\//, 1d' nmap/nmap.py example.py
%build
-%{__python2} setup.py build
+%{__python3} setup.py build
%install
-%{__python2} setup.py install --skip-build --root %{buildroot}
+%{__python3} setup.py install --skip-build --root %{buildroot}
%files
-%doc CHANGELOG gpl-3.0.txt README.txt
-%{python2_sitelib}/nmap/
-%{python2_sitelib}/*.egg-info
+%doc CHANGELOG gpl-3.0.txt README.txt example.py
+%{python3_sitelib}/nmap/
+%{python3_sitelib}/*.egg-info
%changelog
* Wed Aug 06 2014 Fabian Affolter <mail at fabian-affolter.ch> - 0.3.4-1
+- Switch to py3
- Update the URL and the source URL
- Update to latest upstream version 0.3.4
More information about the scm-commits
mailing list