rpms/dhcpv6/devel dhcpv6.spec,1.26,1.27

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon May 15 14:57:51 UTC 2006


Author: jvdias

Update of /cvs/dist/rpms/dhcpv6/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv12097

Modified Files:
	dhcpv6.spec 
Log Message:
Produce the libdhcp6client DHCPv6 client libraries for invoking dhcp6c within other programs


Index: dhcpv6.spec
===================================================================
RCS file: /cvs/dist/rpms/dhcpv6/devel/dhcpv6.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- dhcpv6.spec	10 May 2006 23:26:09 -0000	1.26
+++ dhcpv6.spec	15 May 2006 14:57:48 -0000	1.27
@@ -1,12 +1,14 @@
 Summary: DHCPv6 - DHCP server and client for IPv6
 Name:    dhcpv6
 Version: 0.10
-Release: 18
+Release: 20
 License: GPL 
 Group:   System Environment/Daemons
 URL:     http://dhcpv6.sourceforge.net/
 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/d/dh/dhcp/dhcp-%{version}.tgz
 Source1: rfc3315.txt
+Source2: dhcpv6-0.10-libdhcp6client.patch
+Source3: libdhcp6client.pc
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Patch0:  dhcpv6-0.10-initscripts.patch
 Patch1:  dhcpv6-0.10-change_resolv_conf.patch
@@ -26,8 +28,9 @@
 Patch15: dhcpv6-0.10-no-strip.patch
 Patch16: dhcpv6-0.10-prefix.patch
 Patch17: dhcpv6-0.10-htonl.patch
+Patch18: dhcpv6-0.10-libdhcp6client-Makefile.patch
 Prereq: /sbin/chkconfig, /sbin/service
-BuildRequires: flex, bison
+BuildRequires: flex, bison, openssl
 
 %{?!NODEBUGINFO: %define NODEBUGINFO 0}
 %if %{NODEBUGINFO}
@@ -66,6 +69,7 @@
 %patch15 -p1 -b .no-strip
 %patch16 -p1 -b .prefix
 %patch17 -p1 -b .htonl
+%patch18 -p1 -b .libdhcp6client-Makefile
 
 %build
 %if %{NODEBUGINFO}
@@ -74,6 +78,7 @@
 export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack'
 export CFLAGS="$RPM_OPT_FLAGS -fPIE -g -Wall"
 %endif
+cp -fp %SOURCE2 libdhcp6client.patch
 autoconf
 %configure \
 	--prefix=\
@@ -89,7 +94,8 @@
     /usr/bin/tr -d '\r' < $m.dos > $m;
 done;
 popd
-make install DESTDIR=%{buildroot} INSTALL_USER=`id -nu` INSTALL_GROUP=`id -gn`
+sed 's/@DHCPV6_VERSION@/'%{version}'/' < %SOURCE3 > libdhcp6client.pc
+make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} INSTALL_USER=`id -nu` INSTALL_GROUP=`id -gn`
 mkdir -p %{buildroot}%{_localstatedir}/lib/dhcpv6
 %if %{NODEBUGINFO}
 /usr/lib/rpm/brp-compress
@@ -107,6 +113,22 @@
 See man dhcp6c(8), dhcp6c.conf(5), and the documentation in
 /usr/share/dhcpv6_client* .
 
+%package -n libdhcp6client
+Summary: The DHCPv6 client in a library for invocation by other programs
+Group:  Development/Libraries
+
+%description -n libdhcp6client
+Provides the client for the DHCPv6 protocol (RFC 3315) to support
+dynamic configuration of IPv6 addresses and parameters, in a 
+library for invocation by other programs.
+
+%package -n libdhcp6client-devel
+Summary: Header files for development with the DHCPv6 client library.
+Group:   Development/Libraries
+
+%description -n libdhcp6client-devel
+Header files for development with the DHCPv6 client library.
+
 %post
 chkconfig --add dhcp6s
 
@@ -148,7 +170,20 @@
 %doc ReadMe dhcp6c.conf
 %attr(750,root,root) %dir %{_localstatedir}/lib/dhcpv6
 
+%files -n libdhcp6client
+%defattr(-,root,root,-)
+%{_libdir}/libdhcp6client*
+
+%files -n libdhcp6client-devel
+%defattr(0644,root,root,0755)
+%{_includedir}/*
+/usr/lib/pkgconfig/libdhcp6client.pc
+
 %changelog
+* Sun May 14 2006 Jason Vas Dias <jvdias at redhat.com> - 0.10-20
+- Produce the libdhcp6client library for invoking dhcp6c from
+  within other programs.
+
 * Wed May 10 2006 Jason Vas Dias <jvdias at redhat.com> - 0.10-18
 - Make server send client the IPv6 address prefix in address lease;
   make client use it 




More information about the fedora-cvs-commits mailing list