Skip to content

Commit

Permalink
initial specfile
Browse files Browse the repository at this point in the history
  • Loading branch information
deltragon committed Dec 25, 2024
1 parent c28a0ce commit 7864b80
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ wheels/
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
!rpm/*.spec

# Installer logs
pip-log.txt
Expand Down Expand Up @@ -113,4 +114,4 @@ debian/.debhelper
debian/files
debian/safeeyes.substvars
debian/safeeyes.prerm.debhelper
debian/safeeyes.postinst.debhelper
debian/safeeyes.postinst.debhelper
59 changes: 59 additions & 0 deletions rpm/safeeyes.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
%global version 2.2.3
%global forgeurl https://github.com/slgobinath/SafeEyes

%global debug_package %{nil}

Name: safeeyes
Version: %{version}
Release: %autorelease
Summary: Protect your eyes from eye strain using this continuous breaks reminder

%forgemeta

License: GPL-3.0-or-later
URL: %{forgeurl}
Source: %{forgesource}
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
Requires: gtk3
Requires: libnotify
Requires: python3dist(babel)
Requires: python3dist(croniter)
Requires: python3dist(packaging)
Requires: python3dist(psutil)
Requires: python3dist(pygobject)
Requires: python3dist(python-xlib)
Requires: python3dist(setuptools)

%description
${summary}


%prep
%forgesetup


%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install


%check

%files
%license LICENSE
%doc README.md
%{_bindir}/safeeyes
%{python3_sitelib}/safeeyes
%{python3_sitelib}/safeeyes-%{version}.dist-info
%{_datarootdir}/applications/safeeyes.desktop


%changelog
%autochangelog

0 comments on commit 7864b80

Please sign in to comment.