[packages/daemon] - updated to 0.8.4
qboosh
qboosh at pld-linux.org
Sun Dec 10 15:51:01 CET 2023
commit d0eb21c593ca6906d866cb90f0f29072b1ea9542
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 10 15:09:26 2023 +0100
- updated to 0.8.4
daemon.spec | 38 +++++++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 11 deletions(-)
---
diff --git a/daemon.spec b/daemon.spec
index 5704053..97bf54e 100644
--- a/daemon.spec
+++ b/daemon.spec
@@ -1,15 +1,22 @@
+#
+# Conditional build
+%bcond_without systemd # systemd-logind support
+%bcond_with elogind # elogind support
+
Summary: Daemon turns other process into daemons
Summary(pl.UTF-8): Daemon - zamiana innych procesów w demony
Name: daemon
-Version: 0.6.4
+Version: 0.8.4
Release: 1
License: GPL v2
Group: Daemons
-#Source0Download: http://libslack.org/daemon/
-Source0: http://libslack.org/daemon/download/%{name}-%{version}.tar.gz
-# Source0-md5: 6cd0a28630a29ac279bc501f39baec66
-URL: http://libslack.org/daemon/
+#Source0Download: https://libslack.org/daemon/#download
+Source0: https://libslack.org/daemon/download/%{name}-%{version}.tar.gz
+# Source0-md5: 871ff0cc66b1eafbb17965b5ec164509
+URL: https://libslack.org/daemon/
+%{?with_elogind:BuildRequires: elogind-devel}
BuildRequires: perl-tools-pod
+%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -26,25 +33,34 @@ wykonuje te zadania dla innych procesów.
%setup -q
%build
-conf/linux
+# not autoconf configure
+CC="%{__cc}" \
+./configure \
+ --destdir=$RPM_BUILD_ROOT \
+ --prefix=%{_prefix} \
+%if %{with elogind} || %{with systemd}
+ --enable-logind \
+%endif
+ --disable-mail-test
+
%{__make} \
CC="%{__cc}" \
- CCFLAGS="%{rpmcflags}" \
+ CCFLAGS="%{rpmcflags} -Wall -pedantic" \
APP_INSDIR="%{_sbindir}"
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- APP_INSDIR=$RPM_BUILD_ROOT%{_sbindir} \
- APP_MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
- FMT_MANDIR=tmp
+ APP_INSDIR=%{_sbindir} \
+ MAN_GZIP=0
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
+%doc CHANGELOG README.md REFERENCES
%attr(755,root,root) %{_sbindir}/daemon
%{_mandir}/man1/daemon.1*
+%{_mandir}/man5/daemon.conf.5*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/daemon.git/commitdiff/d0eb21c593ca6906d866cb90f0f29072b1ea9542
More information about the pld-cvs-commit
mailing list