diff --git a/python-mailman.spec b/python-mailman.spec index 5166d38..419cee6 100644 --- a/python-mailman.spec +++ b/python-mailman.spec @@ -100,6 +100,7 @@ Mailman -- the GNU mailing list manager %patch0 -p1 %build +sed -i 's:/sbin:/usr/bin:' src/mailman/config/mailman.cfg pushd src/mailman for i in $(grep -r '^from importlib_resources' | sed 's/\(.*\.py\):.*/\1/'); do line=$(grep '^from importlib_resources' $i) @@ -109,7 +110,6 @@ done popd sed '/importlib_resources/d' -i src/mailman.egg-info/requires.txt setup.py %python_build -sed -i 's:/sbin:/usr/bin:' src/mailman/config/mailman.cfg %install %if !%{with test}