Resolves:rh#1178548, follow dnf way to use py3 binary

epel9
Parag Nemade 10 years ago
parent e0707a7799
commit dd4a5ac026

@ -3,7 +3,7 @@
Name: python-%{module_name} Name: python-%{module_name}
Version: 0.1.2 Version: 0.1.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: Getting CPU info Summary: Getting CPU info
License: MIT License: MIT
@ -74,6 +74,8 @@ popd
%if 0%{?with_python3} %if 0%{?with_python3}
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py install --skip-build --root=%{buildroot} %{__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 popd
%endif %endif
@ -97,13 +99,16 @@ popd
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-%{module_name} %files -n python3-%{module_name}
%doc README.rst LICENSE ChangeLog %doc README.rst LICENSE ChangeLog
%{_bindir}/cpuinfo %{_bindir}/cpuinfo-3
%{python3_sitelib}/%{module_name}/ %{python3_sitelib}/%{module_name}/
%{python3_sitelib}/py_%{module_name}-%{version}-py3.*.egg-info %{python3_sitelib}/py_%{module_name}-%{version}-py3.*.egg-info
%endif %endif
%changelog %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 * Fri Oct 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.2-2
- Clean the spec to follow py3 guidelines - Clean the spec to follow py3 guidelines

Loading…
Cancel
Save