Remove python2 subpackage

epel9
Parag Nemade 6 years ago
parent 8605a009c2
commit 568d663a9e
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

@ -1,9 +1,10 @@
%{?python_enable_dependency_generator}
%global srcname cpuinfo %global srcname cpuinfo
%global sum Getting CPU info %global sum Getting CPU info
Name: python-%{srcname} Name: python-%{srcname}
Version: 4.0.0 Version: 4.0.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: %{sum} Summary: %{sum}
License: MIT License: MIT
@ -16,10 +17,8 @@ Patch0: py-cpuinfo-s390x.patch
BuildArch: noarch BuildArch: noarch
# https://github.com/workhorsy/py-cpuinfo/issues/55 # https://github.com/workhorsy/py-cpuinfo/issues/55
# ExclusiveArch: %{ix86} x86_64 %{power64} s390x noarch # ExclusiveArch: %%{ix86} x86_64 %%{power64} s390x noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
@ -36,22 +35,6 @@ These approaches are used for getting info:
Querying x86 CPUID register Querying x86 CPUID register
%package -n python2-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without
any extra programs or libraries, beyond what your OS provides.
These approaches are used for getting info:
Windows Registry
/proc/cpuinfo
sysctl
dmesg
isainfo and psrinfo
Querying x86 CPUID register
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{sum} Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python3-%{srcname}}
@ -76,25 +59,16 @@ sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py3_install %py3_install
cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3 mv %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3
%py2_install
%check %check
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-%{srcname}
%doc README.rst ChangeLog
%license LICENSE
%{_bindir}/cpuinfo
%{python2_sitelib}/%{srcname}/
%{python2_sitelib}/py_%{srcname}-%{version}-py2.*.egg-info
%files -n python3-%{srcname} %files -n python3-%{srcname}
%doc README.rst ChangeLog %doc README.rst ChangeLog
%license LICENSE %license LICENSE
@ -104,6 +78,9 @@ cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3
%changelog %changelog
* Tue Sep 18 2018 Parag Nemade <pnemade AT redhat DOT com> - 4.0.0-4
- Remove python2 subpackage
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save