Browse Source

add ipaddress module

master
parent
commit
e7dbecbeb4
  1. 15
      python-net/python-net.spec

15
python-net/python-net.spec

@ -35,6 +35,7 @@
%define V_ipy 0.42
%define V_netaddr 0.7.12
%define V_autobahn 0.9.2
%define V_ipaddress 1.0.15
# package information
Name: python-net
@ -59,6 +60,7 @@ Source5: http://pypi.python.org/packages/source/g/ghettoq/ghettoq-%{V_ghett
Source6: http://c0re.23.nu/c0de/IPy/IPy-%{V_ipy}.tar.gz
Source7: http://pypi.python.org/packages/source/n/netaddr/netaddr-%{V_netaddr}.tar.gz
Source8: http://pypi.python.org/packages/source/a/autobahn/autobahn-%{V_autobahn}.zip
Source9: http://pypi.python.org/packages/source/i/ipaddress/ipaddress-%{V_ipaddress}.tar.gz
# build information
BuildPreReq: OpenPKG, openpkg >= 20140101, python >= %{V_python}
@ -117,6 +119,11 @@ PreReq: python-setup, python-util
url = https://pypi.python.org/pypi/autobahn
regex = autobahn-(__VER__)\.zip
}
prog python-net:ipaddress = {
version = %{V_ipaddress}
url = https://pypi.python.org/pypi/ipaddress
regex = ipaddress-(__VER__)\.tar\.gz
}
%prep
%setup -q -c
@ -128,6 +135,7 @@ PreReq: python-setup, python-util
%setup -q -T -D -a 6
%setup -q -T -D -a 7
%setup -q -T -D -a 8
%setup -q -T -D -a 9
%build
@ -195,6 +203,13 @@ PreReq: python-setup, python-util
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd ipaddress-%{V_ipaddress}
PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
%{l_prefix}/bin/python \
setup.py install \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save