3 %bcond_without systemd # systemd-logind support
4 %bcond_with elogind # elogind support
6 Summary: Daemon turns other process into daemons
7 Summary(pl.UTF-8): Daemon - zamiana innych procesów w demony
13 #Source0Download: https://libslack.org/daemon/#download
14 Source0: https://libslack.org/daemon/download/%{name}-%{version}.tar.gz
15 # Source0-md5: 871ff0cc66b1eafbb17965b5ec164509
16 URL: https://libslack.org/daemon/
17 %{?with_elogind:BuildRequires: elogind-devel}
18 BuildRequires: perl-tools-pod
19 %{?with_systemd:BuildRequires: systemd-devel >= 1:209}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Daemon turns other process into daemons. There are many tasks that
24 need to be performed to correctly set up a daemon process. This can be
25 tedious. Daemon performs these tasks for other processes.
27 %description -l pl.UTF-8
28 Daemon zamienia inne procesy w demony. Jest wiele zadań, które trzeba
29 wykonać, aby poprawnie uruchomić demona. Może to być męczące. Daemon
30 wykonuje te zadania dla innych procesów.
36 # not autoconf configure
39 --destdir=$RPM_BUILD_ROOT \
41 %if %{with elogind} || %{with systemd}
48 CCFLAGS="%{rpmcflags} -Wall -pedantic" \
49 APP_INSDIR="%{_sbindir}"
52 rm -rf $RPM_BUILD_ROOT
55 APP_INSDIR=%{_sbindir} \
56 DEB_BUILD_OPTIONS=nostrip \
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc CHANGELOG README.md REFERENCES
65 %attr(755,root,root) %{_sbindir}/daemon
66 %{_mandir}/man1/daemon.1*
67 %{_mandir}/man5/daemon.conf.5*