From a825ac6257740c0fc138f97867dcb331bc4140b94e358995aa009da9b503def1 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Tue, 2 Apr 2013 09:23:05 +0000 Subject: [PATCH] - Install missed bind include files and libraries in dhcp-devel; conflicts to bind-devel providing different versions (bnc#805162). OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=106 --- dhcp.changes | 6 ++++++ dhcp.spec | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/dhcp.changes b/dhcp.changes index 365a108..9d484cf 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 2 09:16:44 UTC 2013 - mt@suse.com + +- Install missed bind include files and libraries in dhcp-devel; + conflicts to bind-devel providing different versions (bnc#805162). + ------------------------------------------------------------------- Thu Mar 28 07:39:53 UTC 2013 - mt@suse.com diff --git a/dhcp.spec b/dhcp.spec index 6acadd6..f650fbe 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -127,6 +127,7 @@ PreReq: %insserv_prereq %fillup_prereq /bin/cat /bin/mkdir /bin/cp Summary: Header Files and Libraries for dhcpctl API Group: Development/Libraries/C and C++ Requires: dhcp = %{version} +Conflicts: bind-devel %if %{with_doc_package} @@ -395,6 +396,17 @@ cp doc/examples/* ./examples/ rm -f doc/{References.xml,Makefile*} rm -f contrib/dhcp.spec rm -f $RPM_BUILD_ROOT/etc/{dhcpd,dhclient}.conf.example +# install bind libs+includes needed for dhcp-devel +pushd bind +install -d -m0755 $RPM_BUILD_ROOT%_includedir/ +for i in include/* ; do + cp -r $i $RPM_BUILD_ROOT%_includedir/ +done +install -d -m0755 $RPM_BUILD_ROOT%_libdir/ +for l in lib/lib*.a ; do + install -m0644 $l $RPM_BUILD_ROOT%_libdir/ +one +popd %pre server /usr/sbin/useradd -r -g nogroup -s /bin/false -c "DHCP server daemon" -d /var/lib/dhcp dhcpd 2> /dev/null ||: