## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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.2.0 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: libnotify BuildRequires: python3-devel BuildRequires: desktop-file-utils Requires: (ffmpeg-free or pipewire-utils) # This is an optional dependency in pyproject.toml, but fails the import checker BuildRequires: python3-pywayland # 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} %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} 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 desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ safeeyes/platform/io.github.slgobinath.SafeEyes.desktop %check %pyproject_check_import %files -n python3-safeeyes -f %{pyproject_files} %_bindir/safeeyes %{_datadir}/icons/* %{_datadir}/applications/* %{_metainfodir}/* %changelog ## START: Generated by rpmautospec * Tue Nov 18 2025 John Doe - 3.2.0-1 - Uncommitted changes ## END: Generated by rpmautospec