Sisyphus repository
Last update: 18 august 2019 | SRPMs: 17338 | Visits: 14654503
en ru br
ALT Linux repos
S:0.2.2-alt3.1

Group :: Development/Python
RPM: python-module-fabrickit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname fabrickit

%def_without python3
%def_disable check

Name: python-module-%oname
Version: 0.2.2
Release: alt3
Summary: Fabric API wrapper
License: Free
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/fabrickit/

Source: %oname-%version.tar.gz

BuildRequires: python-devel python-module-setuptools-tests
BuildRequires: python-module-Fabric
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools-tests
BuildRequires: python3-module-Fabric
BuildRequires: python-tools-2to3
%endif

%py_provides %oname
%py_requires fabric

%description
This is a simple fabric wrapper for emitting Exceptions and several
utils.

%if_with python3
%package -n python3-module-%oname
Summary: Fabric API wrapper
Group: Development/Python3
%py3_provides %oname
%py3_requires fabric

%description -n python3-module-%oname
This is a simple fabric wrapper for emitting Exceptions and several
utils.
%endif

%prep
%setup -q -n %{oname}-%{version}

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%check
python setup.py test
%if_with python3
pushd ../python3
python3 setup.py test
popd
%endif

%files
%doc PKG-INFO
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc PKG-INFO
%python3_sitelibdir/*
%endif

%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