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