11Name: python-safeeyes
2- Version: 2 .2.3
2+ Version: 3 .2.0
33Release: %autorelease
44Summary: Take periodic breaks to protect your eyes
55
@@ -11,11 +11,26 @@ BuildArch: noarch
1111
1212BuildRequires: cairo-gobject-devel
1313BuildRequires: gobject-introspection-devel
14- BuildRequires: gtk3
15- BuildRequires: libnotify
14+ BuildRequires: gtk4
1615BuildRequires: python3-devel
17- BuildRequires: python3-gobject
18- BuildRequires: python3-psutil
16+ BuildRequires: desktop-file-utils
17+ BuildRequires: gettext
18+
19+ # for audiblealert plugin
20+ Requires: (ffmpeg-free or pipewire-utils)
21+ # for notification plugin
22+ Requires: libnotify
23+
24+ # for smartpause plugin (optional in pyproject.toml)
25+ BuildRequires: python3-pywayland
26+ Requires: python3.13dist(pywayland)
27+
28+ # xprintidle does not exist on fedora
29+ #Suggests: xprintidle
30+
31+ # for healthstats plugin (optional in pyproject.toml)
32+ BuildRequires: python3-croniter
33+
1934
2035# Fill in the actual package description to submit package to Fedora
2136%global _description %{expand:
@@ -46,15 +61,38 @@ Summary: %{summary}
4661# Add top-level Python module names here as arguments, you can use globs
4762%pyproject_save_files -l safeeyes
4863
64+ # add metainfo
65+ mkdir -p %{buildroot }%{_metainfodir }
66+ install -m 644 safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml %{buildroot }%{_metainfodir }
67+
68+ # add icons
69+ for SIZE_APP in 16 24 32 48 64 128
70+ do
71+ mkdir -p %{buildroot }%{_datadir }/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps
72+ install -p -m 644 safeeyes/platform/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps/io.github.slgobinath.SafeEyes.png \
73+ %{buildroot }%{_datadir }/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps/io.github.slgobinath.SafeEyes.png
74+ done
75+
76+ for SIZE_STATUS in 16 24 32 48
77+ do
78+ mkdir -p %{buildroot }%{_datadir }/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status
79+ install -p -m 644 safeeyes/platform/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status/* \
80+ %{buildroot }%{_datadir }/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status/
81+ done
82+
83+ desktop-file-install \
84+ --dir= %{buildroot }%{_datadir }/applications \
85+ safeeyes/platform/io.github.slgobinath.SafeEyes.desktop
4986
5087%check
5188%pyproject_check_import
5289
5390
5491%files -n python3-safeeyes -f %{pyproject_files }
5592%_bindir /safeeyes
56- %python3_sitelib %_datadir /applications/*
57- %python3_sitelib %_datadir /icons/
93+ %{_datadir }/icons/*
94+ %{_datadir }/applications/*
95+ %{_metainfodir }/*
5896
5997%changelog
6098%autochangelog
0 commit comments