]>
Commit | Line | Data |
---|---|---|
d0eb21c5 JB |
1 | # |
2 | # Conditional build | |
3 | %bcond_without systemd # systemd-logind support | |
4 | %bcond_with elogind # elogind support | |
5 | ||
fdf586b6 | 6 | Summary: Daemon turns other process into daemons |
eb55d9c9 | 7 | Summary(pl.UTF-8): Daemon - zamiana innych procesów w demony |
3f105377 | 8 | Name: daemon |
d0eb21c5 | 9 | Version: 0.8.4 |
3f105377 | 10 | Release: 1 |
c1575889 | 11 | License: GPL v2 |
3f105377 | 12 | Group: Daemons |
d0eb21c5 JB |
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} | |
fda56149 | 18 | BuildRequires: perl-tools-pod |
d0eb21c5 | 19 | %{?with_systemd:BuildRequires: systemd-devel >= 1:209} |
3f105377 JK |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
fdf586b6 JB |
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 | |
d3fe8743 | 25 | tedious. Daemon performs these tasks for other processes. |
fdf586b6 | 26 | |
e747e402 JR |
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. | |
3f105377 JK |
31 | |
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | %build | |
d0eb21c5 JB |
36 | # not autoconf configure |
37 | CC="%{__cc}" \ | |
38 | ./configure \ | |
39 | --destdir=$RPM_BUILD_ROOT \ | |
40 | --prefix=%{_prefix} \ | |
41 | %if %{with elogind} || %{with systemd} | |
42 | --enable-logind \ | |
43 | %endif | |
44 | --disable-mail-test | |
45 | ||
fdf586b6 JB |
46 | %{__make} \ |
47 | CC="%{__cc}" \ | |
d0eb21c5 | 48 | CCFLAGS="%{rpmcflags} -Wall -pedantic" \ |
fdf586b6 | 49 | APP_INSDIR="%{_sbindir}" |
3f105377 JK |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
d0eb21c5 | 55 | APP_INSDIR=%{_sbindir} \ |
b76baa55 | 56 | DEB_BUILD_OPTIONS=nostrip \ |
d0eb21c5 | 57 | MAN_GZIP=0 |
3f105377 JK |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
d0eb21c5 | 64 | %doc CHANGELOG README.md REFERENCES |
57ff6a3b JB |
65 | %attr(755,root,root) %{_sbindir}/daemon |
66 | %{_mandir}/man1/daemon.1* | |
d0eb21c5 | 67 | %{_mandir}/man5/daemon.conf.5* |