python-xlib/python-xlib.spec

129 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-xlib
Version: 0.25
Release: 1mamba
Summary: X client library for Python
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://python-xlib.sourceforge.net/
Source: https://pypi.debian.net/python-xlib/python-xlib-%{version}.tar.bz2
License: GPL
#PreReq: %{__install_info}
Requires: python >= %python_version
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
BuildRequires: texinfo
BuildRequires: tetex
BuildRequires: tetex-dvips
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 doc
Summary: Documentation and examples for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
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 %{name}.
.
%prep
%setup -q
%build
%{__python} setup.py build
#cd doc
#make html ps
#cd html
#rm Makefile texi2html
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#%{__python} setup.py install \
# --root="%{buildroot}" \
# --install-headers=%{_includedir}/python \
# --install-lib=%{python_sitearch}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
chmod a-x examples/*.py
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#%post
#%install_info <pagina-info>
#%preun
#%uninstall_info <pagina-info>
%files
%defattr(-,root,root)
#%{python_sitearch}/python_xlib-0.12-py%{python_version}.egg-info
%dir %{python_sitelib}/Xlib
%{python_sitelib}/Xlib/*.py
%{python_sitelib}/Xlib/*.pyc
%{python_sitelib}/Xlib/*.pyo
%dir %{python_sitelib}/Xlib/ext
%{python_sitelib}/Xlib/ext/*.py
%{python_sitelib}/Xlib/ext/*.pyc
%{python_sitelib}/Xlib/ext/*.pyo
%dir %{python_sitelib}/Xlib/keysymdef
%{python_sitelib}/Xlib/keysymdef/*.py
%{python_sitelib}/Xlib/keysymdef/*.pyc
%{python_sitelib}/Xlib/keysymdef/*.pyo
%dir %{python_sitelib}/Xlib/protocol
%{python_sitelib}/Xlib/protocol/*.py
%{python_sitelib}/Xlib/protocol/*.pyc
%{python_sitelib}/Xlib/protocol/*.pyo
%dir %{python_sitelib}/Xlib/support
%{python_sitelib}/Xlib/support/*.py
%{python_sitelib}/Xlib/support/*.pyc
%{python_sitelib}/Xlib/support/*.pyo
%dir %{python_sitelib}/Xlib/xobject
%{python_sitelib}/Xlib/xobject/*.py
%{python_sitelib}/Xlib/xobject/*.pyc
%{python_sitelib}/Xlib/xobject/*.pyo
%{python_sitelib}/python_xlib-*.egg-info
%doc LICENSE
%files doc
%defattr(-,root,root)
%doc examples doc/html
%changelog
* Sun Sep 22 2019 Automatic Build System <autodist@mambasoft.it> 0.25-1mamba
- automatic version update by autodist
* Wed Jan 30 2019 Automatic Build System <autodist@mambasoft.it> 0.24-1mamba
- automatic version update by autodist
* Sat Mar 24 2018 Automatic Build System <autodist@mambasoft.it> 0.23-1mamba
- automatic version update by autodist
* Sun Mar 18 2018 Automatic Build System <autodist@mambasoft.it> 0.22-1mamba
- automatic version update by autodist
* Tue Dec 19 2017 Automatic Build System <autodist@mambasoft.it> 0.21-1mamba
- automatic update by autodist
* Fri Sep 08 2017 Automatic Build System <autodist@mambasoft.it> 0.20-1mamba
- automatic version update by autodist
* Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 0.19-1mamba
- automatic version update by autodist
* Wed Dec 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18-1mamba
- update to 0.18
* Sat Oct 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15rc1-1mamba
- update to 0.15rc1
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14-2mamba
- python 2.7 mass rebuild
* Sat Jan 10 2009 gil <puntogil@libero.it> 0.14-1mamba
- package created by autospec