2014-08-20 10:05:46 +00:00
|
|
|
#http://lists.fedoraproject.org/pipermail/devel/2011-August/155358.html
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
2015-12-23 10:58:55 +00:00
|
|
|
%global prever beta2
|
2014-08-20 10:05:46 +00:00
|
|
|
|
2015-12-29 23:23:15 +00:00
|
|
|
#%%global VERSION %%{version}-%%{patchver}
|
|
|
|
#%%global VERSION %%{version}-%%{prever}
|
|
|
|
%global VERSION %{version}
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
Summary: DHCPv4, DHCPv6 and DDNS server from ISC
|
|
|
|
Name: kea
|
2015-12-09 11:14:09 +00:00
|
|
|
Version: 1.0.0
|
2016-05-13 15:27:11 +00:00
|
|
|
Release: 9%{?dist}
|
2015-12-29 23:23:15 +00:00
|
|
|
License: MPLv2.0 and Boost
|
2014-08-20 10:05:46 +00:00
|
|
|
URL: http://kea.isc.org
|
|
|
|
Source0: http://ftp.isc.org/isc/kea/%{VERSION}/kea-%{VERSION}.tar.gz
|
|
|
|
|
2014-08-20 10:10:46 +00:00
|
|
|
# http://kea.isc.org/ticket/3529
|
2014-09-01 08:19:28 +00:00
|
|
|
Patch0: kea-systemd.patch
|
2016-03-11 13:46:29 +00:00
|
|
|
Patch1: kea-coroutinepgsql.patch
|
2014-08-20 10:05:46 +00:00
|
|
|
|
2014-08-20 10:10:46 +00:00
|
|
|
# autoreconf
|
2014-08-20 10:05:46 +00:00
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
BuildRequires: boost-devel
|
2014-08-20 10:10:46 +00:00
|
|
|
# %%configure --with-openssl
|
2014-08-20 10:05:46 +00:00
|
|
|
BuildRequires: openssl-devel
|
2014-08-20 10:10:46 +00:00
|
|
|
# %%configure --with-dhcp-mysql
|
|
|
|
BuildRequires: mariadb-devel
|
|
|
|
# %%configure --with-dhcp-pgsql
|
|
|
|
BuildRequires: postgresql-devel
|
2014-08-20 10:05:46 +00:00
|
|
|
BuildRequires: log4cplus-devel
|
2015-08-24 15:46:34 +00:00
|
|
|
%ifnarch s390
|
2014-08-20 10:05:46 +00:00
|
|
|
BuildRequires: valgrind-devel
|
2014-09-24 15:17:44 +00:00
|
|
|
%endif
|
2014-08-20 10:05:46 +00:00
|
|
|
BuildRequires: systemd
|
|
|
|
# src/lib/testutils/dhcp_test_lib.sh
|
|
|
|
BuildRequires: procps-ng
|
|
|
|
|
2015-07-28 16:58:43 +00:00
|
|
|
# %%configure --with-gtest
|
|
|
|
BuildRequires: gtest-devel
|
2014-08-20 10:10:46 +00:00
|
|
|
|
|
|
|
# in case you ever wanted to use %%configure --enable-generate-docs
|
|
|
|
#BuildRequires: elinks asciidoc plantuml
|
|
|
|
|
2014-08-20 10:05:46 +00:00
|
|
|
Requires: kea-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
DHCP implementation from Internet Systems Consortium, Inc.
|
|
|
|
that features fully functional DHCPv4, DHCPv6 and Dynamic DNS servers.
|
|
|
|
Both DHCP servers fully support server discovery,
|
|
|
|
address assignment, renewal, rebinding and release. The DHCPv6
|
|
|
|
server supports prefix delegation. Both servers support DNS Update
|
|
|
|
mechanism, using stand-alone DDNS daemon.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Shared libraries used by Kea DHCP server
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
This package contains shared libraries used by Kea DHCP server.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers and libraries for Kea DHCP server
|
|
|
|
Requires: kea-libs%{?_isa} = %{version}-%{release}
|
2016-05-13 15:27:11 +00:00
|
|
|
# to build hooks (#1335900)
|
|
|
|
Requires: boost-devel
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files and API documentation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n kea-%{VERSION}
|
|
|
|
|
2014-09-01 08:19:28 +00:00
|
|
|
%patch0 -p1 -b .systemd
|
2016-03-11 13:46:29 +00:00
|
|
|
%patch1 -p1 -b .coroutinepgsql
|
2014-08-20 10:05:46 +00:00
|
|
|
|
2014-11-04 11:11:46 +00:00
|
|
|
# install leases db in /var/lib/kea/ not /var/kea/
|
|
|
|
# http://kea.isc.org/ticket/3523
|
|
|
|
sed -i -e 's|@localstatedir@|@sharedstatedir@|g' src/lib/dhcpsrv/Makefile.am
|
|
|
|
|
2014-08-20 10:05:46 +00:00
|
|
|
%build
|
|
|
|
autoreconf --verbose --force --install
|
2016-03-11 13:46:29 +00:00
|
|
|
export CXXFLAGS="%{optflags} -std=gnu++11 -Wno-deprecated-declarations"
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
%configure \
|
2015-02-19 19:02:22 +00:00
|
|
|
--disable-dependency-tracking \
|
2015-07-28 16:58:43 +00:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-silent-rules \
|
2014-08-20 10:05:46 +00:00
|
|
|
--disable-static \
|
2015-07-28 16:58:43 +00:00
|
|
|
--enable-debug \
|
2014-08-20 10:10:46 +00:00
|
|
|
--enable-systemd \
|
|
|
|
--with-dhcp-mysql \
|
|
|
|
--with-dhcp-pgsql \
|
2015-12-09 11:14:09 +00:00
|
|
|
--with-gnu-ld \
|
2015-07-28 16:58:43 +00:00
|
|
|
--with-log4cplus \
|
2016-03-11 13:46:29 +00:00
|
|
|
--with-openssl \
|
|
|
|
# --with-gtest
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2015-02-19 19:02:22 +00:00
|
|
|
#make check
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
%install
|
2015-07-28 16:58:43 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
# Get rid of .la files
|
2015-07-28 16:58:43 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2014-08-20 10:05:46 +00:00
|
|
|
|
|
|
|
# Start empty lease databases
|
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/kea/
|
|
|
|
touch %{buildroot}%{_sharedstatedir}/kea/kea-leases4.csv
|
|
|
|
touch %{buildroot}%{_sharedstatedir}/kea/kea-leases6.csv
|
|
|
|
|
2015-12-09 11:14:09 +00:00
|
|
|
rm -f %{buildroot}%{_defaultdocdir}/kea/COPYING
|
2014-08-20 10:05:46 +00:00
|
|
|
|
2015-02-20 12:27:45 +00:00
|
|
|
mkdir -p %{buildroot}/run
|
|
|
|
install -d -m 0755 %{buildroot}/run/kea/
|
|
|
|
|
|
|
|
# install /usr/lib/tmpfiles.d/kea.conf
|
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
|
cat > %{buildroot}%{_tmpfilesdir}/kea.conf <<EOF
|
|
|
|
# kea needs existing /run/kea/ to create logger_lockfile there
|
|
|
|
# See tmpfiles.d(5) for details
|
|
|
|
|
|
|
|
d /run/kea 0755 root root -
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
2014-08-20 10:05:46 +00:00
|
|
|
%post
|
|
|
|
%systemd_post kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service
|
|
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2015-02-19 19:02:22 +00:00
|
|
|
%{_sbindir}/kea-admin
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_sbindir}/kea-dhcp-ddns
|
|
|
|
%{_sbindir}/kea-dhcp4
|
|
|
|
%{_sbindir}/kea-dhcp6
|
2015-02-19 19:02:22 +00:00
|
|
|
%{_sbindir}/kea-lfc
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_sbindir}/keactrl
|
|
|
|
%{_sbindir}/perfdhcp
|
2015-12-23 10:58:55 +00:00
|
|
|
%{_bindir}/kea-msg-compiler
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_unitdir}/kea-dhcp4.service
|
|
|
|
%{_unitdir}/kea-dhcp6.service
|
|
|
|
%{_unitdir}/kea-dhcp-ddns.service
|
|
|
|
%dir %{_sysconfdir}/kea/
|
|
|
|
%config(noreplace) %{_sysconfdir}/kea/kea.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/kea/keactrl.conf
|
|
|
|
%dir %{_datarootdir}/kea/
|
2015-12-09 11:14:09 +00:00
|
|
|
%{_datarootdir}/kea/scripts
|
2015-02-20 12:27:45 +00:00
|
|
|
%dir /run/kea/
|
|
|
|
%{_tmpfilesdir}/kea.conf
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_datarootdir}/kea/dhcp-ddns.spec
|
|
|
|
%{_datarootdir}/kea/dhcp4.spec
|
|
|
|
%{_datarootdir}/kea/dhcp6.spec
|
|
|
|
%dir %{_sharedstatedir}/kea
|
|
|
|
%config(noreplace) %{_sharedstatedir}/kea/kea-leases4.csv
|
|
|
|
%config(noreplace) %{_sharedstatedir}/kea/kea-leases6.csv
|
|
|
|
%{_defaultdocdir}/kea/AUTHORS
|
|
|
|
%{_defaultdocdir}/kea/ChangeLog
|
|
|
|
%{_defaultdocdir}/kea/README
|
|
|
|
%{_defaultdocdir}/kea/examples
|
|
|
|
%{_defaultdocdir}/kea/kea-guide.*
|
2015-12-09 11:14:09 +00:00
|
|
|
%{_defaultdocdir}/kea/kea-logo-100x70.png
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_defaultdocdir}/kea/kea-messages.html
|
2015-02-19 19:02:22 +00:00
|
|
|
%{_mandir}/man8/kea-admin.8.gz
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_mandir}/man8/kea-dhcp-ddns.8.gz
|
|
|
|
%{_mandir}/man8/kea-dhcp4.8.gz
|
|
|
|
%{_mandir}/man8/kea-dhcp6.8.gz
|
2015-02-19 19:02:22 +00:00
|
|
|
%{_mandir}/man8/kea-lfc.8.gz
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_mandir}/man8/keactrl.8.gz
|
|
|
|
%{_mandir}/man8/perfdhcp.8.gz
|
|
|
|
|
|
|
|
%files libs
|
2015-12-09 11:14:09 +00:00
|
|
|
#%%dir %%{_defaultdocdir}/kea/
|
|
|
|
#%%{_defaultdocdir}/kea/COPYING
|
|
|
|
#%%{_defaultdocdir}/kea/LICENSE_1_0.txt
|
|
|
|
%license COPYING
|
|
|
|
%license ext/coroutine/LICENSE_1_0.txt
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_libdir}/libkea-asiodns.so.*
|
|
|
|
%{_libdir}/libkea-asiolink.so.*
|
|
|
|
%{_libdir}/libkea-cc.so.*
|
|
|
|
%{_libdir}/libkea-cfgclient.so.*
|
|
|
|
%{_libdir}/libkea-cryptolink.so.*
|
|
|
|
%{_libdir}/libkea-dhcp++.so.*
|
|
|
|
%{_libdir}/libkea-dhcp_ddns.so.*
|
|
|
|
%{_libdir}/libkea-dhcpsrv.so.*
|
|
|
|
%{_libdir}/libkea-dns++.so.*
|
2015-12-09 11:14:09 +00:00
|
|
|
%{_libdir}/libkea-eval.so.*
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_libdir}/libkea-exceptions.so.*
|
|
|
|
%{_libdir}/libkea-hooks.so.*
|
|
|
|
%{_libdir}/libkea-log.so.*
|
2015-07-02 11:10:22 +00:00
|
|
|
%{_libdir}/libkea-stats.so.*
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_libdir}/libkea-threads.so.*
|
|
|
|
%{_libdir}/libkea-util-io.so.*
|
|
|
|
%{_libdir}/libkea-util.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/kea
|
|
|
|
%{_libdir}/libkea-asiodns.so
|
|
|
|
%{_libdir}/libkea-asiolink.so
|
|
|
|
%{_libdir}/libkea-cc.so
|
|
|
|
%{_libdir}/libkea-cfgclient.so
|
|
|
|
%{_libdir}/libkea-cryptolink.so
|
|
|
|
%{_libdir}/libkea-dhcp++.so
|
|
|
|
%{_libdir}/libkea-dhcp_ddns.so
|
|
|
|
%{_libdir}/libkea-dhcpsrv.so
|
|
|
|
%{_libdir}/libkea-dns++.so
|
2015-12-09 11:14:09 +00:00
|
|
|
%{_libdir}/libkea-eval.so
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_libdir}/libkea-exceptions.so
|
|
|
|
%{_libdir}/libkea-hooks.so
|
|
|
|
%{_libdir}/libkea-log.so
|
2015-07-02 11:10:22 +00:00
|
|
|
%{_libdir}/libkea-stats.so
|
2014-08-20 10:05:46 +00:00
|
|
|
%{_libdir}/libkea-threads.so
|
|
|
|
%{_libdir}/libkea-util-io.so
|
|
|
|
%{_libdir}/libkea-util.so
|
|
|
|
%{_libdir}/pkgconfig/dns++.pc
|
|
|
|
|
|
|
|
%changelog
|
2016-05-13 15:27:11 +00:00
|
|
|
* Fri May 13 2016 Jiri Popelka <jpopelka@redhat.com> - 1.0.0-9
|
|
|
|
- devel subpackage Requires: boost-devel
|
|
|
|
|
2016-03-23 12:29:52 +00:00
|
|
|
* Wed Mar 23 2016 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.0-8
|
|
|
|
- Rebuild for log4cplus-1.2.0-2
|
|
|
|
|
2016-05-13 15:27:11 +00:00
|
|
|
* Wed Mar 23 2016 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.0-7
|
2016-03-23 09:18:52 +00:00
|
|
|
- Rebuilding kea for log4cplus-1.2.0
|
|
|
|
|
2016-05-13 15:27:11 +00:00
|
|
|
* Wed Mar 16 2016 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.0-6
|
2016-03-16 09:31:21 +00:00
|
|
|
- Editing pgsql_lease_mgr.cc according to upstream
|
|
|
|
|
2016-05-13 15:27:11 +00:00
|
|
|
* Fri Mar 11 2016 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.0-4
|
2016-03-11 13:46:29 +00:00
|
|
|
- Fixing bugs created from new C++ standard
|
|
|
|
|
2016-02-04 01:55:05 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-15 08:21:36 +00:00
|
|
|
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 1.0.0-2
|
|
|
|
- Rebuilt for Boost 1.60
|
|
|
|
|
2015-12-29 23:23:15 +00:00
|
|
|
* Tue Dec 29 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.0-1
|
|
|
|
- 1.0.0
|
|
|
|
|
2015-12-23 12:15:10 +00:00
|
|
|
* Wed Dec 23 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.0-0.3.beta2
|
|
|
|
- fix compile error
|
|
|
|
|
2015-12-23 10:58:55 +00:00
|
|
|
* Wed Dec 23 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.0-0.2.beta2
|
|
|
|
- 1.0.0-beta2
|
|
|
|
|
|
|
|
* Wed Dec 09 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.0-0.1.beta
|
2015-12-09 11:14:09 +00:00
|
|
|
- 1.0.0-beta
|
|
|
|
|
2015-08-24 15:46:34 +00:00
|
|
|
* Mon Aug 24 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.2-3
|
|
|
|
- fix valgrind-devel availability
|
|
|
|
|
2015-07-29 17:28:52 +00:00
|
|
|
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
|
|
|
|
2015-07-28 16:58:43 +00:00
|
|
|
* Tue Jul 28 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.2-1
|
|
|
|
- 0.9.2
|
|
|
|
|
2015-07-22 16:44:58 +00:00
|
|
|
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.9.2-0.2.beta
|
|
|
|
- rebuild for Boost 1.58
|
|
|
|
|
2015-07-02 11:10:22 +00:00
|
|
|
* Thu Jul 02 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.2-0.1.beta
|
|
|
|
- 0.9.2-beta
|
|
|
|
|
2015-06-17 13:06:53 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 21:52:56 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.9.1-2
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-04-01 10:43:10 +00:00
|
|
|
* Wed Apr 01 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.1-1
|
|
|
|
- 0.9.1
|
|
|
|
|
2015-02-20 12:27:45 +00:00
|
|
|
* Fri Feb 20 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.1-0.2.beta
|
|
|
|
- /run/kea/ (for logger_lockfile)
|
|
|
|
|
2015-02-19 19:02:22 +00:00
|
|
|
* Thu Feb 19 2015 Jiri Popelka <jpopelka@redhat.com> - 0.9.1-0.1.beta
|
|
|
|
- 0.9.1-beta
|
|
|
|
|
2015-01-27 06:21:39 +00:00
|
|
|
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.9-4
|
|
|
|
- Rebuild for boost 1.57.0
|
|
|
|
|
2014-11-04 11:11:46 +00:00
|
|
|
* Tue Nov 04 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-3
|
|
|
|
- do not override @localstatedir@ globally
|
2014-11-04 12:12:57 +00:00
|
|
|
- include latest upstream kea.conf
|
2014-11-04 11:11:46 +00:00
|
|
|
|
2014-09-24 15:17:44 +00:00
|
|
|
* Wed Sep 24 2014 Dan Horák <dan[at]danny.cz> - 0.9-2
|
|
|
|
- valgrind available only on selected arches
|
|
|
|
|
2014-09-01 08:19:28 +00:00
|
|
|
* Mon Sep 01 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-1
|
|
|
|
- 0.9
|
|
|
|
|
2014-08-21 17:14:17 +00:00
|
|
|
* Thu Aug 21 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-0.5.beta1
|
|
|
|
- fix building with PostgreSQL on i686
|
|
|
|
- redefine localstatedir to sharedstatedir (kea#3523)
|
|
|
|
|
2014-08-20 10:10:46 +00:00
|
|
|
* Wed Aug 20 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-0.4.beta1
|
|
|
|
- install systemd service units with a proper patch that we can send upstream
|
|
|
|
- build with MySQL & PostgreSQL & Google Test
|
|
|
|
- no need to copy sample configuration, /etc/kea/kea.conf already contains one
|
|
|
|
|
2014-08-20 10:05:46 +00:00
|
|
|
* Tue Aug 19 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-0.3.beta1
|
|
|
|
- comment patches
|
|
|
|
- use --preserve-timestamps with install
|
|
|
|
|
|
|
|
* Mon Aug 18 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-0.2.beta1
|
|
|
|
- make it build on armv7
|
|
|
|
- BuildRequires procps-ng for %%check
|
|
|
|
- use install instead of cp
|
|
|
|
- configure.ac: AC_PROG_LIBTOOL -> LT_INIT
|
|
|
|
- move license files to -libs
|
|
|
|
|
|
|
|
* Thu Aug 14 2014 Jiri Popelka <jpopelka@redhat.com> - 0.9-0.1.beta1
|
|
|
|
- initial spec
|