diff --git a/README.md b/README.md index b863fea..2c65ece 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # solaar +Linux device manager for Logitech devices. + diff --git a/solaar.spec b/solaar.spec new file mode 100644 index 0000000..88eb5c9 --- /dev/null +++ b/solaar.spec @@ -0,0 +1,53 @@ +Name: solaar +Version: 1.0.6 +Release: 1mamba +Summary: Linux device manager for Logitech devices +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pwr-solaar.github.io/Solaar/ +Source: https://github.com/pwr-Solaar/Solaar.git/%{version}/Solaar-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(psutil) +BuildRequires: python3.7dist(python-xlib) +BuildRequires: python3.7dist(pyudev) +BuildRequires: python3.7dist(pyyaml) +## AUTOBUILDREQ-END + +%description +Linux device manager for Logitech devices. + +%prep +%setup -q -n Solaar-%{version} + +%build +CFLAGS="%{optflags}" %{__python3} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python3} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python3_inc} \ + --install-lib=%{python3_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +install -D -m0644 rules.d/42-logitech-unify-permissions.rules %{buildroot}%{_udevrulesdir}/42-logitech-unify-permissions.rules +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.filelist +%defattr(-,root,root) +%dir %{python3_sitearch}/solaar-%{version}-py*.egg-info +%{python3_sitearch}/solaar-%{version}-py*.egg-info/* +%{_udevrulesdir}/42-logitech-unify-permissions.rules +%doc COPYING + +%changelog +* Sun May 09 2021 Silvan Calarco 1.0.6-1mamba +- package created using the webbuild interface