Projects
Eulaceura:Factory
kea
_service:obs_scm:kea.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:kea.spec of Package kea
%global prever 2.3 Name: kea Version: 2.3.6 Release: 1 Summary: Kea is an open source implementation of the DHCP servers, developed and maintained by ISC. License: MPLv2.0 and Boost URL: http://kea.isc.org Source0: https://downloads.isc.org/isc/kea/cur/%{prever}/%{name}-%{version}.tar.gz Source1: kea-dhcp4.service Source2: kea-dhcp6.service Source3: kea-dhcp-ddns.service Source4: kea-ctrl-agent.service BuildRequires: autoconf automake libtool BuildRequires: boost-devel BuildRequires: gcc-c++ BuildRequires: openssl-devel BuildRequires: mariadb-connector-c-devel BuildRequires: log4cplus-devel BuildRequires: procps-ng BuildRequires: bison BuildRequires: flex BuildRequires: python3-devel BuildRequires: systemd BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme BuildRequires: make BuildRequires: gnupg2 Requires: kea-libs%{?_isa} = %{version}-%{release} Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description Kea is an open source software system including DHCPv4, DHCPv6 servers, Dynamic DNS daemon, REST API interface, MySQL, and PostgreSQL databases, RADIUS and NETCONF interfaces and related utilities. %package devel Summary: Development headers and libraries for Kea DHCP server Requires: kea-libs%{?_isa} = %{version}-%{release} Requires: boost-devel Requires: openssl-devel Requires: pkgconfig %description devel Header files and API documentation. %package hooks Summary: Hooks libraries for kea Requires: kea-libs%{?_isa} = %{version}-%{release} %description hooks Hooking mechanism allow Kea to load one or more dynamically-linked libraries (known as "hooks libraries") and, at various points in its processing ("hook points"), call functions in them. Those functions perform whatever custom processing is required. %package libs Summary: Shared libraries used by Kea DHCP server %description libs This package contains shared libraries used by Kea DHCP server. %prep %autosetup -n %{name}-%{version} -p1 %build rm -rf doc/sphinx/_build sed -i -e 's|ECHO|YYECHO|g' src/lib/eval/lexer.cc autoreconf --verbose --force --install %configure \ --disable-dependency-tracking \ --disable-rpath \ --disable-silent-rules \ --disable-static \ --enable-debug \ --enable-generate-parser \ --enable-shell \ --enable-generate-docs \ --enable-generate-messages \ --enable-perfdhcp \ --with-mysql \ --without-pgsql \ --with-gnu-ld \ --with-log4cplus \ --with-openssl %make_build %install %make_install docdir=%{_pkgdocdir} # Get rid of .la files find %{buildroot} -type f -name "*.la" -delete -print # Install systemd units install -Dpm 0644 %{S:1} %{buildroot}%{_unitdir}/kea-dhcp4.service install -Dpm 0644 %{S:2} %{buildroot}%{_unitdir}/kea-dhcp6.service install -Dpm 0644 %{S:3} %{buildroot}%{_unitdir}/kea-dhcp-ddns.service install -Dpm 0644 %{S:4} %{buildroot}%{_unitdir}/kea-ctrl-agent.service # Start empty lease databases mkdir -p %{buildroot}%{_sharedstatedir}/kea/ touch %{buildroot}%{_sharedstatedir}/kea/kea-leases4.csv touch %{buildroot}%{_sharedstatedir}/kea/kea-leases6.csv rm -f %{buildroot}%{_pkgdocdir}/COPYING mkdir -p %{buildroot}/run install -d -m 0755 %{buildroot}/run/kea/ mkdir -p %{buildroot}%{_tmpfilesdir} cat > %{buildroot}%{_tmpfilesdir}/kea.conf <<EOF d /run/kea 0755 root root - EOF %post %systemd_post kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service kea-ctrl-agent.service %preun %systemd_preun kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service kea-ctrl-agent.service %postun %systemd_postun_with_restart kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service kea-ctrl-agent.service %ldconfig_scriptlets libs %files %license COPYING %doc AUTHORS ChangeLog README CONTRIBUTING.md examples html platforms.rst code_of_conduct.md %{_bindir}/kea-msg-compiler %{_sbindir}/%{name}* %{_sbindir}/perfdhcp %{_unitdir}/%{name}*.service %dir %{_sysconfdir}/%{name}/ %config(noreplace) %{_sysconfdir}/kea/%{name}*.conf %{_datarootdir}/%{name} %dir %{_sharedstatedir}/%{name} %config(noreplace) %{_sharedstatedir}/kea/kea-leases*.csv %{python3_sitelib}/%{name} %{_mandir}/man8/* %dir /run/kea/ %{_tmpfilesdir}/kea.conf %files devel %license COPYING %{_includedir}/kea %{_libdir}/libkea-*.so %files hooks %dir %{_libdir}/%{name} %{_libdir}/%{name}/hooks %files libs %license COPYING %{_libdir}/libkea-*.so.* %changelog * Wed Apr 5 2023 licihua<licihua@huawei.com> - 2.3.6-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2