Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package knot for openSUSE:Factory checked in at 2021-09-20 23:32:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/knot (Old) and /work/SRC/openSUSE:Factory/.knot.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "knot" Mon Sep 20 23:32:46 2021 rev:7 rq:919883 version:3.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/knot/knot.changes 2021-07-08 22:49:40.975883851 +0200 +++ /work/SRC/openSUSE:Factory/.knot.new.1899/knot.changes 2021-09-20 23:34:16.203256364 +0200 @@ -1,0 +2,20 @@ +Fri Sep 17 19:15:39 UTC 2021 - Michal Hrusecky <[email protected]> + +- migrate to user creation via sysuser-tools +- run spec-cleaner on spec file +- update to version 3.1.2, see: + https://www.knot-dns.cz/2021-09-08-version-312.html + +------------------------------------------------------------------- +Thu Aug 12 07:51:04 UTC 2021 - Michal Hrusecky <[email protected]> + +- update to version 3.1.1, see: + https://www.knot-dns.cz/2021-08-10-version-311.html + +------------------------------------------------------------------- +Wed Aug 4 17:31:13 UTC 2021 - Michal Hrusecky <[email protected]> + +- update to version 3.1.0, see: + https://www.knot-dns.cz/2021-08-02-version-310.html + +------------------------------------------------------------------- Old: ---- knot-3.0.7.tar.xz knot-3.0.7.tar.xz.asc New: ---- knot-3.1.2.tar.xz knot-3.1.2.tar.xz.asc system-user-knot.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ knot.spec ++++++ --- /var/tmp/diff_new_pack.DRYlwl/_old 2021-09-20 23:34:16.795257096 +0200 +++ /var/tmp/diff_new_pack.DRYlwl/_new 2021-09-20 23:34:16.795257096 +0200 @@ -16,6 +16,10 @@ # +%define libdnssec libdnssec8 +%define libknot libknot12 +%define libzscanner libzscanner4 +%define pkg_name knot %if 0%{?suse_version} > 1320 %bcond_without dnstap %bcond_without lto @@ -33,50 +37,48 @@ %else %bcond_with maxminddb %endif - %if 0%{?suse_version} > 1140 && ( 0%{?suse_version} != 1315 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )) %bcond_without docs %else %bcond_with docs %endif - -%define libdnssec libdnssec8 -%define libknot libknot11 -%define libzscanner libzscanner3 - +%if %{with systemd} +%define has_systemd 1 +BuildRequires: systemd-devel +%{?systemd_requires} +%endif Name: knot -Version: 3.0.7 +Version: 3.1.2 Release: 0 -%define pkg_name knot Summary: An authoritative DNS daemon License: GPL-3.0-or-later Group: Productivity/Networking/DNS/Servers -URL: http://www.knot-dns.cz/ +URL: https://www.knot-dns.cz/ Source0: https://secure.nic.cz/files/knot-dns/%{pkg_name}-%{version}.tar.xz Source1: knot.service Source2: knot-tmp.conf Source3: https://secure.nic.cz/files/knot-dns/%{pkg_name}-%{version}.tar.xz.asc +Source4: system-user-knot.conf +BuildRequires: libcap-ng-devel BuildRequires: libedit-devel +BuildRequires: liburcu-devel +BuildRequires: lmdb-devel >= 0.9.15 +BuildRequires: openssl-devel +BuildRequires: pkgconfig +BuildRequires: sysuser-tools +BuildRequires: xz +BuildRequires: pkgconfig(gnutls) >= 3.3 +BuildRequires: pkgconfig(nettle) +Obsoletes: knot2 < %{version} +%sysusers_requires %if 0%{?suse_version} > 1320 || 0%{?leap_version} == 420300 BuildRequires: libidn2-devel %else BuildRequires: libidn-devel %endif -BuildRequires: liburcu-devel -BuildRequires: openssl-devel -BuildRequires: pkg-config -BuildRequires: pkgconfig(gnutls) >= 3.3 -BuildRequires: pkgconfig(nettle) %if %{with maxminddb} BuildRequires: pkgconfig(libmaxminddb) %endif -BuildRequires: libcap-ng-devel -BuildRequires: xz -Requires(pre): pwdutils -Requires(pre): shadow -Requires(pre): glibc -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: lmdb-devel >= 0.9.15 %if %{with docs} BuildRequires: makeinfo BuildRequires: python3-Sphinx @@ -86,12 +88,6 @@ BuildRequires: libprotobuf-c-devel >= 1.0.0 BuildRequires: protobuf-c >= 1.0.0 %endif -%if %{with systemd} -%define has_systemd 1 -BuildRequires: systemd-devel -%{?systemd_requires} -%endif -Obsoletes: knot2 < %{version} %description Knot DNS is a DNS server. It implements only the authoritative domain @@ -100,10 +96,10 @@ removal. %package devel -Group: Development/Libraries/C and C++ -Requires: knot = %{version} # Summary: Development files for the knot libraries +Group: Development/Libraries/C and C++ +Requires: knot = %{version} %description devel Knot DNS is a DNS server. It implements only the authoritative domain @@ -114,9 +110,9 @@ This package contains headers for knot. %package -n %{libdnssec} -Group: System/Libraries # Summary: DNSSEC support functions for Knot DNS +Group: System/Libraries %description -n %{libdnssec} Knot DNS is a DNS server. It implements only the authoritative domain @@ -127,9 +123,9 @@ This package contains a library for DNSSEC support functions. %package -n %{libknot} -Group: System/Libraries # Summary: Knot DNS support library +Group: System/Libraries %description -n %{libknot} Knot DNS is a DNS server. It implements only the authoritative domain @@ -140,9 +136,9 @@ This package contains the essential core library for Knot services. %package -n %{libzscanner} -Group: System/Libraries # Summary: Zone record parsing functions for Knot DNS +Group: System/Libraries %description -n %{libzscanner} Knot DNS is a DNS server. It implements only the authoritative domain @@ -186,9 +182,10 @@ --with-module-stats=shared \ --with-module-synthrecord=shared \ --with-module-whoami=shared \ - --with-bash-completions=/etc/bash_completion.d \ + --with-bash-completions=%{_sysconfdir}/bash_completion.d \ --disable-silent-rules %make_build STRIP="/bin/true" +%sysusers_generate_pre %{SOURCE4} knot system-user-knot.conf %install %make_install STRIP="/bin/true" @@ -205,15 +202,14 @@ install -p -m644 COPYING NEWS README.md %{buildroot}%{_docdir}/%{pkg_name} install -p -m644 samples/*.conf samples/*.zone* %{buildroot}%{_docdir}/%{pkg_name}/samples/ find %{buildroot} -type f -name "*.la" -delete -print -install -d -m 0750 %{buildroot}/var/lib/knot/ +install -d -m 0750 %{buildroot}%{_localstatedir}/lib/knot/ +mkdir -p %{buildroot}%{_sysusersdir} +install -m 0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/ -%pre -getent group knot >/dev/null || groupadd -r knot -getent passwd knot >/dev/null || \ - useradd -r -g knot -d %{_sysconfdir}/knot -s /sbin/nologin \ - -c "Knot DNS server" knot +%pre -f knot.pre %if %{with systemd} %service_add_pre %{pkg_name}.service + %preun %service_del_preun %{pkg_name}.service @@ -258,9 +254,10 @@ %if %{with systemd} %{_unitdir}/%{pkg_name}.service %{_tmpfilesdir}/knot.conf +%{_sysusersdir}/system-user-knot.conf %endif %{_libdir}/knot/ -%dir %attr(-,knot,knot) /var/lib/knot/ +%dir %attr(-,knot,knot) %{_localstatedir}/lib/knot/ %ghost %dir %(751,knot,knot) /run/knot %files -n %{libdnssec} ++++++ knot-3.0.7.tar.xz -> knot-3.1.2.tar.xz ++++++ ++++ 177795 lines of diff (skipped) ++++++ system-user-knot.conf ++++++ u knot - "Knot DNS server" /var/lib/knot
