Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37559256
en ru br
ALT Linux repos
S:0.35-alt1

Group :: Development/Python3
RPM: python3-module-pysubnettree

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname pysubnettree

Name: python3-module-%oname
Version: 0.35
Release: alt1

Summary: Provides maps subnets given in CIDR notation to Python objects

License: BSD-style
Group: Development/Python3
Url: https://pypi.org/project/pysubnettree

Source: pysubnettree-%version.tar.gz

Packager: Slava Dubrovskiy <dubrsl at altlinux.ru>

BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++

%description
The PySubnetTree package provides a Python data structure SubnetTree
which maps subnets given in CIDR notation to Python objects. Lookups are
performed by longest-prefix matching.

%prep
%setup -n pysubnettree-%version

%build
# Unfortunately build and install steps should be done at once
# because otherwise .pyo files won't get into INSTALLED_FILES
# record
%add_optflags -fno-strict-aliasing
%python3_build_debug \
   install --optimize=2 \
       --root=`pwd`/buildroot

%install
cp -pr buildroot %buildroot

install -d %buildroot%python3_sitelibdir
cp -fR buildroot/%python3_sitelibdir/* %buildroot%python3_sitelibdir/

unset RPM_PYTHON

%files
%doc CHANGES COPYING README
%python3_sitelibdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin