## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-safeeyes Version: 3.6.2 Release: %autorelease Summary: Take periodic breaks to protect your eyes License: GPL-3.0-or-later URL: https://github.com/slgobinath/SafeEyes Source: %{pypi_source safeeyes} BuildArch: noarch BuildRequires: cairo-gobject-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk4 BuildRequires: python3-devel BuildRequires: desktop-file-utils BuildRequires: gettext # for notification plugin BuildRequires: libnotify # for smartpause plugin (optional in pyproject.toml) BuildRequires: python3-pywayland # xprintidle does not exist on fedora #Suggests: xprintidle # for healthstats plugin (optional in pyproject.toml) BuildRequires: python3-croniter # Runtime requirements from pyproject.toml (auto-detected at build time); # declared explicitly so local builds check them up front. BuildRequires: python3-babel BuildRequires: python3-xlib # Fill in the actual package description to submit package to Fedora %global _description %{expand: Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder.} %description %_description %package -n python3-safeeyes Summary: %{summary} # Runtime Requires must be on the package that owns the files, not the # (unbuilt) base package -- the top-level Requires: in the original spec # were silently dropped because all files live in this subpackage. Requires: libnotify Requires: (ffmpeg-free or pipewire-utils) Requires: python3-pywayland # for healthstats plugin (optional) Recommends: python3-croniter %description -n python3-safeeyes %_description %prep %autosetup -p1 -n safeeyes-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files -l safeeyes # add metainfo mkdir -p %{buildroot}%{_metainfodir} install -m 644 safeeyes/platform/io.github.slgobinath.SafeEyes.metainfo.xml %{buildroot}%{_metainfodir} # add icons for SIZE_APP in 16 24 32 48 64 128 do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps install -p -m 644 safeeyes/platform/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps/io.github.slgobinath.SafeEyes.png \ %{buildroot}%{_datadir}/icons/hicolor/${SIZE_APP}x${SIZE_APP}/apps/io.github.slgobinath.SafeEyes.png done for SIZE_STATUS in 16 24 32 48 do mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status install -p -m 644 safeeyes/platform/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status/* \ %{buildroot}%{_datadir}/icons/hicolor/${SIZE_STATUS}x${SIZE_STATUS}/status/ done # add desktop entries (main application and the new settings shortcut, added in 3.6.1) desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ safeeyes/platform/io.github.slgobinath.SafeEyes.desktop desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ safeeyes/platform/io.github.slgobinath.SafeEyes.Settings.desktop %check %pyproject_check_import %files -n python3-safeeyes -f %{pyproject_files} %_bindir/safeeyes %{_datadir}/icons/* %{_datadir}/applications/* %{_metainfodir}/* %changelog ## START: Generated by rpmautospec * Wed Nov 25 2026 Archisman Panigrahi - 3.6.2-2 - Add python3-croniter as an optional runtime dependency * Wed Nov 25 2026 Archisman Panigrahi - 3.6.2-1 - translation update * Tue Nov 17 2026 Archisman Panigrahi - 3.6.1-1 - Update to 3.6.1 - Install the new Safe Eyes Settings desktop entry - Fix runtime Requires: attach them to python3-safeeyes instead of the unbuilt base package (inherited bug from the 3.2.0 COPR spec) ## END: Generated by rpmautospec