[x-tile/f14/master] - Update to 1.8.2
Mohamed ElMorabity
melmorabity at fedoraproject.org
Tue Nov 9 21:52:12 UTC 2010
commit 39c2447de56c70db14ee3b5064141c64c2f94ea9
Author: builder <builder at localhost.localdomain>
Date: Tue Nov 9 22:51:50 2010 +0100
- Update to 1.8.2
.gitignore | 1 +
sources | 2 +-
x-tile.spec | 70 +++++++++++++++++++++++++++++-----------------------------
3 files changed, 37 insertions(+), 36 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d615edf..fd44c0d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
x-tile-1.5.2.tar.gz
+/x-tile-1.8.2.tar.gz
diff --git a/sources b/sources
index 811db2c..f837fd4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dcda97bdae0bcf70acd530a42d2239a9 x-tile-1.5.2.tar.gz
+1151c0ef43db4c8a2b33d61bc58361b1 x-tile-1.8.2.tar.gz
diff --git a/x-tile.spec b/x-tile.spec
index 82f6f1f..c5b8cbd 100644
--- a/x-tile.spec
+++ b/x-tile.spec
@@ -1,15 +1,20 @@
+%if ! (0%{?fedora} > 12)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
Name: x-tile
-Version: 1.5.2
-Release: 1%{?dist}
-Summary: A GNOME panel applet to tile windows
+Version: 1.8.2
+Release: 2%{?dist}
+Summary: A GNOME panel applet to tile windows in different ways
Group: User Interface/Desktops
License: GPLv2+
-URL: http://open.vitaminap.it/en/x_tile.htm
-Source0: http://open.vitaminap.it/software/%{name}-%{version}.tar.gz
+URL: http://www.giuspen.com/x-tile/
+Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
+BuildRequires: python2
Requires: gnome-python2-applet
Requires: gnome-python2-gconf
# Owns /usr/lib/bonobo/servers
@@ -26,42 +31,29 @@ for programmers referring to documentation as they are programming.
%prep
%setup -q
-# Remove shebangs
-for file in modules/*.py; do
- sed -i.orig -e 1d $file && \
- touch -r $file.orig $file && \
- rm $file.orig
-done
+# Remove import of cons module in setup.py, only needed to get the current
+# version of x-tile and supported languages. The cons module calls the gtk one,
+# which needs a running graphical session
+sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py
+LANGUAGES=$(sed -n "s/^AVAILABLE_LANGS = //p" modules/cons.py)
+sed -i "s|cons.AVAILABLE_LANGS|$LANGUAGES|" setup.py
+
+# Fix permissions
+chmod 0644 glade/*.svg linux/*
%build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --root $RPM_BUILD_ROOT
-install -Dpm 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
-install -Dpm 0644 linux/%{name}.server $RPM_BUILD_ROOT%{_prefix}/lib/bonobo/servers/%{name}.server
-install -Dpm 0644 linux/%{name}.svg $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.svg
-desktop-file-install \
- --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
- linux/%{name}.desktop
-
-
-pushd glade
-for file in *.{glade,png,svg}; do
- install -Dpm 0644 $file $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/$file
-done
-popd
-
-pushd modules
-for file in *.py; do
-install -Dp -m 0644 $file $RPM_BUILD_ROOT%{_datadir}/%{name}/modules/$file
-done
-popd
-
-install -d $RPM_BUILD_ROOT%{_datadir}/locale
-cp -a locale/{fr,it,ru,zh_TW} $RPM_BUILD_ROOT%{_datadir}/locale
+# Remove useless header x-tile.glade.h
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/x-tile.glade.h
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
@@ -74,16 +66,24 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
-%doc license readme
+%doc license
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.svg
%{_prefix}/lib/bonobo/servers/*.server
+%{python_sitelib}/*.egg-info
%changelog
-* Thu Jun 10 2010 ELMORABITY Mohamed <melmorabity at fedoraproject.org> 1.5.2-1
+* Tue Nov 09 2010 Mohamed El Morabity <melmorabity at fedoraproject.org> - 1.8.2-2
+- Add missing BuildRequires python2
+
+* Tue Nov 09 2010 Mohamed El Morabity <melmorabity at fedoraproject.org> - 1.8.2-1
+- Update to 1.8.2 (no more manual installation, setup.py provided by this
+ version)
+
+* Thu Jun 3 2010 ELMORABITY Mohamed <melmorabity at fedoraproject.org> 1.5.2-1
- Update to 1.5.2
* Wed Jun 2 2010 ELMORABITY Mohamed <melmorabity at fedoraproject.org> 1.5-2
More information about the scm-commits
mailing list