Name: systembus-notify
Version: 1.1
Release: alt1

Summary: Forward system bus notifications to the desktop
License: MIT
Group: System/Configuration/Other
Url: https://github.com/rfjakob/systembus-notify

Source0: %name-%version.tar.gz
Source1: %name.service

BuildRequires(pre): rpm-macros-systemd
BuildRequires: gcc make libsystemd-devel
Requires: systemd

%description
A small daemon that receives notification signals on the system D-Bus
and forwards them to the notification server of the user's session.

%prep
%setup -q

%build
%make_build CFLAGS="%optflags -std=gnu99"

%install
install -Dpm755 %name %buildroot%_bindir/%name
install -Dpm644 %SOURCE1 %buildroot%_user_unitdir/%name.service

%check
./systembus-notify --help

%files
%_bindir/%name
%_user_unitdir/%name.service
%doc LICENSE README.md
