568c1ee
Name:           x-tile
725ffac
Version:        1.5.2
725ffac
Release:        1%{?dist}
568c1ee
Summary:        A GNOME panel applet to tile windows
568c1ee
568c1ee
Group:          User Interface/Desktops
568c1ee
License:        GPLv2+
568c1ee
URL:            http://open.vitaminap.it/en/x_tile.htm
725ffac
Source0:        http://open.vitaminap.it/software/%{name}-%{version}.tar.gz
568c1ee
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
568c1ee
568c1ee
BuildRequires:  desktop-file-utils
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
568c1ee
# Remove shebangs
0ca81a0
for file in modules/*.py; do
568c1ee
  sed -i.orig -e 1d $file && \
568c1ee
  touch -r $file.orig $file && \
568c1ee
  rm $file.orig
568c1ee
done
568c1ee
568c1ee
568c1ee
%build
568c1ee
568c1ee
568c1ee
%install
568c1ee
rm -rf $RPM_BUILD_ROOT
568c1ee
e725f25
install -Dpm 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
e725f25
install -Dpm 0644  linux/%{name}.server $RPM_BUILD_ROOT%{_prefix}/lib/bonobo/servers/%{name}.server
e725f25
install -Dpm 0644  linux/%{name}.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.svg
113c0c0
desktop-file-install \
113c0c0
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
725ffac
  linux/%{name}.desktop
113c0c0
0ca81a0
e725f25
pushd glade
e725f25
for file in *.{glade,png,svg}; do
0ca81a0
  install -Dpm 0644 $file $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/$file
568c1ee
done
e725f25
popd
0ca81a0
e725f25
pushd modules
e725f25
for file in *.py; do
568c1ee
install -Dp -m 0644 $file $RPM_BUILD_ROOT%{_datadir}/%{name}/modules/$file
568c1ee
done
e725f25
popd
0ca81a0
568c1ee
install -d $RPM_BUILD_ROOT%{_datadir}/locale
568c1ee
cp -a locale/{fr,it,ru,zh_TW} $RPM_BUILD_ROOT%{_datadir}/locale
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,-)
0ca81a0
%doc license readme
568c1ee
%{_bindir}/*
568c1ee
%{_datadir}/%{name}
568c1ee
%{_datadir}/applications/*.desktop
568c1ee
%{_datadir}/pixmaps/*.svg
568c1ee
%{_prefix}/lib/bonobo/servers/*.server
568c1ee
568c1ee
568c1ee
%changelog
725ffac
* 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