Name: iwd-resolv-conf Version: 0.1.0 Release: 1%{?dist} Summary: Daemon that updates /etc/resolv.conf based on iwd network connections License: MIT URL: https://github.com/mathstuf/iwd-resolv-conf Source0: https://github.com/mathstuf/iwd-resolv-conf/releases/download/v%{version}/iwd-resolv-conf-v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-hatchling BuildRequires: python3-pip BuildRequires: systemd-rpm-macros Requires: python3-dbus-fast Requires: iwd %description iwd-resolv-conf is a daemon that monitors iwd (iNet wireless daemon) via DBus and atomically rewrites /etc/resolv.conf whenever the wireless network connection changes. Per-network DNS configuration is stored in /etc/iwd-resolv.d/ as files named resolv.conf.. A resolv.conf.default is used when disconnected or when no file exists for the connected SSID. Note: when multiple wireless interfaces are active simultaneously, the last connection event received wins (last-connected-wins behaviour). %prep %autosetup -n %{name}-v%{version} %build %pyproject_wheel %install %pyproject_install # Config directory; files are user-managed install -d %{buildroot}%{_sysconfdir}/iwd-resolv.d %post %systemd_post iwd-resolv-conf.service %preun %systemd_preun iwd-resolv-conf.service %postun %systemd_postun_with_restart iwd-resolv-conf.service %files %license LICENSE %{python3_sitelib}/iwd_resolv_conf/ %{python3_sitelib}/iwd_resolv_conf-%{version}.dist-info/ %{_bindir}/iwd-resolv-conf %{_unitdir}/iwd-resolv-conf.service %dir %{_sysconfdir}/iwd-resolv.d %changelog * Thu May 14 2026 Ben Boeckel - 0.1.0-1 - Initial package