diff --git a/pytz.spec b/pytz.spec index 78f08e4..923d09e 100644 --- a/pytz.spec +++ b/pytz.spec @@ -78,12 +78,12 @@ Requires: tzdata %if %{with python2} %py2_install rm -r %{buildroot}%{python2_sitelib}/pytz/zoneinfo -pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitelib} +%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i %{__python2} %{buildroot}%{python2_sitelib} %endif %py3_install rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo -pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitelib} +%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitelib} %check