SPECS: dhcp.spec - add libdhcp4client
patrys
patrys at pld-linux.org
Fri Dec 14 00:12:20 CET 2007
Author: patrys Date: Thu Dec 13 23:12:20 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add libdhcp4client
---- Files affected:
SPECS:
dhcp.spec (1.144 -> 1.145)
---- Diffs:
================================================================
Index: SPECS/dhcp.spec
diff -u SPECS/dhcp.spec:1.144 SPECS/dhcp.spec:1.145
--- SPECS/dhcp.spec:1.144 Sat Nov 3 16:16:18 2007
+++ SPECS/dhcp.spec Fri Dec 14 00:12:15 2007
@@ -9,7 +9,7 @@
Summary(pt_BR.UTF-8): Servidor DHCP (Protocolo de configuração dinâmica de hosts)
Name: dhcp
Version: 3.1.0
-Release: 2
+Release: 3
Epoch: 4
License: distributable
Group: Networking/Daemons
@@ -19,6 +19,10 @@
Source2: %{name}-relay.init
Source3: %{name}.sysconfig
Source4: %{name}-relay.sysconfig
+Source5: %{name}-libdhcp4client.pc
+Source6: %{name}-dhcp4client.h
+Source7: %{name}-libdhcp4client.make
+Source8: %{name}-libdhcp_control.h
Patch0: %{name}-dhclient.script.patch
Patch1: %{name}-if_buffer_size.patch
# http://home.ntelos.net/~masneyb/dhcp-3.0.5-ldap-patch
@@ -28,6 +32,8 @@
Patch5: %{name}-typo.patch
Patch6: %{name}-arg-concat.patch
Patch7: %{name}-split-VARDB.patch
+Patch8: %{name}-options.patch
+Patch9: %{name}-libdhcp4client.patch
URL: http://www.isc.org/sw/dhcp/
BuildRequires: groff
%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
@@ -144,6 +150,41 @@
dhcpctl to zbiór funkcji tworzących API, które może być używane do
komunikacji z działającym serwerem ISC DHCP i jego kontroli.
+%package -n libdhcp4client
+Summary: The DHCP client in a library for invocation by other programs
+Summary(pl.UTF-8): Klient DHCP w postaci biblioteki do wykorzystania w innych programach
+Group: Development/Libraries
+
+%description -n libdhcp4client
+Provides the client for the DHCP protocol.
+
+%description -n libdhcp4client -l pl.UTF-8
+Ten pakiet zawiera klienta protokołu DHCP.
+
+%package -n libdhcp4client-devel
+Summary: Header files for development with the DHCP client library
+Summary(pl.UTF-8): Pliki nagłówkowe do programowania z użyciem biblioteki klienckiej DHCP
+Group: Development/Libraries
+Requires: libdhcp4client = %{epoch}:%{version}-%{release}
+
+%description -n libdhcp4client-devel
+Header files for development with the DHCP client library.
+
+%description -n libdhcp4client-devel -l pl.UTF-8
+Pliki nagłówkowe do programowania z użyciem biblioteki klienckiej DHCP.
+
+%package -n libdhcp4client-static
+Summary: Static DHCP client library
+Summary(pl.UTF-8): Statyczna biblioteka kliencka DHCP
+Group: Development/Libraries
+Requires: libdhcp4client-devel = %{epoch}:%{version}-%{release}
+
+%description -n libdhcp4client-static
+Static DHCP client library.
+
+%description -n libdhcp4client-static -l pl.UTF-8
+Statyczna biblioteka kliencka DHCP.
+
%prep
%setup -q
%patch0 -p1
@@ -156,6 +197,14 @@
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+
+sed 's/@DHCP_VERSION@/'%{version}'/' < %{SOURCE5} > libdhcp4client.pc
+mkdir -p libdhcp4client
+cp %{SOURCE6} libdhcp4client/dhcp4client.h
+cp %{SOURCE7} libdhcp4client/Makefile.dist
+cp %{SOURCE8} includes/isc-dhcp/libdhcp_control.h
%build
# NOTE: this is not autoconf configure - do not change it to %%configure
@@ -175,7 +224,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{schemadir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{rc.d/init.d,sysconfig},%{schemadir},%{_pkgconfigdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
@@ -211,6 +260,8 @@
touch $RPM_BUILD_ROOT/var/lib/%{name}/dhcpd.leases
touch $RPM_BUILD_ROOT/var/lib/dhclient/dhclient.leases
+install libdhcp4client.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libdhcp4client.pc
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -308,12 +359,29 @@
%{_libdir}/*.a
%{_includedir}/*
+%files -n libdhcp4client
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdhcp4client-%{version}.so.*
+
+%files -n libdhcp4client-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdhcp4client.so
+%{_includedir}/*
+%{_pkgconfigdir}/libdhcp4client.pc
+
+%files -n libdhcp4client-static
+%defattr(644,root,root,755)
+%{_libdir}/libdhcp4client.a
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.145 2007-12-13 23:12:15 patrys
+- add libdhcp4client
+
Revision 1.144 2007-11-03 15:16:18 baggins
- rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dhcp.spec?r1=1.144&r2=1.145&f=u
More information about the pld-cvs-commit
mailing list