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