]> git.pld-linux.org Git - packages/libdaemon.git/blame - libdaemon.spec
- updated to 0.13
[packages/libdaemon.git] / libdaemon.spec
CommitLineData
f584399a 1#
ea620bf8 2# Conditional build:
157802f5 3%bcond_without static_libs # don't build static library
ea620bf8 4#
d65e93e8 5Summary: Lightweight C library which eases the writing of UNIX daemons
de4dae31 6Summary(pl.UTF-8): Prosta biblioteka C ułatwiająca pisanie demonów uniksowych
b94d7cf3 7Name: libdaemon
7eeeab4d
JB
8Version: 0.13
9Release: 1
3e0dce14 10Epoch: 0
f584399a 11License: LGPL v2.1+
b94d7cf3 12Group: Libraries
3632ef2f 13Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
7eeeab4d 14# Source0-md5: ae9113fcd825d5a7f07e5ddccb3c3102
3632ef2f 15URL: http://0pointer.de/lennart/projects/libdaemon/
7eeeab4d
JB
16BuildRequires: autoconf >= 2.59
17BuildRequires: automake >= 1:1.9
d4b718ef 18BuildRequires: libtool
79f1e6ae 19BuildRequires: doxygen
29e0d24a 20BuildRequires: lynx
b94d7cf3
AM
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
d65e93e8 24libdaemon is a lightweight C library which eases the writing of UNIX
25daemons.
26
b8582d52
JR
27%description -l pl.UTF-8
28libdaemon jest prostą biblioteką C ułatwiającą pisanie demonów
d65e93e8 29uniksowych.
b94d7cf3
AM
30
31%package devel
72e28adb 32Summary: Header files and development documentation for libdaemon
de4dae31 33Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty biblioteki libdaemon
b94d7cf3 34Group: Development/Libraries
d4b718ef 35Requires: %{name} = %{epoch}:%{version}-%{release}
b94d7cf3
AM
36
37%description devel
72e28adb 38This package contains Header files and development documentation for
d65e93e8 39libdaemon.
40
b8582d52
JR
41%description devel -l pl.UTF-8
42Ten pakiet zawiera pliki nagłówkowe i dokumentację programisty
d65e93e8 43biblioteki libdaemon.
b94d7cf3
AM
44
45%package static
46Summary: Static libdaemon library
de4dae31 47Summary(pl.UTF-8): Statyczna biblioteka libdaemon
b94d7cf3 48Group: Development/Libraries
d4b718ef 49Requires: %{name}-devel = %{epoch}:%{version}-%{release}
b94d7cf3
AM
50
51%description static
d65e93e8 52This package contains static libdaemon library.
53
b8582d52
JR
54%description static -l pl.UTF-8
55Ten pakiet zawiera statyczną wersję biblioteki libdaemon.
b94d7cf3
AM
56
57%prep
d65e93e8 58%setup -q
b94d7cf3
AM
59
60%build
d4b718ef 61%{__libtoolize}
29e0d24a 62%{__aclocal}
63%{__autoconf}
d4b718ef 64%{__autoheader}
29e0d24a 65%{__automake}
157802f5 66%configure \
67 %{!?with_static_libs:--disable-static}
b94d7cf3 68%{__make}
b1b3bcb6 69%{__make} doxygen
b94d7cf3
AM
70
71%install
72rm -rf $RPM_BUILD_ROOT
73install -d $RPM_BUILD_ROOT%{_mandir}
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
78cp -a doc/reference/man/* $RPM_BUILD_ROOT%{_mandir}
79
b94d7cf3
AM
80%clean
81rm -rf $RPM_BUILD_ROOT
82
72e28adb
JB
83%post -p /sbin/ldconfig
84%postun -p /sbin/ldconfig
85
b94d7cf3
AM
86%files
87%defattr(644,root,root,755)
88%doc README
7eeeab4d
JB
89%attr(755,root,root) %{_libdir}/libdaemon.so.*.*.*
90%attr(755,root,root) %ghost %{_libdir}/libdaemon.so.0
b94d7cf3
AM
91
92%files devel
93%defattr(644,root,root,755)
7eeeab4d
JB
94%attr(755,root,root) %{_libdir}/libdaemon.so
95%{_libdir}/libdaemon.la
b94d7cf3 96%{_includedir}/%{name}
7eeeab4d
JB
97%{_pkgconfigdir}/libdaemon.pc
98%{_mandir}/man3/daemon.h.3*
99%{_mandir}/man3/dexec.h.3*
100%{_mandir}/man3/dfork.h.3*
101%{_mandir}/man3/dlog.h.3*
102%{_mandir}/man3/dnonblock.h.3*
103%{_mandir}/man3/dpid.h.3*
104%{_mandir}/man3/dsignal.h.3*
b94d7cf3 105
157802f5 106%if %{with static_libs}
b94d7cf3
AM
107%files static
108%defattr(644,root,root,755)
7eeeab4d 109%{_libdir}/libdaemon.a
157802f5 110%endif
This page took 0.118179 seconds and 4 git commands to generate.