%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %define hgdate 20101109 Name: partiwm Version: 0.0.6 Release: 1.%{hgdate}%{?dist} Summary: Partitioning window manager Group: User Interface/X License: GPLv2 URL: http://code.google.com/p/%{name}/ Source0: %{name}-%{hgdate}.tar.bz2 Patch0: partiwm-card32.patch BuildRequires: python-devel pygtk2-devel BuildRequires: Cython BuildRequires: pkgconfig(pygobject-2.0) BuildRequires: pkgconfig(gdk-x11-2.0) BuildRequires: pkgconfig(gtk+-x11-2.0) BuildRequires: pkgconfig(xtst) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xcomposite) BuildRequires: pkgconfig(xdamage) Requires: wimpiggy = %{version}-%{release} %description Parti is a tabbing/tiling (one might say "partitioning") window manager. Its goal is to bring this superior window management interface to modern, mainstream desktop environments. %package -n wimpiggy Summary: PyGTK library for compositing X window managers Group: Development/Tools %description -n wimpiggy PyGTK library for compositing X window managers. %package -n xpra Summary: X Persistent Remote Applications Group: User Interface/X Requires: wimpiggy = %{version}-%{release} %description -n xpra Xpra is 'screen for X' -- it allows you to run X programs, usually on a remote host, direct their display to your local machine, and then to disconnect from these programs and reconnect from the same or another machine, without losing any state. %prep %setup -q -n %{name}-%{hgdate} %patch0 -p1 -b .card32 %build rm -rf $RPM_BUILD_ROOT build install python make_constants_pxi.py wimpiggy/lowlevel/constants.txt wimpiggy/lowlevel/constants.pxi CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README.parti %{_bindir}/parti* %{python_sitearch} %exclude %{python_sitearch}/wimpiggy %exclude %{python_sitearch}/xpra %files -n wimpiggy %defattr(-,root,root,-) %doc COPYING README.wimpiggy %{python_sitearch}/wimpiggy %files -n xpra %defattr(-,root,root,-) %doc COPYING README.xpra %{_bindir}/xpra %{_mandir}/man1/xpra.1* %{python_sitearch}/xpra %changelog * Tue Nov 09 2010 Adam Jackson 0.0.6-0.1.20101109 - Initial packaging.