107 lines
3.1 KiB
RPMSpec
107 lines
3.1 KiB
RPMSpec
|
Name: python-xlib
|
||
|
Version: 0.14
|
||
|
Release: 2mamba
|
||
|
Summary: X client library for Python
|
||
|
Group: System/Libraries/Python
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://python-xlib.sourceforge.net/
|
||
|
Source: http://downloads.sourceforge.net/sourceforge/python-xlib/python-xlib-%{version}.tar.gz
|
||
|
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_sitearch}/Xlib
|
||
|
%{python_sitearch}/Xlib/*.py
|
||
|
%{python_sitearch}/Xlib/*.pyc
|
||
|
%{python_sitearch}/Xlib/*.pyo
|
||
|
%dir %{python_sitearch}/Xlib/ext
|
||
|
%{python_sitearch}/Xlib/ext/*.py
|
||
|
%{python_sitearch}/Xlib/ext/*.pyc
|
||
|
%{python_sitearch}/Xlib/ext/*.pyo
|
||
|
%dir %{python_sitearch}/Xlib/keysymdef
|
||
|
%{python_sitearch}/Xlib/keysymdef/*.py
|
||
|
%{python_sitearch}/Xlib/keysymdef/*.pyc
|
||
|
%{python_sitearch}/Xlib/keysymdef/*.pyo
|
||
|
%dir %{python_sitearch}/Xlib/protocol
|
||
|
%{python_sitearch}/Xlib/protocol/*.py
|
||
|
%{python_sitearch}/Xlib/protocol/*.pyc
|
||
|
%{python_sitearch}/Xlib/protocol/*.pyo
|
||
|
%dir %{python_sitearch}/Xlib/support
|
||
|
%{python_sitearch}/Xlib/support/*.py
|
||
|
%{python_sitearch}/Xlib/support/*.pyc
|
||
|
%{python_sitearch}/Xlib/support/*.pyo
|
||
|
%dir %{python_sitearch}/Xlib/xobject
|
||
|
%{python_sitearch}/Xlib/xobject/*.py
|
||
|
%{python_sitearch}/Xlib/xobject/*.pyc
|
||
|
%{python_sitearch}/Xlib/xobject/*.pyo
|
||
|
%{python_sitearch}/python_xlib-*.egg-info
|
||
|
%doc README COPYING
|
||
|
|
||
|
%files doc
|
||
|
%defattr(-,root,root)
|
||
|
%doc COPYING examples doc/html doc/ps/python-xlib.ps
|
||
|
|
||
|
%changelog
|
||
|
* 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
|