2916fe
Name:           x-tile
e27e5c
Version:        3.3
2916fe
Release:        1%{?dist}
2916fe
Summary:        A GTK application to tile windows in different ways
2916fe
2916fe
License:        GPLv2+
6fe367
URL:            https://www.giuspen.com/x-tile/
6fe367
Source0:        https://github.com/giuspen/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
2916fe
Source1:        %{name}.appdata.xml
2916fe
2916fe
BuildRequires:  desktop-file-utils
2916fe
BuildRequires:  gettext
2916fe
BuildRequires:  libappstream-glib
6fe367
BuildRequires:  python3-devel
6fe367
BuildRequires:  %{py3_dist setuptools}
6fe367
Requires:       %{py3_dist pygobject}
6fe367
Requires:       %{py3_dist pycairo}
6fe367
Requires:       gtk3
6fe367
Requires:       hicolor-icon-theme
2916fe
BuildArch:      noarch
2916fe
2916fe
%description
6fe367
X-tile is an application that allows you to select a number of windows and tile
6fe367
them in different ways.  X-tile works on any X desktop (GNOME, KDE, XFCE,
6fe367
LXDE...).
6fe367
The main features are: many tiling geometries, undo tiling, invert tiling order,
6fe367
optional system tray docking and menu, filter to avoid listing some windows,
6fe367
filter to check some windows by default, command line interface.
2916fe
2916fe
2916fe
%prep
2916fe
%autosetup
2916fe
6fe367
# Remove bundled egg-info
6fe367
rm -rf *.egg-info
6fe367
2916fe
2916fe
%build
6fe367
mkdir -p build/scripts-%{python3_version}/
6fe367
%py3_build
2916fe
2916fe
2916fe
%install
6fe367
%py3_install
2916fe
install -Dpm 0755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
2916fe
install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_metainfodir}/%{name}.appdata.xml
2916fe
2916fe
%find_lang %{name}
2916fe
2916fe
2916fe
%check
2916fe
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
2916fe
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/%{name}.appdata.xml
2916fe
2916fe
2916fe
%files -f %{name}.lang
2916fe
%license license
2916fe
%{_bindir}/%{name}
6fe367
%{python3_sitelib}/X_Tile-*.egg-info
6fe367
%{_datadir}/%{name}/
2916fe
%{_datadir}/applications/%{name}.desktop
6fe367
%{_datadir}/icons/hicolor/*/apps/%{name}.*
2916fe
%{_metainfodir}/%{name}.appdata.xml
6fe367
%{_mandir}/man1/%{name}.1.*
2916fe
2916fe
2916fe
%changelog
e27e5c
* Fri Dec 25 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.3-1
e27e5c
- Update to 3.3
e27e5c
aab5bd
* Mon Sep 07 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.2-1
aab5bd
- Update to 3.2
aab5bd
6fe367
* Mon Aug 31 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.1-1
6fe367
- Initial RPM release, from previously retired package (with contribution of
6fe367
  Vlastimil Holer)