File wlopm.spec of Package wlopm

Name:           wlopm
Version:        1.0.0
Release:        %mkrel 1
Summary:        Wayland Output Power Management client
License:        GPLv3
URL:            https://git.sr.ht/~leon_plickat/wlopm
Source0:        wlopm-v%{version}.tar.gz
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)

%description
wlopm is a simple Wayland client implementing zwlr-output-power-management-v1.
It allows turning monitors on/off, toggling their state, or querying current power status.
Budgie 10.10 uses wlopm together with swayidle for Wayland-native idle and power management.

%prep
%setup -q -n %{name}-v%{version}

%build
%make_build

%install
install -D -m 755 wlopm %{buildroot}%{_bindir}/wlopm
install -D -m 644 wlopm.1 %{buildroot}%{_mandir}/man1/wlopm.1
install -D -m 644 bash-completion %{buildroot}%{_datadir}/bash-completion/completions/wlopm


%files
%license LICENSE
%{_bindir}/wlopm
%{_datadir}/bash-completion/completions/wlopm
%{_mandir}/man1/wlopm.1*


%changelog
* Tue Jan 13 2026 Henrik <tux4ever@protonmail.com> - 1.0.0-1
- Initial OBS build for Mageia Cauldron / Mageia 10 Alpha
openSUSE Build Service is sponsored by