Sisyphus repository
Last update: 17 june 2019 | SRPMs: 17680 | Visits: 14050504
en ru br
ALT Linux repos
5.0: 0.13-alt2
4.1: 0.12-alt2
4.0: 0.12-alt1
3.0: 0.6-alt1

Group :: System/Libraries
RPM: libdaemon

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static
%def_with apidocs

Name: libdaemon
Version: 0.14
Release: alt2.1

Summary: Lightweight C library which eases the writing of UNIX daemons
License: LGPL
Group: System/Libraries

Source: %name-%version-%release.tar

%{?_with_apidocs:BuildRequires: doxygen lynx}

libdaemon is a leightweight C library which eases the writing of UNIX daemons.
It consists of the following parts:

* A wrapper around fork() which does the correct daemonization
  procedure of a process
* A wrapper around syslog() for simpler and compatible log output to
  Syslog or STDERR
* An API for writing PID files
* An API for serializing UNIX signals into a pipe for usage with
  select() or poll()

Routines like these are included in most of the daemon software available. It
is not that simple to get it done right and code duplication cannot be a goal.

%package devel
Summary: Development part of libdaemon
Group: Development/C
Requires: %name = %version-%release

%package devel-static
Summary: Static libraries from libdaemon
Group: Development/C
Requires: %name-devel = %version-%release

%description devel
This is the development part (header files and documentation) for

%description devel-static
This package contains static library to build statically linked %name


%configure %{subst_enable static}
make all %{?_with_apidocs:doxygen}

install -d %buildroot%_man3dir
%if_with apidocs
cp -a doc/reference/man/* %buildroot%_mandir/


%files devel
%if_with apidocs
%doc doc/README doc/reference/html/

%if_enabled static
%files devel-static


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin