Resolves:rh#1178548, follow dnf way to use py3 binary
This commit is contained in:
parent
e0707a7799
commit
dd4a5ac026
@ -3,7 +3,7 @@
|
||||
|
||||
Name: python-%{module_name}
|
||||
Version: 0.1.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Getting CPU info
|
||||
|
||||
License: MIT
|
||||
@ -74,6 +74,8 @@ popd
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root=%{buildroot}
|
||||
cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3
|
||||
sed -i '1s|^#!python|#!%{__python3}|' %{buildroot}/%{_bindir}/cpuinfo-3
|
||||
popd
|
||||
%endif
|
||||
|
||||
@ -97,13 +99,16 @@ popd
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-%{module_name}
|
||||
%doc README.rst LICENSE ChangeLog
|
||||
%{_bindir}/cpuinfo
|
||||
%{_bindir}/cpuinfo-3
|
||||
%{python3_sitelib}/%{module_name}/
|
||||
%{python3_sitelib}/py_%{module_name}-%{version}-py3.*.egg-info
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.1.2-3
|
||||
- Resolves:rh#1178548, follow dnf way to use py3 binary
|
||||
|
||||
* Fri Oct 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.2-2
|
||||
- Clean the spec to follow py3 guidelines
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user