49 lines
1.4 KiB
RPMSpec
49 lines
1.4 KiB
RPMSpec
|
Name: envycontrol
|
||
|
Version: 2.3
|
||
|
Release: 1mamba
|
||
|
Summary: A program aimed to provide an easy way to switch GPU modes on Nvidia Optimus systems
|
||
|
Group: System/Kernel and Hardware
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/bayasdev/envycontrol
|
||
|
Source: https://github.com/bayasdev/envycontrol.git/v%{version}/envycontrol-%{version}.tar.bz2
|
||
|
License: MIT
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: libpython3-devel
|
||
|
BuildRequires: python3.7dist(setuptools)
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: xrandr
|
||
|
|
||
|
%description
|
||
|
EnvyControl is a program aimed to provide an easy way to switch GPU modes on Nvidia Optimus systems (i.e laptops with hybrid Intel + Nvidia or AMD + Nvidia graphics configurations) under Linux.
|
||
|
|
||
|
#% debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%{__python3} setup.py install --root=%{buildroot} --optimize=1
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%{_bindir}/envycontrol
|
||
|
%{python3_sitelib}/__pycache__/envycontrol.cpython*.pyc
|
||
|
%dir %{python3_sitelib}/envycontrol-2.3-py3.7.egg-info
|
||
|
%{python3_sitelib}/envycontrol-2.3-py3.7.egg-info/*
|
||
|
%{python3_sitelib}/envycontrol.py
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Sun Feb 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-1mamba
|
||
|
- package created using the webbuild interface
|