Sisyphus repositório
Última atualização: 30 março 2020 | SRPMs: 17553 | Visitas: 17786364
en ru br
ALT Linux repositórios
S:0.26-alt1
5.0: 0.14-alt1.1
4.1: 0.14-alt1.1
4.0: 0.12-alt2

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname xlib

%def_with python3
#%%def_with check

Name: python-module-%oname
Version: 0.18
Release: alt1

Summary: Python X Library

Group: Development/Python
License: LGPL
Url: https://github.com/python-xlib/python-xlib

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: %name-%version.tar
Patch: python-xlib-perl.patch

#%%setup_python_module Xlib

#%add_python_req_skip audio image video misc

# manually removed: eric

# Automatically added by buildreq on Sun Dec 18 2005
BuildRequires: python-devel python-module-setuptools-tests python-module-setuptools_scm
#python-modules-compiler python-modules-encodings

%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools-tests python3-module-setuptools_scm
#
%endif

%if_with check
BuildRequires: python-module-six
%if_with python3
BuildRequires: python3-module-six
%endif
%endif

%description
The Python X Library is a complete X11R6 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

%package -n python3-module-%oname
Summary: Python X Library
Group: Development/Python3

%description -n python3-module-%oname
The Python X Library is a complete X11R6 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

%package docs
Summary: Documentation and examples for Python X Library
Group: Development/Documentation
BuildArch: noarch

%description docs
The Python X Library is a complete X11R6 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

This package contains documentation and examples for Python X Library.

%prep
%setup
%patch -p1

%if_with python3
cp -fR . ../python3-module-%oname
%endif

%build
%python_build

%if_with python3
pushd ../python3-module-%oname
%python3_build
popd
%endif

pushd doc/html
%make SRCS=$PWD/../src TOPSRC=$PWD/../src/python-xlib.texi
popd

%install
%python_install

%if_with python3
pushd ../python3-module-%oname
%python3_install
popd
%endif

# hack for x86_64 build

test -d %buildroot%_libdir || mv %buildroot%prefix/lib %buildroot%_libdir || :

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

%files
%doc NEWS README.rst LICENSE TODO *.txt
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc NEWS README.rst LICENSE TODO *.txt
%python3_sitelibdir/*
%endif

%files docs
%doc examples doc/html/*.html

%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