Accepting request 726766 from home:namtrac:branches:network:dhcp

Free spec cleanup for my best friend.
I didn't really see a need for changelog entry since the package is new

OBS-URL: https://build.opensuse.org/request/show/726766
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/kea?expand=0&rev=15
This commit is contained in:
Adam Majer 2019-08-28 14:19:01 +00:00 committed by Git OBS Bridge
parent ef07813cfc
commit 290306d945

408
kea.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package kea # spec file for package kea
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,9 +12,10 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define asiodns_sover 0 %define asiodns_sover 0
%define asiolink_sover 7 %define asiolink_sover 7
%define cc_sover 8 %define cc_sover 8
@ -37,9 +38,7 @@
%define threads_sover 2 %define threads_sover 2
%define util_io_sover 0 %define util_io_sover 0
%define util_sover 6 %define util_sover 6
%define dl_ver 1.6.0-beta2 %define dl_ver 1.6.0-beta2
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%bcond_without regen_files %bcond_without regen_files
%else %else
@ -52,10 +51,9 @@ Summary: Dynamic Host Configuration Protocol daemon
License: MPL-2.0 License: MPL-2.0
Group: Productivity/Networking/Boot/Servers Group: Productivity/Networking/Boot/Servers
URL: https://kea.isc.org/ URL: https://kea.isc.org/
#Git-Clone: git://github.com/isc-projects/kea #Git-Clone: git://github.com/isc-projects/kea
Source: https://ftp.isc.org/isc/kea/%dl_ver/kea-%dl_ver.tar.gz#/kea-%version.tar.gz Source: https://ftp.isc.org/isc/kea/%{dl_ver}/kea-%{dl_ver}.tar.gz#/kea-%version.tar.gz
Source2: https://ftp.isc.org/isc/kea/%dl_ver/kea-%dl_ver.tar.gz.asc#/kea-%version.tar.gz.asc Source2: https://ftp.isc.org/isc/kea/%{dl_ver}/kea-%{dl_ver}.tar.gz.asc#/kea-%version.tar.gz.asc
# https://www.isc.org/pgpkey/ # https://www.isc.org/pgpkey/
Source3: kea.keyring Source3: kea.keyring
BuildRequires: autoconf >= 2.59 BuildRequires: autoconf >= 2.59
@ -67,10 +65,12 @@ BuildRequires: libtool >= 2
BuildRequires: log4cplus-devel BuildRequires: log4cplus-devel
BuildRequires: pkgconfig >= 0.23 BuildRequires: pkgconfig >= 0.23
BuildRequires: postgresql-server-devel BuildRequires: postgresql-server-devel
BuildRequires: python-rpm-macros
BuildRequires: python3
BuildRequires: xz BuildRequires: xz
BuildRequires: pkgconfig(libcrypto) BuildRequires: pkgconfig(libcrypto)
Requires(pre): shadow Requires(pre): shadow
Suggests: %name-hooks = %version Suggests: %{name}-hooks = %{version}
%if 0%{with regen_files} %if 0%{with regen_files}
BuildRequires: bison >= 3.0 BuildRequires: bison >= 3.0
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
@ -86,8 +86,6 @@ BuildRequires: boost-devel
%if 0%{?suse_version} >= 1310 %if 0%{?suse_version} >= 1310
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
%endif %endif
BuildRequires: python-rpm-macros
BuildRequires: python3
%description %description
Kea is a new DHCPv4/DHCPv6 server being developed by ISC in C++, a Kea is a new DHCPv4/DHCPv6 server being developed by ISC in C++, a
@ -104,36 +102,36 @@ Group: System/Libraries
A standard set of external libraries used to provide additional A standard set of external libraries used to provide additional
functionality for Kea DHCP server functionality for Kea DHCP server
%package -n libkea-asiodns%asiodns_sover %package -n libkea-asiodns%{asiodns_sover}
Summary: Kea DHCP server asiolink abstraction layer library Summary: Kea DHCP server asiolink abstraction layer library
Group: System/Libraries Group: System/Libraries
%description -n libkea-asiodns%asiodns_sover %description -n libkea-asiodns%{asiodns_sover}
The asiodns library provides an abstraction layer between BIND10/Kea The asiodns library provides an abstraction layer between BIND10/Kea
modules and the asiolink library. modules and the asiolink library.
%package -n libkea-asiolink%asiolink_sover %package -n libkea-asiolink%{asiolink_sover}
Summary: Kea DHCP server socket I/O abstraction layer library Summary: Kea DHCP server socket I/O abstraction layer library
Group: System/Libraries Group: System/Libraries
%description -n libkea-asiolink%asiolink_sover %description -n libkea-asiolink%{asiolink_sover}
The asiolink library provides an abstraction layer between BIND10/Kea The asiolink library provides an abstraction layer between BIND10/Kea
modules and the socket I/O subsystem Kea is using (currently, modules and the socket I/O subsystem Kea is using (currently,
boost::asio). boost::asio).
%package -n libkea-cc%cc_sover %package -n libkea-cc%{cc_sover}
Summary: Kea DHCP server command channel library Summary: Kea DHCP server command channel library
Group: System/Libraries Group: System/Libraries
%description -n libkea-cc%cc_sover %description -n libkea-cc%{cc_sover}
libkea-cc is used for the control channel protocol between keactrl libkea-cc is used for the control channel protocol between keactrl
and the server. and the server.
%package -n libkea-cfgclient%cfgclient_sover %package -n libkea-cfgclient%{cfgclient_sover}
Summary: Kea DHCP server configuration client library Summary: Kea DHCP server configuration client library
Group: System/Libraries Group: System/Libraries
%description -n libkea-cfgclient%cfgclient_sover %description -n libkea-cfgclient%{cfgclient_sover}
The Kea DHCP server can be managed at runtime via the Control The Kea DHCP server can be managed at runtime via the Control
Channel. The CC allows an external entity (e.g. a tool run by a Channel. The CC allows an external entity (e.g. a tool run by a
sysadmin or a script) to issue commands to the server which can sysadmin or a script) to issue commands to the server which can
@ -144,26 +142,26 @@ manipulation, and shutdown.
Communication over the Control Channel is conducted using JSON Communication over the Control Channel is conducted using JSON
structures. structures.
%package -n libkea-cryptolink%cryptolink_sover %package -n libkea-cryptolink%{cryptolink_sover}
Summary: Kea DHCP server crypto abstraction layer library Summary: Kea DHCP server crypto abstraction layer library
Group: System/Libraries Group: System/Libraries
%description -n libkea-cryptolink%cryptolink_sover %description -n libkea-cryptolink%{cryptolink_sover}
The Kea cryptolink library is an abstraction layer for crypto The Kea cryptolink library is an abstraction layer for crypto
library backends (such as Botan, OpenSSL). library backends (such as Botan, OpenSSL).
%package -n libkea-database%database_sover %package -n libkea-database%{database_sover}
Summary: Kea database abstraction library Summary: Kea database abstraction library
Group: System/Library Group: System/Libraries
%description -n libkea-database%database_sover %description -n libkea-database%{database_sover}
Kea's database abstraction library. Kea's database abstraction library.
%package -n libkea-dhcp++%dhcppp_sover %package -n libkea-dhcp++%{dhcppp_sover}
Summary: Kea DHCP library Summary: Kea DHCP library
Group: System/Libraries Group: System/Libraries
%description -n libkea-dhcp++%dhcppp_sover %description -n libkea-dhcp++%{dhcppp_sover}
libdhcp++ is an all-purpose DHCP-manipulation library, written in libdhcp++ is an all-purpose DHCP-manipulation library, written in
C++. It offers packet parsing and assembly, DHCPv4 and DHCPv6 options C++. It offers packet parsing and assembly, DHCPv4 and DHCPv6 options
parsing and assembly, interface detection, and socket operations It parsing and assembly, interface detection, and socket operations It
@ -171,53 +169,53 @@ can be used by server, client, relay, performance tools and other
DHCP-related tools. For a server-specific library, see DHCP-related tools. For a server-specific library, see
libkea-dhcpsrv. libkea-dhcpsrv.
%package -n libkea-dhcp_ddns%dhcp_ddns_sover %package -n libkea-dhcp_ddns%{dhcp_ddns_sover}
Summary: Kea DHCP Dynamic DNS library Summary: Kea DHCP Dynamic DNS library
Group: System/Libraries Group: System/Libraries
%description -n libkea-dhcp_ddns%dhcp_ddns_sover %description -n libkea-dhcp_ddns%{dhcp_ddns_sover}
This is a library of classes for sending and receiving requests used This is a library of classes for sending and receiving requests used
by ISC's DHCP-DDNS (aka D2) service to carry out DHCP-driven DNS by ISC's DHCP-DDNS (aka D2) service to carry out DHCP-driven DNS
updates. updates.
%package -n libkea-dhcpsrv%dhcpsrv_sover %package -n libkea-dhcpsrv%{dhcpsrv_sover}
Summary: Kea DHCP server component library Summary: Kea DHCP server component library
Group: System/Libraries Group: System/Libraries
%description -n libkea-dhcpsrv%dhcpsrv_sover %description -n libkea-dhcpsrv%{dhcpsrv_sover}
This library contains code used for the DHCPv4 and DHCPv6 servers' This library contains code used for the DHCPv4 and DHCPv6 servers'
operations, including the "Lease Manager" that manages information operations, including the "Lease Manager" that manages information
about leases and the "Configuration Manager" that stores the servers' about leases and the "Configuration Manager" that stores the servers'
configuration etc. configuration etc.
%package -n libkea-dns++%dnspp_sover %package -n libkea-dns++%{dnspp_sover}
Summary: Kea DHCP server component library Summary: Kea DHCP server component library
Group: System/Libraries Group: System/Libraries
%description -n libkea-dns++%dnspp_sover %description -n libkea-dns++%{dnspp_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n libkea-eval%eval_sover %package -n libkea-eval%{eval_sover}
Summary: Kea DHCP expression evaluation library Summary: Kea DHCP expression evaluation library
Group: System/Libraries Group: System/Libraries
%description -n libkea-eval%eval_sover %description -n libkea-eval%{eval_sover}
The core of the libeval library is a parser that is able to parse an The core of the libeval library is a parser that is able to parse an
expression (e.g. option[123].text == 'APC'). This is currently used expression (e.g. option[123].text == 'APC'). This is currently used
for client classification. for client classification.
%package -n libkea-exceptions%exceptions_sover %package -n libkea-exceptions%{exceptions_sover}
Summary: Kea DHCP server component library Summary: Kea DHCP server component library
Group: System/Libraries Group: System/Libraries
%description -n libkea-exceptions%exceptions_sover %description -n libkea-exceptions%{exceptions_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n libkea-hooks%hooks_sover %package -n libkea-hooks%{hooks_sover}
Summary: Kea DHCP server hook library Summary: Kea DHCP server hook library
Group: System/Libraries Group: System/Libraries
%description -n libkea-hooks%hooks_sover %description -n libkea-hooks%{hooks_sover}
The hooks framework is a Kea system that simplifies the way that The hooks framework is a Kea system that simplifies the way that
users can write code to modify the behavior of Kea. Instead of users can write code to modify the behavior of Kea. Instead of
altering the Kea source code, they write functions that are compiled altering the Kea source code, they write functions that are compiled
@ -228,78 +226,78 @@ processing, the component "calls out" to functions in the library,
passing to them the data is it currently working on. They can examine passing to them the data is it currently working on. They can examine
and modify the data as required. and modify the data as required.
%package -n libkea-http%http_sover %package -n libkea-http%{http_sover}
Summary: Kea DHCP http communication library Summary: Kea DHCP http communication library
Group: System/Libraries Group: System/Libraries
%description -n libkea-http%http_sover %description -n libkea-http%{http_sover}
This library is used by Control Agent to establish HTTP connections, This library is used by Control Agent to establish HTTP connections,
receive messages and send responses over HTTP. This library uses receive messages and send responses over HTTP. This library uses
boost ASIO for creating TCP connections and asynchronously receive boost ASIO for creating TCP connections and asynchronously receive
and send the data over the sockets. and send the data over the sockets.
%package -n libkea-log%log_sover %package -n libkea-log%{log_sover}
Summary: Kea DHCP logging system library Summary: Kea DHCP logging system library
Group: System/Libraries Group: System/Libraries
%description -n libkea-log%log_sover %description -n libkea-log%{log_sover}
This library contains the Kea logging system, which is based on the This library contains the Kea logging system, which is based on the
log4J logging system common in Java development, and includes the log4J logging system common in Java development, and includes the
following ideas: a set of severity levels; a hierarchy of logging following ideas: a set of severity levels; a hierarchy of logging
sources; separation of message use from message text. sources; separation of message use from message text.
%package -n libkea-mysql%mysql_sover %package -n libkea-mysql%{mysql_sover}
Summary: Kea MySQL database library Summary: Kea MySQL database library
Group: System/Library Group: System/Libraries
%description -n libkea-mysql%mysql_sover %description -n libkea-mysql%{mysql_sover}
Kea's database library for MySQL. Kea's database library for MySQL.
%package -n libkea-pgsql%pgsql_sover %package -n libkea-pgsql%{pgsql_sover}
Summary: Kea PostgreSQL database library Summary: Kea PostgreSQL database library
Group: System/Library Group: System/Libraries
%description -n libkea-pgsql%pgsql_sover %description -n libkea-pgsql%{pgsql_sover}
Kea's database library for PostgreSQL. Kea's database library for PostgreSQL.
%package -n libkea-process%process_sover %package -n libkea-process%{process_sover}
Summary: Kea DHCP process abstraction library Summary: Kea DHCP process abstraction library
Group: System/Libraries Group: System/Libraries
%description -n libkea-process%process_sover %description -n libkea-process%{process_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n libkea-stats%stats_sover %package -n libkea-stats%{stats_sover}
Summary: Kea DHCP Statistics Manager library Summary: Kea DHCP Statistics Manager library
Group: System/Libraries Group: System/Libraries
%description -n libkea-stats%stats_sover %description -n libkea-stats%{stats_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n libkea-threads%threads_sover %package -n libkea-threads%{threads_sover}
Summary: Kea DHCP thread abstraction library Summary: Kea DHCP thread abstraction library
Group: System/Libraries Group: System/Libraries
%description -n libkea-threads%threads_sover %description -n libkea-threads%{threads_sover}
Kea's C++ wrapper library for pthreads and mutexes. Kea's C++ wrapper library for pthreads and mutexes.
%package -n libkea-util-io%util_io_sover %package -n libkea-util-io%{util_io_sover}
Summary: Kea I/O utility function library Summary: Kea I/O utility function library
Group: System/Library Group: System/Libraries
%description -n libkea-util-io%util_io_sover %description -n libkea-util-io%{util_io_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n libkea-util%util_sover %package -n libkea-util%{util_sover}
Summary: Kea utility function library Summary: Kea utility function library
Group: System/Library Group: System/Libraries
%description -n libkea-util%util_sover %description -n libkea-util%{util_sover}
One of the many libraries the Kea DHCP server is composed of. One of the many libraries the Kea DHCP server is composed of.
%package -n python3-kea %package -n python3-kea
Summary: Python interface to Kea DHCP server Summary: Python interface to Kea DHCP server
Group: Python Group: Development/Libraries/Python
%description -n python3-kea %description -n python3-kea
Python3 interface to ISC Kea DHCP server. Python3 interface to ISC Kea DHCP server.
@ -307,28 +305,28 @@ Python3 interface to ISC Kea DHCP server.
%package devel %package devel
Summary: Development files for the Kea DHCP server Summary: Development files for the Kea DHCP server
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libkea-asiodns%asiodns_sover = %version Requires: libkea-asiodns%{asiodns_sover} = %{version}
Requires: libkea-asiolink%asiolink_sover = %version Requires: libkea-asiolink%{asiolink_sover} = %{version}
Requires: libkea-cc%cc_sover = %version Requires: libkea-cc%{cc_sover} = %{version}
Requires: libkea-cfgclient%cfgclient_sover = %version Requires: libkea-cfgclient%{cfgclient_sover} = %{version}
Requires: libkea-cryptolink%cryptolink_sover = %version Requires: libkea-cryptolink%{cryptolink_sover} = %{version}
Requires: libkea-database%database_sover = %version Requires: libkea-database%{database_sover} = %{version}
Requires: libkea-dhcp++%dhcppp_sover = %version Requires: libkea-dhcp++%{dhcppp_sover} = %{version}
Requires: libkea-dhcp_ddns%dhcp_ddns_sover = %version Requires: libkea-dhcp_ddns%{dhcp_ddns_sover} = %{version}
Requires: libkea-dhcpsrv%dhcpsrv_sover = %version Requires: libkea-dhcpsrv%{dhcpsrv_sover} = %{version}
Requires: libkea-dns++%dnspp_sover = %version Requires: libkea-dns++%{dnspp_sover} = %{version}
Requires: libkea-eval%eval_sover = %version Requires: libkea-eval%{eval_sover} = %{version}
Requires: libkea-exceptions%exceptions_sover = %version Requires: libkea-exceptions%{exceptions_sover} = %{version}
Requires: libkea-hooks%hooks_sover = %version Requires: libkea-hooks%{hooks_sover} = %{version}
Requires: libkea-http%http_sover = %version Requires: libkea-http%{http_sover} = %{version}
Requires: libkea-log%log_sover = %version Requires: libkea-log%{log_sover} = %{version}
Requires: libkea-mysql%mysql_sover = %version Requires: libkea-mysql%{mysql_sover} = %{version}
Requires: libkea-pgsql%pgsql_sover = %version Requires: libkea-pgsql%{pgsql_sover} = %{version}
Requires: libkea-process%process_sover = %version Requires: libkea-process%{process_sover} = %{version}
Requires: libkea-stats%stats_sover = %version Requires: libkea-stats%{stats_sover} = %{version}
Requires: libkea-threads%threads_sover = %version Requires: libkea-threads%{threads_sover} = %{version}
Requires: libkea-util-io%util_io_sover = %version Requires: libkea-util%{util_sover} = %{version}
Requires: libkea-util%util_sover = %version Requires: libkea-util-io%{util_io_sover} = %{version}
# Bundy DHCP and Kea share the same origin, so conflict # Bundy DHCP and Kea share the same origin, so conflict
Conflicts: otheproviders(pkgconfig(dns++)) Conflicts: otheproviders(pkgconfig(dns++))
@ -336,10 +334,10 @@ Conflicts: otheproviders(pkgconfig(dns++))
Development files for the Kea DHCP server Development files for the Kea DHCP server
%prep %prep
%autosetup -p1 -n kea-%dl_ver %autosetup -p1 -n kea-%{dl_ver}
%build %build
export FREERADIUS_INCLUDE="%_includedir/freeradius" export FREERADIUS_INCLUDE="%{_includedir}/freeradius"
export FREERADIUS_LIB="" export FREERADIUS_LIB=""
export FREERADIUS_DICTIONARY="" export FREERADIUS_DICTIONARY=""
autoreconf -fi autoreconf -fi
@ -358,45 +356,45 @@ autoreconf -fi
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
b="%buildroot" b=%{buildroot}
%make_install %make_install
find "%buildroot" -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p "$b/%_unitdir" "$b/%_prefix/lib/tmpfiles.d" mkdir -p "$b/%{_unitdir}" "$b/%{_prefix}/lib/tmpfiles.d"
ls -l "$b/%_unitdir/" "$b/%_prefix/lib/tmpfiles.d/" || : ls -l "$b/%{_unitdir}/" "$b/%{_prefix}/lib/tmpfiles.d/" || :
cat <<-EOF >"$b/%_unitdir/kea.service" cat <<-EOF >"$b/%{_unitdir}/kea.service"
[Unit] [Unit]
Description=ISC Kea DHCP server Description=ISC Kea DHCP server
Before=multi-user.target Before=multi-user.target
After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service
[Service] [Service]
Type=forking Type=forking
Environment=KEA_PIDFILE_DIR=%_rundir/%name Environment=KEA_PIDFILE_DIR=%{_rundir}/%{name}
ExecStart=%_sbindir/keactrl start ExecStart=%{_sbindir}/keactrl start
ExecReload=%_sbindir/keactrl reload ExecReload=%{_sbindir}/keactrl reload
ExecStop=%_sbindir/keactrl stop ExecStop=%{_sbindir}/keactrl stop
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
Alias=dhcp-server.service Alias=dhcp-server.service
EOF EOF
cat <<-EOF >"$b/%_prefix/lib/tmpfiles.d/kea.conf" cat <<-EOF >"$b/%{_prefix}/lib/tmpfiles.d/kea.conf"
d /run/kea 0775 keadhcp keadhcp - d /run/kea 0775 keadhcp keadhcp -
EOF EOF
perl -i -pe 's{%_localstatedir/log/kea-}{%_localstatedir/log/kea/}' \ perl -i -pe 's{%{_localstatedir}/log/kea-}{%{_localstatedir}/log/kea/}' \
"$b/%_sysconfdir/kea"/*.conf "$b/%{_sysconfdir}/kea"/*.conf
mkdir -p "$b%_localstatedir/log/kea" mkdir -p "$b%{_localstatedir}/log/kea"
ln -s "%_sbindir/service" "%buildroot/%_sbindir/rc%name" ln -s "%{_sbindir}/service" "%{buildroot}/%{_sbindir}/rc%{name}"
# Remove unnecessary files # Remove unnecessary files
find "%buildroot/%_libdir" -name "*.so.*" -type l -delete find "%{buildroot}/%{_libdir}" -name "*.so.*" -type l -delete
rm -Rf "%buildroot/%python3_sitelib/kea/__pycache__" rm -Rf "%{buildroot}/%{python3_sitelib}/kea/__pycache__"
%pre %pre
getent group keadhcp >/dev/null || groupadd -r keadhcp getent group keadhcp >/dev/null || groupadd -r keadhcp
getent passwd keadhcp >/dev/null || useradd -r -N -M -g keadhcp \ getent passwd keadhcp >/dev/null || useradd -r -N -M -g keadhcp \
-s /sbin/nologin -d %_localstatedir/lib/kea -c "Kea DHCP server" \ -s /sbin/nologin -d %{_localstatedir}/lib/kea -c "Kea DHCP server" \
keadhcp keadhcp
systemd-tmpfiles --create kea.conf || : systemd-tmpfiles --create kea.conf || :
%service_add_pre kea.service %service_add_pre kea.service
@ -410,139 +408,139 @@ systemd-tmpfiles --create kea.conf || :
%postun %postun
%service_del_postun kea.service %service_del_postun kea.service
%post -n libkea-asiodns%asiodns_sover -p /sbin/ldconfig %post -n libkea-asiodns%{asiodns_sover} -p /sbin/ldconfig
%postun -n libkea-asiodns%asiodns_sover -p /sbin/ldconfig %postun -n libkea-asiodns%{asiodns_sover} -p /sbin/ldconfig
%post -n libkea-asiolink%asiolink_sover -p /sbin/ldconfig %post -n libkea-asiolink%{asiolink_sover} -p /sbin/ldconfig
%postun -n libkea-asiolink%asiolink_sover -p /sbin/ldconfig %postun -n libkea-asiolink%{asiolink_sover} -p /sbin/ldconfig
%post -n libkea-cc%cc_sover -p /sbin/ldconfig %post -n libkea-cc%{cc_sover} -p /sbin/ldconfig
%postun -n libkea-cc%cc_sover -p /sbin/ldconfig %postun -n libkea-cc%{cc_sover} -p /sbin/ldconfig
%post -n libkea-cfgclient%cfgclient_sover -p /sbin/ldconfig %post -n libkea-cfgclient%{cfgclient_sover} -p /sbin/ldconfig
%postun -n libkea-cfgclient%cfgclient_sover -p /sbin/ldconfig %postun -n libkea-cfgclient%{cfgclient_sover} -p /sbin/ldconfig
%post -n libkea-cryptolink%cryptolink_sover -p /sbin/ldconfig %post -n libkea-cryptolink%{cryptolink_sover} -p /sbin/ldconfig
%postun -n libkea-cryptolink%cryptolink_sover -p /sbin/ldconfig %postun -n libkea-cryptolink%{cryptolink_sover} -p /sbin/ldconfig
%post -n libkea-database%database_sover -p /sbin/ldconfig %post -n libkea-database%{database_sover} -p /sbin/ldconfig
%postun -n libkea-database%database_sover -p /sbin/ldconfig %postun -n libkea-database%{database_sover} -p /sbin/ldconfig
%post -n libkea-dhcp++%dhcppp_sover -p /sbin/ldconfig %post -n libkea-dhcp++%{dhcppp_sover} -p /sbin/ldconfig
%postun -n libkea-dhcp++%dhcppp_sover -p /sbin/ldconfig %postun -n libkea-dhcp++%{dhcppp_sover} -p /sbin/ldconfig
%post -n libkea-dhcp_ddns%dhcp_ddns_sover -p /sbin/ldconfig %post -n libkea-dhcp_ddns%{dhcp_ddns_sover} -p /sbin/ldconfig
%postun -n libkea-dhcp_ddns%dhcp_ddns_sover -p /sbin/ldconfig %postun -n libkea-dhcp_ddns%{dhcp_ddns_sover} -p /sbin/ldconfig
%post -n libkea-dhcpsrv%dhcpsrv_sover -p /sbin/ldconfig %post -n libkea-dhcpsrv%{dhcpsrv_sover} -p /sbin/ldconfig
%postun -n libkea-dhcpsrv%dhcpsrv_sover -p /sbin/ldconfig %postun -n libkea-dhcpsrv%{dhcpsrv_sover} -p /sbin/ldconfig
%post -n libkea-dns++%dnspp_sover -p /sbin/ldconfig %post -n libkea-dns++%{dnspp_sover} -p /sbin/ldconfig
%postun -n libkea-dns++%dnspp_sover -p /sbin/ldconfig %postun -n libkea-dns++%{dnspp_sover} -p /sbin/ldconfig
%post -n libkea-eval%eval_sover -p /sbin/ldconfig %post -n libkea-eval%{eval_sover} -p /sbin/ldconfig
%postun -n libkea-eval%eval_sover -p /sbin/ldconfig %postun -n libkea-eval%{eval_sover} -p /sbin/ldconfig
%post -n libkea-exceptions%exceptions_sover -p /sbin/ldconfig %post -n libkea-exceptions%{exceptions_sover} -p /sbin/ldconfig
%postun -n libkea-exceptions%exceptions_sover -p /sbin/ldconfig %postun -n libkea-exceptions%{exceptions_sover} -p /sbin/ldconfig
%post -n libkea-hooks%hooks_sover -p /sbin/ldconfig %post -n libkea-hooks%{hooks_sover} -p /sbin/ldconfig
%postun -n libkea-hooks%hooks_sover -p /sbin/ldconfig %postun -n libkea-hooks%{hooks_sover} -p /sbin/ldconfig
%post -n libkea-http%http_sover -p /sbin/ldconfig %post -n libkea-http%{http_sover} -p /sbin/ldconfig
%postun -n libkea-http%http_sover -p /sbin/ldconfig %postun -n libkea-http%{http_sover} -p /sbin/ldconfig
%post -n libkea-log%log_sover -p /sbin/ldconfig %post -n libkea-log%{log_sover} -p /sbin/ldconfig
%postun -n libkea-log%log_sover -p /sbin/ldconfig %postun -n libkea-log%{log_sover} -p /sbin/ldconfig
%post -n libkea-mysql%mysql_sover -p /sbin/ldconfig %post -n libkea-mysql%{mysql_sover} -p /sbin/ldconfig
%postun -n libkea-mysql%mysql_sover -p /sbin/ldconfig %postun -n libkea-mysql%{mysql_sover} -p /sbin/ldconfig
%post -n libkea-pgsql%pgsql_sover -p /sbin/ldconfig %post -n libkea-pgsql%{pgsql_sover} -p /sbin/ldconfig
%postun -n libkea-pgsql%pgsql_sover -p /sbin/ldconfig %postun -n libkea-pgsql%{pgsql_sover} -p /sbin/ldconfig
%post -n libkea-process%process_sover -p /sbin/ldconfig %post -n libkea-process%{process_sover} -p /sbin/ldconfig
%postun -n libkea-process%process_sover -p /sbin/ldconfig %postun -n libkea-process%{process_sover} -p /sbin/ldconfig
%post -n libkea-stats%stats_sover -p /sbin/ldconfig %post -n libkea-stats%{stats_sover} -p /sbin/ldconfig
%postun -n libkea-stats%stats_sover -p /sbin/ldconfig %postun -n libkea-stats%{stats_sover} -p /sbin/ldconfig
%post -n libkea-threads%threads_sover -p /sbin/ldconfig %post -n libkea-threads%{threads_sover} -p /sbin/ldconfig
%postun -n libkea-threads%threads_sover -p /sbin/ldconfig %postun -n libkea-threads%{threads_sover} -p /sbin/ldconfig
%post -n libkea-util-io%util_io_sover -p /sbin/ldconfig %post -n libkea-util-io%{util_io_sover} -p /sbin/ldconfig
%postun -n libkea-util-io%util_io_sover -p /sbin/ldconfig %postun -n libkea-util-io%{util_io_sover} -p /sbin/ldconfig
%post -n libkea-util%util_sover -p /sbin/ldconfig %post -n libkea-util%{util_sover} -p /sbin/ldconfig
%postun -n libkea-util%util_sover -p /sbin/ldconfig %postun -n libkea-util%{util_sover} -p /sbin/ldconfig
%files %files
%dir %_sysconfdir/kea %dir %{_sysconfdir}/kea
%config(noreplace) %_sysconfdir/kea/*.conf %config(noreplace) %{_sysconfdir}/kea/*.conf
%_datadir/doc/kea/ %{_datadir}/doc/kea/
%_mandir/man8/*.8* %{_mandir}/man8/*.8%{?ext_man}
%_sbindir/rckea %{_sbindir}/rckea
%_sbindir/kea* %{_sbindir}/kea*
%_sbindir/perfdhcp %{_sbindir}/perfdhcp
%_datadir/kea/ %{_datadir}/kea/
%_unitdir/*.service %{_unitdir}/*.service
%_prefix/lib/tmpfiles.d/ %{_prefix}/lib/tmpfiles.d/
%attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/ %attr(0775,keadhcp,keadhcp) %{_localstatedir}/log/kea/
%files hooks %files hooks
%dir %_libdir/kea %dir %{_libdir}/kea
%_libdir/kea/hooks/ %{_libdir}/kea/hooks/
%files -n libkea-asiodns%asiodns_sover %files -n libkea-asiodns%{asiodns_sover}
%_libdir/libkea-asiodns.so.%asiodns_sover.* %{_libdir}/libkea-asiodns.so.%{asiodns_sover}.*
%files -n libkea-asiolink%asiolink_sover %files -n libkea-asiolink%{asiolink_sover}
%_libdir/libkea-asiolink.so.%asiolink_sover.* %{_libdir}/libkea-asiolink.so.%{asiolink_sover}.*
%files -n libkea-cc%cc_sover %files -n libkea-cc%{cc_sover}
%_libdir/libkea-cc.so.%cc_sover.* %{_libdir}/libkea-cc.so.%{cc_sover}.*
%files -n libkea-cfgclient%cfgclient_sover %files -n libkea-cfgclient%{cfgclient_sover}
%_libdir/libkea-cfgclient.so.%cfgclient_sover.* %{_libdir}/libkea-cfgclient.so.%{cfgclient_sover}.*
%files -n libkea-cryptolink%cryptolink_sover %files -n libkea-cryptolink%{cryptolink_sover}
%_libdir/libkea-cryptolink.so.%cryptolink_sover.* %{_libdir}/libkea-cryptolink.so.%{cryptolink_sover}.*
%files -n libkea-database%database_sover %files -n libkea-database%{database_sover}
%_libdir/libkea-database.so.%database_sover.* %{_libdir}/libkea-database.so.%{database_sover}.*
%files -n libkea-dhcp++%dhcppp_sover %files -n libkea-dhcp++%{dhcppp_sover}
%_libdir/libkea-dhcp++.so.%dhcppp_sover.* %{_libdir}/libkea-dhcp++.so.%{dhcppp_sover}.*
%files -n libkea-dhcp_ddns%dhcp_ddns_sover %files -n libkea-dhcp_ddns%{dhcp_ddns_sover}
%_libdir/libkea-dhcp_ddns.so.%dhcp_ddns_sover.* %{_libdir}/libkea-dhcp_ddns.so.%{dhcp_ddns_sover}.*
%files -n libkea-dhcpsrv%dhcpsrv_sover %files -n libkea-dhcpsrv%{dhcpsrv_sover}
%_libdir/libkea-dhcpsrv.so.%dhcpsrv_sover.* %{_libdir}/libkea-dhcpsrv.so.%{dhcpsrv_sover}.*
%files -n libkea-dns++%dnspp_sover %files -n libkea-dns++%{dnspp_sover}
%_libdir/libkea-dns++.so.%dnspp_sover.* %{_libdir}/libkea-dns++.so.%{dnspp_sover}.*
%files -n libkea-eval%eval_sover %files -n libkea-eval%{eval_sover}
%_libdir/libkea-eval.so.%eval_sover.* %{_libdir}/libkea-eval.so.%{eval_sover}.*
%files -n libkea-exceptions%exceptions_sover %files -n libkea-exceptions%{exceptions_sover}
%_libdir/libkea-exceptions.so.%exceptions_sover.* %{_libdir}/libkea-exceptions.so.%{exceptions_sover}.*
%files -n libkea-hooks%hooks_sover %files -n libkea-hooks%{hooks_sover}
%_libdir/libkea-hooks.so.%hooks_sover.* %{_libdir}/libkea-hooks.so.%{hooks_sover}.*
%files -n libkea-http%http_sover %files -n libkea-http%{http_sover}
%_libdir/libkea-http.so.%http_sover.* %{_libdir}/libkea-http.so.%{http_sover}.*
%files -n libkea-log%log_sover %files -n libkea-log%{log_sover}
%_libdir/libkea-log.so.%log_sover.* %{_libdir}/libkea-log.so.%{log_sover}.*
%files -n libkea-mysql%mysql_sover %files -n libkea-mysql%{mysql_sover}
%_libdir/libkea-mysql.so.%mysql_sover.* %{_libdir}/libkea-mysql.so.%{mysql_sover}.*
%files -n libkea-pgsql%pgsql_sover %files -n libkea-pgsql%{pgsql_sover}
%_libdir/libkea-pgsql.so.%pgsql_sover.* %{_libdir}/libkea-pgsql.so.%{pgsql_sover}.*
%files -n libkea-process%process_sover %files -n libkea-process%{process_sover}
%_libdir/libkea-process.so.%process_sover.* %{_libdir}/libkea-process.so.%{process_sover}.*
%files -n libkea-stats%stats_sover %files -n libkea-stats%{stats_sover}
%_libdir/libkea-stats.so.%stats_sover.* %{_libdir}/libkea-stats.so.%{stats_sover}.*
%files -n libkea-threads%threads_sover %files -n libkea-threads%{threads_sover}
%_libdir/libkea-threads.so.%threads_sover.* %{_libdir}/libkea-threads.so.%{threads_sover}.*
%files -n libkea-util-io%util_io_sover %files -n libkea-util-io%{util_io_sover}
%_libdir/libkea-util-io.so.%util_io_sover.* %{_libdir}/libkea-util-io.so.%{util_io_sover}.*
%files -n libkea-util%util_sover %files -n libkea-util%{util_sover}
%_libdir/libkea-util.so.%util_sover.* %{_libdir}/libkea-util.so.%{util_sover}.*
%files -n python3-kea %files -n python3-kea
%python3_sitelib/kea/ %{python3_sitelib}/kea/
%files devel %files devel
%_includedir/kea/ %{_includedir}/kea/
%_libdir/libkea*.so %{_libdir}/libkea*.so
%changelog %changelog