From fed754275210ec36512b158f46a62c89e519a06b Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Aug 03 2018 17:22:44 +0000 Subject: - update to 2.5.1 - spec cleanup --- diff --git a/x-tile.spec b/x-tile.spec index 78c0db6..8b099a6 100644 --- a/x-tile.spec +++ b/x-tile.spec @@ -1,16 +1,16 @@ Name: x-tile -Version: 2.5 -Release: 11%{?dist} +Version: 2.5.1 +Release: 1%{?dist} Summary: A GTK application to tile windows in different ways -Group: User Interface/Desktops License: GPLv2+ URL: http://www.giuspen.com/x-tile/ Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz BuildRequires: desktop-file-utils BuildRequires: gettext -BuildRequires: python2-setuptools +BuildRequires: pygtk2 +BuildRequires: python2-devel Requires: gnome-python2-gconf Requires: pygtk2 BuildArch: noarch @@ -23,40 +23,40 @@ programming. %prep -%setup -q - -# Remove import of cons module in setup.py, only needed to get the current -# version of x-tile. The cons module calls the gtk one, which needs a running -# graphical session -sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py +%autosetup %build -%{__python} setup.py build +mkdir -p build/scripts-%{python2_version}/ +%py2_build %install -%{__python} setup.py install \ - --no-compile \ - --root $RPM_BUILD_ROOT +%py2_install +install -Dpm 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name} + +%find_lang %{name} -rm $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/x-tile.glade.h +%check desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop -%find_lang %{name} %files -f %{name}.lang -%doc license +%license license %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.svg -%{python_sitelib}/*.egg-info +%{python2_sitelib}/*.egg-info %{_mandir}/man1/%{name}.1.* %changelog +* Fri Aug 03 2018 Mohamed El Morabity - 2.5.1-1 +- Update to 2.5.1 +- Spec cleanup + * Fri Feb 09 2018 Fedora Release Engineering - 2.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild