fix python3 builds
This commit is contained in:
parent
2826036951
commit
95bc8ec5c6
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
Name: python-pluggy
|
Name: python-pluggy
|
||||||
Version: 0.3.0
|
Version: 0.3.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The plugin manager stripped of pytest specific details
|
Summary: The plugin manager stripped of pytest specific details
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -25,7 +25,7 @@ BuildArch: noarch
|
|||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: pytest
|
BuildRequires: pytest
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
%if %{with python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
@ -75,12 +75,12 @@ popd
|
|||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd python3
|
pushd python3
|
||||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
popd
|
popd
|
||||||
%endif # with python3
|
%endif # with python3
|
||||||
|
|
||||||
pushd python2
|
pushd python2
|
||||||
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
@ -97,27 +97,29 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{python_sitelib}/%{pypiname}.py
|
%doc README.rst
|
||||||
%{python_sitelib}/%{pypiname}.pyc
|
%license LICENSE
|
||||||
%{python_sitelib}/%{pypiname}.pyo
|
%{python2_sitelib}/%{pypiname}.py
|
||||||
%{python_sitelib}/%{pypiname}-%{version}-py2.?.egg-info
|
%{python2_sitelib}/%{pypiname}.pyc
|
||||||
|
%{python2_sitelib}/%{pypiname}.pyo
|
||||||
|
%{python2_sitelib}/%{pypiname}-%{version}-py%{python2_version}.egg-info
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
%files -n python3-%{pypiname}
|
||||||
%{python3_sitelib}/%{pypiname}.py
|
%{python3_sitelib}/%{pypiname}.py
|
||||||
%{python3_sitelib}/__pycache__/%{pypiname}.cpython-34.pyc
|
%{python3_sitelib}/__pycache__/%{pypiname}.cpython-34.pyc
|
||||||
%{python3_sitelib}/__pycache__/%{pypiname}.cpython-34.pyo
|
%{python3_sitelib}/__pycache__/%{pypiname}.cpython-34.pyo
|
||||||
%{python3_sitelib}/%{pypiname}-%{version}-py3.4.egg-info/PKG-INFO
|
%{python3_sitelib}/%{pypiname}-%{version}-py%{python3_version}.egg-info
|
||||||
%{python3_sitelib}/%{pypiname}-%{version}-py3.4.egg-info/SOURCES.txt
|
|
||||||
%{python3_sitelib}/%{pypiname}-%{version}-py3.4.egg-info/dependency_links.txt
|
|
||||||
%{python3_sitelib}/%{pypiname}-%{version}-py3.4.egg-info/top_level.txt
|
|
||||||
%endif # with python3
|
|
||||||
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%endif # with python3
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 25 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-3
|
||||||
|
- fix python3 builds
|
||||||
|
|
||||||
* Fri Aug 21 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-2
|
* Fri Aug 21 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-2
|
||||||
- add python2_sitelib macros and BR to setuptools (rhbz#1254484)
|
- add python2_sitelib macros and BR to setuptools (rhbz#1254484)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user