#http://lists.fedoraproject.org/pipermail/devel/2011-August/155358.html %global _hardened_build 1 %global prever beta #%%global VERSION %{version}-%{patchver} #%%global VERSION %{version}-%{prever} %global VERSION %{version} Summary: DHCPv4, DHCPv6 and DDNS server from ISC Name: kea Version: 0.9.2 Release: 4%{?dist} License: ISC and Boost URL: http://kea.isc.org Source0: http://ftp.isc.org/isc/kea/%{VERSION}/kea-%{VERSION}.tar.gz # http://kea.isc.org/ticket/3529 Patch0: kea-systemd.patch Patch1: kea-CVE-2015-8373.patch # autoreconf BuildRequires: autoconf automake libtool BuildRequires: boost-devel # %%configure --with-openssl BuildRequires: openssl-devel # %%configure --with-dhcp-mysql BuildRequires: mariadb-devel # %%configure --with-dhcp-pgsql BuildRequires: postgresql-devel BuildRequires: log4cplus-devel %ifnarch s390 BuildRequires: valgrind-devel %endif BuildRequires: systemd # src/lib/testutils/dhcp_test_lib.sh BuildRequires: procps-ng # %%configure --with-gtest BuildRequires: gtest-devel # in case you ever wanted to use %%configure --enable-generate-docs #BuildRequires: elinks asciidoc plantuml 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} %description devel Header files and API documentation. %prep %setup -q -n kea-%{VERSION} %patch0 -p1 -b .systemd %patch1 -p1 -b .CVE-2015-8373 # 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 %build autoreconf --verbose --force --install %configure \ --disable-dependency-tracking \ --disable-rpath \ --disable-silent-rules \ --disable-static \ --enable-debug \ --enable-systemd \ --with-dhcp-mysql \ --with-dhcp-pgsql \ --with-gtest \ --with-log4cplus \ --with-openssl make %{?_smp_mflags} %check #make check %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # Get rid of .la files find %{buildroot} -type f -name "*.la" -delete -print # Start empty lease databases mkdir -p %{buildroot}%{_sharedstatedir}/kea/ touch %{buildroot}%{_sharedstatedir}/kea/kea-leases4.csv touch %{buildroot}%{_sharedstatedir}/kea/kea-leases6.csv install -p -m 644 ext/LICENSE_1_0.txt %{buildroot}%{_defaultdocdir}/kea/ 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 < - 0.9.2-4 - CVE-2015-8373 * Mon Aug 24 2015 Jiri Popelka - 0.9.2-3 - fix valgrind-devel availability * Wed Jul 29 2015 Fedora Release Engineering - 0.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Tue Jul 28 2015 Jiri Popelka - 0.9.2-1 - 0.9.2 * Wed Jul 22 2015 David Tardon - 0.9.2-0.2.beta - rebuild for Boost 1.58 * Thu Jul 02 2015 Jiri Popelka - 0.9.2-0.1.beta - 0.9.2-beta * Wed Jun 17 2015 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.9.1-2 - Rebuilt for GCC 5 C++11 ABI change * Wed Apr 01 2015 Jiri Popelka - 0.9.1-1 - 0.9.1 * Fri Feb 20 2015 Jiri Popelka - 0.9.1-0.2.beta - /run/kea/ (for logger_lockfile) * Thu Feb 19 2015 Jiri Popelka - 0.9.1-0.1.beta - 0.9.1-beta * Tue Jan 27 2015 Petr Machata - 0.9-4 - Rebuild for boost 1.57.0 * Tue Nov 04 2014 Jiri Popelka - 0.9-3 - do not override @localstatedir@ globally - include latest upstream kea.conf * Wed Sep 24 2014 Dan HorĂ¡k - 0.9-2 - valgrind available only on selected arches * Mon Sep 01 2014 Jiri Popelka - 0.9-1 - 0.9 * Thu Aug 21 2014 Jiri Popelka - 0.9-0.5.beta1 - fix building with PostgreSQL on i686 - redefine localstatedir to sharedstatedir (kea#3523) * Wed Aug 20 2014 Jiri Popelka - 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 * Tue Aug 19 2014 Jiri Popelka - 0.9-0.3.beta1 - comment patches - use --preserve-timestamps with install * Mon Aug 18 2014 Jiri Popelka - 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 - 0.9-0.1.beta1 - initial spec