diff --git a/python-xlib.spec b/python-xlib.spec index 1e8f46b..10629a5 100644 --- a/python-xlib.spec +++ b/python-xlib.spec @@ -1,5 +1,5 @@ Name: python-xlib -Version: 0.27 +Version: 0.29 Release: 1mamba Summary: X client library for Python Group: System/Libraries/Python @@ -7,17 +7,15 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://python-xlib.sourceforge.net/ -Source: https://pypi.debian.net/python-xlib/python-xlib-%{version}.tar.bz2 +Source: https://pypi.debian.net/python-xlib/python-xlib-%{version}.tar.gz License: GPL -#PreReq: %{__install_info} -Requires: python >= %python_version ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(six) ## 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. @@ -25,68 +23,39 @@ The Python X Library is a complete X11R6 client-side implementation, written in %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}. -. + +%if 0%{?with_pyver} +%pyver_package +%endif + %prep %setup -q %build -%{__python} setup.py build -#cd doc -#make html ps -#cd html -#rm Makefile texi2html +CFLAGS="%{optflags}" %{__python} setup.py build %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 +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -#%post -#%install_info - -#%preun -#%uninstall_info - -%files +%files %{?pyappend} -f %{name}.filelist %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 +%dir %{python_sitearch}/python_xlib-%{version}-py*.egg-info +%{python_sitearch}/python_xlib-%{version}-py*.egg-info/* %doc LICENSE %files doc @@ -94,6 +63,9 @@ chmod a-x examples/*.py %doc examples doc/html %changelog +* Sun May 09 2021 Silvan Calarco 0.29-1mamba +- update to 0.29 + * Thu Apr 09 2020 Automatic Build System 0.27-1mamba - automatic version update by autodist