-D malloc=jemalloc \
-D unit_tests=enabled
ninja -C build
- pushd build/python
- python -Pm build --wheel --no-isolation
- popd
python -Pm build --wheel --no-isolation
}
# remove modules with missing dependencies
rm "${pkgdir}/usr/lib/knot-resolver/kres_modules/etcd.lua"
- # install knot-resolver metadata Python module
- pushd build/python
+ # install knot-resolver Python module
python -Pm installer --destdir="$pkgdir" dist/*.whl
- popd
- # install knot-resolver-manager
- python -Pm installer --destdir="$pkgdir" dist/*.whl
install -m 644 -D etc/config/config.yaml ${pkgdir}/etc/knot-resolver/config.yaml
-
}
-Dc_args="$${CFLAGS}" \
-Dc_link_args="$${LDFLAGS}"
ninja -v -C build_deb
- PYBUILD_NAME=knot_resolver 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
+ PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" dh_auto_build
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
- PYBUILD_NAME=knot_resolver_build_options PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" \
- dh_auto_install --buildsystem=pybuild --sourcedirectory build_deb/python
+ PYBUILD_NAME=knot_resolver PYBUILD_DESTDIR="$${PYKRES_DESTDIR}" dh_auto_install
install -m 644 -D etc/config/config.yaml debian/tmp/etc/knot-resolver/config.yaml
override_dh_auto_test:
%{NINJA} -v -C build_rpm
-pushd build_rpm/python
-%py3_build
-popd
-
%py3_build
%install
# install knot_resolver python module
%py3_install
-# install knot_resolver_build_options python module
-pushd build_rpm/python
-%py3_install
-popd
-
install -m 644 -D etc/config/config.yaml %{buildroot}%{_sysconfdir}/knot-resolver/config.yaml
%pre
%{_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_build_options.py
-%{python3_sitelib}/knot_resolver_build_options-*
%{python3_sitearch}/knot_resolver*
-%if 0%{?suse_version}
-%pycache_only %{python3_sitelib}/__pycache__/knot_resolver_build_options.*
-%else
-%{python3_sitelib}/__pycache__/knot_resolver_build_options.*
-%endif
%{_mandir}/man8/kresd.8.gz
%{_mandir}/man8/kresctl.8.gz