]> git.pld-linux.org Git - packages/libdaemon.git/blame - libdaemon.spec
- rel 3
[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
f60d0d2f 8Version: 0.12
4788b68e 9Release: 3
3e0dce14 10Epoch: 0
f584399a 11License: LGPL v2.1+
b94d7cf3 12Group: Libraries
3632ef2f 13Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
f60d0d2f 14# Source0-md5: 76596823cc1a6d1cdf7779b782ff0ee6
3632ef2f 15URL: http://0pointer.de/lennart/projects/libdaemon/
29e0d24a 16BuildRequires: autoconf
17BuildRequires: automake
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
89%attr(755,root,root) %{_libdir}/lib*.so.*.*
90
91%files devel
92%defattr(644,root,root,755)
93%attr(755,root,root) %{_libdir}/lib*.so
94%{_libdir}/lib*.la
95%{_includedir}/%{name}
3632ef2f 96%{_pkgconfigdir}/*.pc
b94d7cf3
AM
97%{_mandir}/man?/*
98
157802f5 99%if %{with static_libs}
b94d7cf3
AM
100%files static
101%defattr(644,root,root,755)
102%{_libdir}/lib*.a
157802f5 103%endif
This page took 0.088683 seconds and 4 git commands to generate.