]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
distro/pkg: update for new python modules layout
authorJakub Ružička <jakub.ruzicka@nic.cz>
Mon, 9 Sep 2024 10:24:37 +0000 (12:24 +0200)
committerJakub Ružička <jakub.ruzicka@nic.cz>
Mon, 9 Sep 2024 11:27:29 +0000 (13:27 +0200)
Old knot_resolver module is now knot_resolver_build_options.

Old knot_resolver_manager module is now just knot_resolver.

distro/pkg/deb/rules
distro/pkg/rpm/knot-resolver.spec

index 2ec3dbe2c6c1569d9d069fe4b65cf74bb8dbaeeb..a682d79b14547f4567cfb1992b4592f7e4593929 100755 (executable)
@@ -36,16 +36,16 @@ override_dh_auto_build:
                -Dc_link_args="$${LDFLAGS}"
        ninja -v -C build_deb
        PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
-               dh_auto_build --buildsystem=pybuild --sourcedirectory build_deb/python
-       PYBUILD_NAME=knot_resolver_manager PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
                dh_auto_build --buildsystem=pybuild
+       PYBUILD_NAME=knot_resolver_build_options PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
+               dh_auto_build --buildsystem=pybuild --sourcedirectory build_deb/python
 
 override_dh_auto_install:
        DESTDIR="$(shell pwd)/debian/tmp" ninja -v -C build_deb install
        PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
-               dh_auto_install --buildsystem=pybuild --sourcedirectory build_deb/python
-       PYBUILD_NAME=knot_resolver_manager PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
                dh_auto_install --buildsystem=pybuild
+       PYBUILD_NAME=knot_resolver_build_options PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
+               dh_auto_install --buildsystem=pybuild --sourcedirectory build_deb/python
        install -m 644 -D etc/config/config.yaml debian/tmp/etc/knot-resolver/config.yaml
 
 override_dh_auto_test:
index 2f18b28b19990e036d3e50339b2104d70e0c0f89..d1ec860c27158f0d0b7ab6f42bdece828ea327e1 100644 (file)
@@ -213,12 +213,14 @@ install -m 755 -d %{buildroot}/%{_pkgdocdir}
 mv %{buildroot}/%{_datadir}/doc/%{name}/* %{buildroot}/%{_pkgdocdir}/
 %endif
 
+# install knot_resolver python module
+%py3_install
+
+# install knot_resolver_build_options python module
 pushd build_rpm/python
 %py3_install
 popd
 
-# install knot-resolver-manager
-%py3_install
 install -m 644 -D etc/config/config.yaml %{buildroot}%{_sysconfdir}/knot-resolver/config.yaml
 
 %pre
@@ -299,13 +301,13 @@ getent passwd knot-resolver >/dev/null || useradd -r -g knot-resolver -d %{_sysc
 %{_libdir}/knot-resolver/kres_modules/view.lua
 %{_libdir}/knot-resolver/kres_modules/watchdog.lua
 %{_libdir}/knot-resolver/kres_modules/workarounds.lua
-%{python3_sitelib}/knot_resolver.py
-%{python3_sitelib}/knot_resolver-*
-%{python3_sitearch}/knot_resolver_manager*
+%{python3_sitelib}/knot_resolver_build_options.py
+%{python3_sitelib}/knot_resolver_build_options-*
+%{python3_sitearch}/knot_resolver*
 %if 0%{?suse_version}
-%pycache_only %{python3_sitelib}/__pycache__/knot_resolver.*
+%pycache_only %{python3_sitelib}/__pycache__/knot_resolver_build_options.*
 %else
-%{python3_sitelib}/__pycache__/knot_resolver.*
+%{python3_sitelib}/__pycache__/knot_resolver_build_options.*
 %endif
 %{_mandir}/man8/kresd.8.gz
 %{_mandir}/man8/kresctl.8.gz