Sisyphus repositório
Última atualização: 21 agosto 2019 | SRPMs: 17343 | Visitas: 14696639
en ru br
ALT Linux repositórios
S:1.0.5-alt1.git20170715.1

Group :: Desenvolvimento/Python
RPM: python-module-mf2py

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname mf2py

%def_with python3

Name: python-module-%oname
Version: 1.0.5
Release: alt1.git20170715.1
Summary: Python Microformats2 parser
License: MIT
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/mf2py/

# https://github.com/tommorris/mf2py.git

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools
BuildRequires: python-module-requests
BuildRequires: python-module-BeautifulSoup4 python-module-nose
BuildRequires: python-module-gunicorn
BuildRequires: python-module-mock
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-requests
BuildRequires: python3-module-BeautifulSoup4 python3-module-nose
BuildRequires: python3-module-mock
%endif

%py_provides %oname
%py_requires html5lib requests bs4 flask gunicorn

%description
Python parser for microformats 2. Full-featured and mostly stable.
Implements the full mf2 spec, including backward compatibility with
microformats1.

%if_with python3
%package -n python3-module-%oname
Summary: Python Microformats2 parser
Group: Development/Python3
%py3_provides %oname
%py3_requires html5lib requests bs4 flask gunicorn

%description -n python3-module-%oname
Python parser for microformats 2. Full-featured and mostly stable.
Implements the full mf2 spec, including backward compatibility with
microformats1.
%endif

%prep
%setup

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

%build
export LC_ALL=en_US.UTF-8
%python_build_debug

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

%install
export LC_ALL=en_US.UTF-8
%python_install

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

%check
export LC_ALL=en_US.UTF-8
python setup.py test
#nosetests -v
%if_with python3
pushd ../python3
python3 setup.py test
#nosetests3 -v
popd
%endif

%files
%doc AUTHORS *.md doc/source/*.rst
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc AUTHORS *.md doc/source/*.rst
%python3_sitelibdir/*
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009