2916fe8
Name:           x-tile
e27e5cd
Version:        3.3
d5144f3
Release:        12%{?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
cb1088a
# Fix build with setuptools >= 61.0
cb1088a
Patch0:         %{name}-3.3-setuptools.patch
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
d5144f3
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-12
d5144f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d5144f3
5d51fef
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-11
5d51fef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5d51fef
d5d2b7b
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.3-10
d5d2b7b
- Rebuilt for Python 3.12
d5d2b7b
725fa0e
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-9
725fa0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
725fa0e
dc09aea
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-8
dc09aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
dc09aea
cb1088a
* Mon Jun 27 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.3-7
cb1088a
- Fix build with setuptools >= 61.0
cb1088a
71ef17c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.3-6
71ef17c
- Rebuilt for Python 3.11
71ef17c
44378d6
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-5
44378d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
44378d6
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)