-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
%global python3_pkgversion 3.11 | ||
|
||
Name: lenovolegionlinux | ||
Version: 1.0.0 | ||
Release: 1%{?dist} | ||
Summary: lenovolegionlinux Python library | ||
|
||
License: Custom License | ||
URL: https://github.com/albertosottile/lenovolegionlinux | ||
Source0: lenovolegionlinux-1.0.0.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: python%{python3_pkgversion}-devel | ||
|
||
# Build dependencies needed to be specified manually | ||
BuildRequires: python%{python3_pkgversion}-setuptools | ||
|
||
|
||
%global _description %{expand: | ||
Driver and tools for controlling Lenovo Legion laptops in Linux including fan control and power mode.} | ||
|
||
%description %_description | ||
|
||
%package -n python%{python3_pkgversion}-lenovolegionlinux | ||
Summary: %{summary} | ||
|
||
%description -n python%{python3_pkgversion}-lenovolegionlinux %_description | ||
|
||
|
||
%prep | ||
%autosetup -p1 -n lenovolegionlinux-%{version} | ||
|
||
|
||
%build | ||
# The macro only supported projects with setup.py | ||
%py3_build | ||
|
||
|
||
%install | ||
# The macro only supported projects with setup.py | ||
%py3_install | ||
install -D -m 0644 %{_sourcedir}/extra/service/legion-linux.service %{_unitdir}/legion-linux.service | ||
install -D -m 0644 %{_sourcedir}/extra/service/legion-linux.path %{_unitdir}/legion-linux.path | ||
|
||
|
||
%check | ||
%{pytest} | ||
|
||
|
||
# Note that there is no %%files section for the unversioned python module | ||
%files -n python%{python3_pkgversion}-lenovolegionlinux | ||
%doc README.md | ||
%license LICENSE |