]> git.pld-linux.org Git - packages/libdaemon.git/blame - libdaemon.spec
- x32 rebuild
[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
19fd4902 8Version: 0.14
7c71e618 9Release: 2
3e0dce14 10Epoch: 0
f584399a 11License: LGPL v2.1+
b94d7cf3 12Group: Libraries
3632ef2f 13Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
19fd4902 14# Source0-md5: 509dc27107c21bcd9fbf2f95f5669563
3632ef2f 15URL: http://0pointer.de/lennart/projects/libdaemon/
5ca53b5a
JB
16BuildRequires: autoconf >= 2.63
17BuildRequires: automake >= 1:1.10
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}
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
73rm -rf $RPM_BUILD_ROOT
74install -d $RPM_BUILD_ROOT%{_mandir}
75
76%{__make} install \
77 DESTDIR=$RPM_BUILD_ROOT
78
79cp -a doc/reference/man/* $RPM_BUILD_ROOT%{_mandir}
80
b94d7cf3
AM
81%clean
82rm -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
This page took 0.115231 seconds and 4 git commands to generate.