File x-tile.spec of Package x-tile

#
# spec file for package x-tile
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           x-tile
Version:        2.5.1
Release:        0
Summary:        Panel applet for tiling windows
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://www.giuspen.com/x-tile/
Source:         http://www.giuspen.com/software/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  python-gtk
BuildRequires:  update-desktop-files
%if 0%{?suse_version} <= 1130
Requires:       python-gnome
Requires:       python-gobject2
%else
Requires:       python-gconf
Requires:       python-gobject
%endif
Requires:       python-gtk
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
X-tile is a GNOME applet for your panel (or optionally a standalone
application, working with kde as well) that allows you to select a
number of windows and tile them in different ways.

This is especially useful for comparing products in separate web pages,
or for programmers refering to documentation as they are programming.

%lang_package
%prep
%setup -q

%build

%install
%{__python} setup.py install --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} -f --root=%{buildroot}
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%suse_update_desktop_file %{name} DesktopUtility

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr(-,root,root)
%doc license
%doc %{_mandir}/man1/x-tile.1.gz
%{_bindir}/x-tile
%{_datadir}/applications/x-tile.desktop
%{_datadir}/icons/hicolor/scalable/apps/x-tile.svg
%{_datadir}/x-tile/
%{python_sitelib}/*.egg-info

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by