This commit is contained in:
commit
bacfc6719c
4 changed files with 110 additions and 0 deletions
44
wluma.spec
Normal file
44
wluma.spec
Normal file
|
@ -0,0 +1,44 @@
|
|||
Name: wluma
|
||||
Version: __PLACEHOLDER__
|
||||
Release: %autorelease
|
||||
Summary: runcat module for polybar (or waybar)
|
||||
|
||||
License: ISC
|
||||
URL: https://github.com/maximbaz/wluma
|
||||
|
||||
BuildRequires: tar zstd
|
||||
Requires: glibc v4l-utils systemd-libs vulkan-loader
|
||||
Recommends: dbus
|
||||
|
||||
%description
|
||||
Automatic brightness adjustment based on screen contents and ALS
|
||||
|
||||
%prep
|
||||
tar --zstd -xf ${COMPILED_DIR:-/compiled}/wluma/wluma.tar.zst --one-top-level
|
||||
|
||||
%install
|
||||
cd ./wluma/
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp ./wluma %{buildroot}%{_bindir}/
|
||||
mkdir -p %{buildroot}/usr/lib/systemd/user/
|
||||
cp ./wluma.service %{buildroot}/usr/lib/systemd/user/
|
||||
mkdir -p %{buildroot}/usr/lib/udev/rules.d/
|
||||
cp ./90-wluma-backlight.rules %{buildroot}/usr/lib/udev/rules.d/
|
||||
mkdir -p %{buildroot}%{_datadir}/wluma/examples/
|
||||
cp ./config.toml %{buildroot}/wluma/examples/
|
||||
mkdir -p %{buildroot}%{_docdir}/wluma
|
||||
cp ./README.md %{buildroot}%{_docdir}/wluma/
|
||||
mkdir -p %{buildroot}%{_mandir}/man7
|
||||
cp ./wluma.7.gz %{buildroot}%{_mandir}/man7/
|
||||
|
||||
%files
|
||||
%{_bindir}/wluma
|
||||
/usr/lib/systemd/user/wluma.service
|
||||
/usr/lib/udev/rules.d/90-wluma-backlight.rules
|
||||
%{_datadir}/wluma/examples/config.toml
|
||||
%{_docdir}/wluma/README.md
|
||||
%{_mandir}/man7/wluma.7.gz
|
||||
|
||||
%changelog
|
||||
* Tue Mar 25 2025 askiiart <rpm@askiiart.net>
|
||||
- Initial version
|
Loading…
Add table
Add a link
Reference in a new issue