File python-ipcalc.spec of Package python-ipcalc
#
# spec file for package python-ipcalc
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-ipcalc
BuildRequires: python-devel
URL: http://pypi.python.org/pypi/ipcalc
License: MIT
Group: Productivity/Networking/Utilities
Autoreqprov: on
Version: 0.1
Release: 1
Summary: IP subnet calculator
Source: http://pypi.python.org/packages/source/i/ipcalc/ipcalc-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%description
This module allows you to perform IP subnet calculations, there is support for both IPv4 and IPv6 CIDR notation.
See http://pypi.python.org/pypi/ipcalc
Authors:
--------
Wijnand Modderman <wijnand at wijnand name>
%prep
%setup -n ipcalc-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog -n python-ipcalc