diff --git a/dnf-plugins-extras.spec b/dnf-plugins-extras.spec index e6a6e28..ec08c5e 100644 --- a/dnf-plugins-extras.spec +++ b/dnf-plugins-extras.spec @@ -417,9 +417,8 @@ versions of those packages. This allows you to e.g. protect packages from being updated by newer versions. %prep -%autosetup -c -mv %{name}-%{version} python2 -cp -a python2 python3 +%autosetup +mkdir python2 python3 %build pushd python2 @@ -449,20 +448,20 @@ rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/kickstart.* %endif %check -PYTHONPATH=./plugins nosetests-%{python2_version} -s tests/ -PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/ +PYTHONPATH="%{buildroot}%{python2_sitelib}:%{buildroot}%{python2_sitelib}/dnf-plugins/" nosetests-%{python2_version} -s tests/ +PYTHONPATH="%{buildroot}%{python3_sitelib}:%{buildroot}%{python3_sitelib}/dnf-plugins/" nosetests-%{python3_version} -s tests/ %files %{_mandir}/man8/dnf.plugin.* %files -n python-dnf-plugins-extras-common -f %{name}.lang -%license python2/COPYING -%doc python2/AUTHORS python2/README.rst +%license COPYING +%doc AUTHORS README.rst %{python2_sitelib}/dnfpluginsextras/ %files -n python3-dnf-plugins-extras-common -f %{name}.lang -%license python3/COPYING -%doc python3/AUTHORS python3/README.rst +%license COPYING +%doc AUTHORS README.rst %{python3_sitelib}/dnfpluginsextras/ %dir %{python3_sitelib}/dnf-plugins/__pycache__/ diff --git a/sources b/sources index 295cde9..7f0da26 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e95fc171ab97808ef8a65c6a3e66119b dnf-plugins-extras-0.0.12.tar.gz +48dfbf03df53dc0d29dc6e0acdf1f5da dnf-plugins-extras-0.0.12.tar.gz