|
builder |
9a2be81 |
%if ! (0%{?fedora} > 12)
|
|
builder |
9a2be81 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
builder |
9a2be81 |
%endif
|
|
builder |
9a2be81 |
|
|
|
568c1ee |
Name: x-tile
|
|
|
6d266d8 |
Version: 1.8.3
|
|
|
6d266d8 |
Release: 1%{?dist}
|
|
builder |
9a2be81 |
Summary: A GNOME panel applet to tile windows in different ways
|
|
|
568c1ee |
|
|
|
568c1ee |
Group: User Interface/Desktops
|
|
|
568c1ee |
License: GPLv2+
|
|
builder |
9a2be81 |
URL: http://www.giuspen.com/x-tile/
|
|
builder |
9a2be81 |
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.gz
|
|
|
568c1ee |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
568c1ee |
|
|
|
568c1ee |
BuildRequires: desktop-file-utils
|
|
builder |
5c056d9 |
BuildRequires: python2
|
|
|
568c1ee |
Requires: gnome-python2-applet
|
|
|
568c1ee |
Requires: gnome-python2-gconf
|
|
|
113c0c0 |
# Owns /usr/lib/bonobo/servers
|
|
|
568c1ee |
Requires: libbonobo
|
|
|
568c1ee |
BuildArch: noarch
|
|
|
568c1ee |
|
|
|
568c1ee |
%description
|
|
|
568c1ee |
X-tile is a GNOME applet for your panel (or optionally a standalone application)
|
|
|
568c1ee |
that allows you to select a number of windows and tile them in different
|
|
|
568c1ee |
ways. This is especially useful for comparing products in separate web pages, or
|
|
|
568c1ee |
for programmers referring to documentation as they are programming.
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%prep
|
|
|
0ca81a0 |
%setup -q
|
|
|
568c1ee |
|
|
builder |
9a2be81 |
# Remove import of cons module in setup.py, only needed to get the current
|
|
builder |
9a2be81 |
# version of x-tile and supported languages. The cons module calls the gtk one,
|
|
builder |
9a2be81 |
# which needs a running graphical session
|
|
builder |
9a2be81 |
sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py
|
|
builder |
9a2be81 |
LANGUAGES=$(sed -n "s/^AVAILABLE_LANGS = //p" modules/cons.py)
|
|
builder |
9a2be81 |
sed -i "s|cons.AVAILABLE_LANGS|$LANGUAGES|" setup.py
|
|
builder |
9a2be81 |
|
|
builder |
9a2be81 |
# Fix permissions
|
|
builder |
9a2be81 |
chmod 0644 glade/*.svg linux/*
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%build
|
|
builder |
9a2be81 |
%{__python} setup.py build
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%install
|
|
|
568c1ee |
rm -rf $RPM_BUILD_ROOT
|
|
builder |
9a2be81 |
%{__python} setup.py install \
|
|
builder |
9a2be81 |
--skip-build \
|
|
builder |
9a2be81 |
--root $RPM_BUILD_ROOT
|
|
|
568c1ee |
|
|
builder |
9a2be81 |
# Remove useless header x-tile.glade.h
|
|
builder |
9a2be81 |
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/x-tile.glade.h
|
|
|
568c1ee |
|
|
|
568c1ee |
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
|
|
568c1ee |
|
|
|
568c1ee |
%find_lang %{name}
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%clean
|
|
|
568c1ee |
rm -rf $RPM_BUILD_ROOT
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%files -f %{name}.lang
|
|
|
568c1ee |
%defattr(-,root,root,-)
|
|
builder |
9a2be81 |
%doc license
|
|
|
568c1ee |
%{_bindir}/*
|
|
|
568c1ee |
%{_datadir}/%{name}
|
|
|
568c1ee |
%{_datadir}/applications/*.desktop
|
|
|
568c1ee |
%{_datadir}/pixmaps/*.svg
|
|
|
568c1ee |
%{_prefix}/lib/bonobo/servers/*.server
|
|
builder |
9a2be81 |
%{python_sitelib}/*.egg-info
|
|
|
568c1ee |
|
|
|
568c1ee |
|
|
|
568c1ee |
%changelog
|
|
|
6d266d8 |
* Mon Nov 22 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.3-1
|
|
|
6d266d8 |
- Update to 1.8.3
|
|
|
6d266d8 |
|
|
builder |
5c056d9 |
* Tue Nov 09 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.2-2
|
|
builder |
5c056d9 |
- Add missing BuildRequires python2
|
|
builder |
5c056d9 |
|
|
builder |
9a2be81 |
* Tue Nov 09 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.2-1
|
|
builder |
9a2be81 |
- Update to 1.8.2 (no more manual installation, setup.py provided by this
|
|
builder |
9a2be81 |
version)
|
|
builder |
9a2be81 |
|
|
builder |
9a2be81 |
* Thu Jun 3 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5.2-1
|
|
|
725ffac |
- Update to 1.5.2
|
|
|
113c0c0 |
|
|
|
c00f47a |
* Wed Jun 2 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5-2
|
|
|
c00f47a |
- Bump release
|
|
|
c00f47a |
|
|
|
0ca81a0 |
* Wed Jun 2 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.5-1
|
|
|
0ca81a0 |
- Update to 1.5
|
|
|
113c0c0 |
- Drop x-tile-1.4-desktop.patch patch
|
|
|
0ca81a0 |
|
|
|
4e69605 |
* Fri May 14 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-3
|
|
|
4e69605 |
- Remove useless Requires python-psutil
|
|
|
4e69605 |
- Correct Icon entry in desktop file
|
|
|
4e69605 |
|
|
|
568c1ee |
* Sat Apr 24 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-2
|
|
|
568c1ee |
- Use install instead of cp
|
|
|
568c1ee |
|
|
|
568c1ee |
* Mon Apr 12 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.4-1
|
|
|
568c1ee |
- Update to 1.4
|
|
|
568c1ee |
|
|
|
568c1ee |
* Sun Mar 7 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3.2-1
|
|
|
568c1ee |
- Update to 1.3.2
|
|
|
568c1ee |
|
|
|
568c1ee |
* Mon Feb 22 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3.1-1
|
|
|
568c1ee |
- Update to 1.3.1
|
|
|
568c1ee |
- Correct mispelling in %%description
|
|
|
568c1ee |
- Update .spec from new Python guidelines
|
|
|
568c1ee |
|
|
|
568c1ee |
* Tue Jan 12 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.3-1
|
|
|
568c1ee |
- Initial RPM release
|