SHA256
1
0
forked from pool/hypridle
hypridle/hypridle.spec
Michal Hrusecky c60b374126 Accepting request 1169770 from home:smolsheep:upgrades
- Update to version 0.1.2:
  * Add a -c|--config flag to set a config path
  * Fix typo and check correct grandchild PID in spawn()
  * Added systemd service
  * fix systemd service install path
  * fix systemd service exec path

OBS-URL: https://build.opensuse.org/request/show/1169770
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/hypridle?expand=0&rev=4
2024-04-23 07:06:05 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package hypridle
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hypridle
Version: 0.1.2
Release: 0
Summary: Hyprland's idle daemon
License: BSD-3-Clause
URL: https://wiki.hyprland.org/hypr-ecosystem/hypridle
Source0: %{name}-%{version}.tar.xz
Source1: hypridle.conf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig(hyprlang) >= 0.4.2
BuildRequires: pkgconfig(sdbus-c++)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-protocols)
%description
Hyprland's idle daemon
* based on the ext-idle-notify-v1 wayland protocol
* support for dbus' loginctl commands (lock / unlock / before-sleep)
* support for dbus' inhibit (used by e.g. firefox / steam)
%prep
%autosetup
%build
%cmake
%cmake_build
%install
%cmake_install
install -Dm 0644 %{SOURCE1} %buildroot/%_docdir/%name/hypridle.conf.example
%files
%license LICENSE
%doc README.md hypridle.conf.example
%{_bindir}/hypridle
%{_userunitdir}/hypridle.service
%changelog