public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/azote] rawhide: spec modernization, fix BR and Requires rhbz#2377207
@ 2026-06-15  6:58 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-15  6:58 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/azote
            Branch : rawhide
            Commit : 38784b609639e47731bf8fe44f9d7c3d59870e69
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-11T20:49:22-03:00
            Stats  : +28/-40 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/azote/c/38784b609639e47731bf8fe44f9d7c3d59870e69?branch=rawhide

            Log:
            spec modernization, fix BR and Requires rhbz#2377207

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index 0ca2a3a..6f6064b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,22 +1 @@
-/azote-1.7.10.tar.gz
-/azote-1.7.12.tar.gz
-/azote-1.7.14.tar.gz
-/azote-1.7.15.tar.gz
-/azote-1.8.0.tar.gz
-/azote-1.8.1.tar.gz
-/azote-1.8.2.tar.gz
-/azote-1.9.0.tar.gz
-/azote-1.9.1.tar.gz
-/azote-1.9.2.tar.gz
-/azote-1.9.3.tar.gz
-/azote-1.9.5.tar.gz
-/azote-1.9.7.tar.gz
-/azote-1.10.1.tar.gz
-/azote-1.11.0.tar.gz
-/azote-1.12.3.tar.gz
-/azote-1.12.5.tar.gz
-/azote-1.12.7.tar.gz
-/azote-1.12.9.tar.gz
-/azote-1.13.0.tar.gz
-/azote-1.15.0.tar.gz
-/azote-1.16.0.tar.gz
+/azote-*.tar.gz

diff --git a/azote.spec b/azote.spec
index 7f6999c..c416af0 100644
--- a/azote.spec
+++ b/azote.spec
@@ -11,18 +11,24 @@ Summary:   Wallpaper and color manager for Sway, i3 and some other WMs
 License:   GPL-3.0-only and BSD-1-Clause
 
 URL:       https://github.com/nwg-piotr/azote
-Source0:   %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Source:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 
 BuildRequires: desktop-file-utils
-BuildRequires: python3
-BuildRequires: python3-setuptools
+BuildRequires: gobject-introspection
+BuildRequires: gtk3
+BuildRequires: python3-cairo
 BuildRequires: python3-devel
+BuildRequires: python3-gobject
+BuildRequires: python3-pillow
+BuildRequires: python3-send2trash
 
+Requires: gtk3
+Requires: python3-cairo
 Requires: python3-pillow
 Requires: python3-gobject
 Requires: ((feh and xrandr) if Xserver)
 Requires: ((swaybg and wlr-randr) if wayfire)
-Requires: python3-cairo
+Requires: python3-xlib
 
 Recommends: python3-pillow-jxl-plugin
 Recommends: python3-send2trash
@@ -41,34 +47,37 @@ window managers, on Arch Linux, Void Linux, Debian and Fedora.
 
 %prep
 %autosetup -p1
+for lib in %{name}/*.py; do
+ sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
+ touch -r $lib $lib.new &&
+ mv $lib.new $lib
+done
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
-#desktop-file-edit --set-icon %{_datadir}/pixmaps/%{name}.svg dist/%{name}.desktop
+%pyproject_install
+%pyproject_save_files -l %{name}
 install -p -D -m 0644 -t %{buildroot}/%{_datadir}/applications dist/%{name}.desktop
 install -p -D -m 0644 -t %{buildroot}/%{_datadir}/%{name} dist/*.png dist/*.svg
 install -p -D -m 0644 -t %{buildroot}/%{_datadir}/pixmaps dist/azote.svg
 desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
-for lib in %{buildroot}%{python3_sitelib}/%{name}/*.py; do
- sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
- touch -r $lib $lib.new &&
- mv $lib.new $lib
-done
 
-%files
-%{python3_sitelib}/%{name}/
-%{python3_sitelib}/%{name}-*.egg-info/
+%check
+%pyproject_check_import
+
+%files -f %{pyproject_files}
 %{_bindir}/%{name}
 %{_datadir}/%{name}/
-%{_datadir}/pixmaps/*
-%{_datadir}/applications/*
+%{_datadir}/pixmaps/%{name}.svg
+%{_datadir}/applications/%{name}.desktop
 
 %doc README.md
 
-%license LICENSE LICENSE-COLORTHIEF
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15  6:58 [rpms/azote] rawhide: spec modernization, fix BR and Requires rhbz#2377207 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox