Compare commits
10 Commits
2b7fa35f75
...
dcc12cd05b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcc12cd05b | ||
|
|
2863556e2d | ||
|
|
3901e2ab0b | ||
|
|
2d09aacdf8 | ||
|
|
bc2f8d8146 | ||
|
|
d462bde698 | ||
|
|
cc200bfab0 | ||
|
|
6547a5db33 | ||
|
|
26e758e79b | ||
|
|
906f30df09 |
BIN
python-xlib-0.33.tar.gz
Normal file
BIN
python-xlib-0.33.tar.gz
Normal file
Binary file not shown.
97
python-xlib.spec
Normal file
97
python-xlib.spec
Normal file
@ -0,0 +1,97 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-xlib
|
||||
Version: 0.33
|
||||
Release: 1
|
||||
Summary: Python X Library
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://github.com/python-xlib/python-xlib
|
||||
Source0: https://github.com/python-xlib/python-xlib/archive/refs/tags/python-xlib-0.33.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: python3-six
|
||||
|
||||
%global _description\
|
||||
The Python X Library is intended to be a fully functional X client\
|
||||
library for Python programs. It is written entirely in Python, in\
|
||||
contrast to earlier X libraries for Python (the ancient X extension and\
|
||||
the newer plxlib) which were interfaces to the C Xlib.\
|
||||
This is possible to do since X client programs communicate with the X\
|
||||
server via the X protocol. The communication takes place over TCP/IP,\
|
||||
Unix sockets, DECnet or any other streaming network protocol. The C Xlib\
|
||||
is merely an interface to this protocol, providing functions suitable\
|
||||
for a C environment.\
|
||||
There are three advantages of implementing a pure Python library:\
|
||||
- Integration: The library can make use of the wonderful object system\
|
||||
in Python, providing an easy-to-use class hierarchy.\
|
||||
- Portability: The library will be usable on (almost) any computer\
|
||||
which have Python installed. A C interface could be problematic to\
|
||||
port to non-Unix systems, such as MS Windows or OpenVMS.\
|
||||
- Maintainability: It is much easier to develop and debug native Python\
|
||||
modules than modules written in C.
|
||||
%description %_description
|
||||
|
||||
%package -n python3-xlib
|
||||
Summary: Python X Library
|
||||
Provides: python-xlib
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-setuptools_scm
|
||||
%description -n python3-xlib %_description
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for python-xlib
|
||||
Provides: python3-python-xlib-doc
|
||||
%description help %_description
|
||||
|
||||
%prep
|
||||
%autosetup -n python-xlib-0.33
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-xlib -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Mon Feb 27 2023 lvfei <lvfei@kylinos.cn> - 0.33-1
|
||||
- upgrade to 0.33
|
||||
|
||||
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 0.32-2
|
||||
- License compliance rectification
|
||||
|
||||
* Thu Dec 08 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.32-1
|
||||
- Update package to version 0.32
|
||||
|
||||
* Wed Sep 02 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
4
python-xlib.yaml
Normal file
4
python-xlib.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: python-xlib/python-xlib
|
||||
tag_prefix:
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user