568c1ee
Name:           x-tile
Mohamed El Morabity 8d69535
Version:        2.5
67b6742
Release:        6%{?dist}
561dc99
Summary:        A GTK application to tile windows in different ways
568c1ee
568c1ee
Group:          User Interface/Desktops
568c1ee
License:        GPLv2+
builder 9a2be81
URL:            http://www.giuspen.com/x-tile/
Mohamed El Morabity 8d69535
Source0:        http://www.giuspen.com/software/%{name}-%{version}.tar.xz
568c1ee
568c1ee
BuildRequires:  desktop-file-utils
a69bc18
BuildRequires:  gettext
a69bc18
BuildRequires:  python-setuptools
a7aafac
Requires:       gnome-python2-gconf
a7aafac
Requires:       pygtk2
a7aafac
BuildArch:      noarch
a7aafac
561dc99
%description
561dc99
X-tile is a GTK application that allows you to select a number of windows and
561dc99
tile them in different ways. This is especially useful for comparing products in
561dc99
separate web pages, or for programmers referring to documentation as they are
561dc99
programming.
a7aafac
a7aafac
568c1ee
%prep
561dc99
%setup -q
568c1ee
builder 9a2be81
# Remove import of cons module in setup.py, only needed to get the current
6fcffb1
# version of x-tile. The cons module calls the gtk one, which needs a running
6fcffb1
# graphical session
builder 9a2be81
sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py
builder 9a2be81
568c1ee
568c1ee
%build
a417112
%{__python} setup.py build
568c1ee
568c1ee
568c1ee
%install
2e47976
%{__python} setup.py install \
a69bc18
  --no-compile \
builder 9a2be81
  --root $RPM_BUILD_ROOT
568c1ee
e8f78b7
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/x-tile.glade.h
e8f78b7
2e47976
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
568c1ee
561dc99
%find_lang %{name}
a7aafac
a7aafac
6fcffb1
%post
6fcffb1
/bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null || :
6fcffb1
6fcffb1
6fcffb1
%postun
6fcffb1
if [ $1 -eq 0 ] ; then
6fcffb1
  /bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null
6fcffb1
  /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor/ &>/dev/null || :
6fcffb1
fi
6fcffb1
6fcffb1
6fcffb1
%posttrans
6fcffb1
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor/ &>/dev/null || :
6fcffb1
6fcffb1
561dc99
%files -f %{name}.lang
builder 9a2be81
%doc license
561dc99
%{_bindir}/%{name}
568c1ee
%{_datadir}/%{name}
2e47976
%{_datadir}/applications/%{name}.desktop
6fcffb1
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
builder 9a2be81
%{python_sitelib}/*.egg-info
6fcffb1
%{_mandir}/man1/%{name}.1.*
568c1ee
568c1ee
568c1ee
%changelog
67b6742
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-6
67b6742
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
67b6742
4349e9e
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-5
4349e9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4349e9e
ac4b7fe
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-4
ac4b7fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ac4b7fe
ec780b8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
ec780b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ec780b8
e05daf4
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
e05daf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e05daf4
Mohamed El Morabity 8d69535
* Thu Sep 20 2012 Mohamed El Morabity <melmorabity@fedorapeople.org> - 2.5-1
Mohamed El Morabity 8d69535
- Update to 2.5
Mohamed El Morabity 8d69535
6fcffb1
* Wed Jul 18 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.4-1
6fcffb1
- Update to 2.4
6fcffb1
e8f78b7
* Sat Jul 14 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.3.1-1
e8f78b7
- Update to 2.3.1
e8f78b7
- Remove useless Provides/Obsoletes
e8f78b7
84227f7
* Mon Feb 20 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.2.1-1
84227f7
- Update to 2.2.1
84227f7
f555e73
* Tue Jan 03 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.2-1
f555e73
- Update to 2.2
f555e73
32452bf
* Tue Jul 19 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.1-1
32452bf
- Update to 2.1
32452bf
2e47976
* Sun Jul 10 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 2.0-1
2e47976
- Update to 2.0
2e47976
- There is now a single version of x-tile (no more "ng" version), since x-tile
2e47976
  sets now an icon in the notification zone
2e47976
561dc99
* Sun Jun 26 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.9-1
561dc99
- Update to 1.9
561dc99
- Only provide the "no applet" version of x-tile since the applet is no loger
561dc99
  supported by GNOME 3
561dc99
- merge all former subpackages into a single one
561dc99
a417112
* Thu Mar 17 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.6-1
a417112
- Update to 1.8.6
a417112
a69bc18
* Thu Mar 10 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.5-1
a69bc18
- Update to 1.8.5
a69bc18
1b1f787
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.4-2
1b1f787
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1b1f787
a7aafac
* Wed Dec 08 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.8.4-1
a7aafac
- Update to 1.8.4
a7aafac
- Split x-tile into three packages: x-tile-common, x-tile (GNOME application)
a7aafac
  and x-tile-ng (desktop-independant application)
a7aafac
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