295a75c
Name:           x-tile
47a7b34
Version:        1.8.6
9fa2215
Release:        1%{?dist}
builder 52ef350
Summary:        A GNOME panel applet to tile windows in different ways
295a75c
295a75c
Group:          User Interface/Desktops
295a75c
License:        GPLv2+
builder 52ef350
URL:            http://www.giuspen.com/x-tile/
builder 52ef350
Source0:        http://www.giuspen.com/software/%{name}-%{version}.tar.gz
295a75c
295a75c
BuildRequires:  desktop-file-utils
5383e5e
BuildRequires:  gettext
5383e5e
BuildRequires:  python-setuptools
295a75c
Requires:       gnome-python2-applet
3ef767e
# Owns /usr/lib/bonobo/servers
295a75c
Requires:       libbonobo
9caf3c3
Requires:       %{name}-common = %{version}-%{release}
295a75c
BuildArch:      noarch
295a75c
295a75c
%description
295a75c
X-tile is a GNOME applet for your panel (or optionally a standalone application)
295a75c
that allows you to select a number of windows and tile them in different
295a75c
ways. This is especially useful for comparing products in separate web pages, or
295a75c
for programmers referring to documentation as they are programming.
295a75c
295a75c
9caf3c3
%package common
9caf3c3
Summary:        X-tile common files
9caf3c3
Group:          User Interface/Desktops
9caf3c3
Requires:       gnome-python2-gconf
9caf3c3
Requires:       pygtk2
9caf3c3
BuildArch:      noarch
9caf3c3
9caf3c3
%description common
9caf3c3
X-tile is a GNOME applet for your panel (or optionally a standalone application)
9caf3c3
that allows you to select a number of windows and tile them in different
9caf3c3
ways. This is especially useful for comparing products in separate web pages, or
9caf3c3
for programmers referring to documentation as they are programming.
9caf3c3
9caf3c3
This package contains all the common files needed by x-tile or x-tile-ng.
9caf3c3
9caf3c3
9caf3c3
%package ng
9caf3c3
Summary:        A GTK application to tile windows in different ways
9caf3c3
Group:          User Interface/Desktops
9caf3c3
Requires:       %{name}-common = %{version}-%{release}
9caf3c3
BuildArch:      noarch
9caf3c3
9caf3c3
%description ng
9caf3c3
X-tile is a GNOME applet for your panel (or optionally a standalone application)
9caf3c3
that allows you to select a number of windows and tile them in different
9caf3c3
ways. This is especially useful for comparing products in separate web pages, or
9caf3c3
for programmers referring to documentation as they are programming.
9caf3c3
9caf3c3
This package contains a desktop-independent version of X-tile, which doesn't
9caf3c3
require the GNOME panel and works only without the applet
9caf3c3
9caf3c3
295a75c
%prep
47a7b34
%setup -q -n %{name}_%{version}
295a75c
builder 52ef350
# Remove import of cons module in setup.py, only needed to get the current
builder 52ef350
# version of x-tile and supported languages. The cons module calls the gtk one,
builder 52ef350
# which needs a running graphical session
builder 52ef350
sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py
builder 52ef350
LANGUAGES=$(sed -n "s/^AVAILABLE_LANGS = //p" modules/cons.py)
builder 52ef350
sed -i "s|cons.AVAILABLE_LANGS|$LANGUAGES|" setup.py
builder 52ef350
295a75c
295a75c
%build
47a7b34
%{__python} setup.py build
295a75c
295a75c
295a75c
%install
builder 52ef350
%{__python} setup.py install \
5383e5e
  --no-compile \
5383e5e
  --root $RPM_BUILD_ROOT
5383e5e
5383e5e
%{__python} setup.py --no-panel-applet install \
5383e5e
  --no-compile \
builder 52ef350
  --root $RPM_BUILD_ROOT
295a75c
295a75c
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
9caf3c3
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-ng.desktop
295a75c
295a75c
%find_lang %{name}
295a75c
295a75c
9caf3c3
%files
9caf3c3
%defattr(-,root,root,-)
9caf3c3
%{_bindir}/%{name}
9caf3c3
%{_datadir}/applications/%{name}.desktop
9caf3c3
%{_prefix}/lib/bonobo/servers/*.server
9caf3c3
9caf3c3
9caf3c3
%files -f %{name}.lang common
295a75c
%defattr(-,root,root,-)
builder 52ef350
%doc license
295a75c
%{_datadir}/%{name}
295a75c
%{_datadir}/pixmaps/*.svg
builder 52ef350
%{python_sitelib}/*.egg-info
295a75c
295a75c
9caf3c3
%files ng
9caf3c3
%defattr(-,root,root,-)
9caf3c3
%{_bindir}/%{name}-ng
9caf3c3
%{_datadir}/applications/%{name}-ng.desktop
9caf3c3
9caf3c3
295a75c
%changelog
47a7b34
* Thu Mar 17 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.6-1
47a7b34
- Update to 1.8.6
47a7b34
5383e5e
* Thu Mar 10 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.5-1
5383e5e
- Update to 1.8.5
5383e5e
5383e5e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-2
5383e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5383e5e
9caf3c3
* Wed Dec 08 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.4-1
9caf3c3
- Update to 1.8.4
9caf3c3
- Split x-tile into three packages: x-tile-common, x-tile (GNOME application)
9caf3c3
  and x-tile-ng (desktop-independant application)
9caf3c3
9fa2215
* Mon Nov 22 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.3-1
9fa2215
- Update to 1.8.3
9fa2215
builder 52ef350
* Tue Nov 09 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.2-2
builder 52ef350
- Add missing BuildRequires python2
builder 52ef350
builder 52ef350
* Tue Nov 09 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.2-1
builder 52ef350
- Update to 1.8.2 (no more manual installation, setup.py provided by this
builder 52ef350
  version)
builder 52ef350
builder 52ef350
* Thu Jun  3 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5.2-1
0223da0
- Update to 1.5.2
3ef767e
eb4bfcc
* Wed Jun  2 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5-2
eb4bfcc
- Bump release
eb4bfcc
6f8d65a
* Wed Jun  2 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5-1
6f8d65a
- Update to 1.5
3ef767e
- Drop x-tile-1.4-desktop.patch patch
6f8d65a
d64324d
* Fri May 14 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-3
d64324d
- Remove useless Requires python-psutil
d64324d
- Correct Icon entry in desktop file
d64324d
295a75c
* Sat Apr 24 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-2
295a75c
- Use install instead of cp
295a75c
295a75c
* Mon Apr 12 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-1
295a75c
- Update to 1.4
295a75c
295a75c
* Sun Mar  7 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3.2-1
295a75c
- Update to 1.3.2
295a75c
295a75c
* Mon Feb 22 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3.1-1
295a75c
- Update to 1.3.1
295a75c
- Correct mispelling in %%description
295a75c
- Update .spec from new Python guidelines
295a75c
295a75c
* Tue Jan 12 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3-1
295a75c
- Initial RPM release