disable python2

This commit is contained in:
jackie_wu 2020-11-02 11:25:53 +08:00
parent 4e12094fc6
commit 409248f00b

View File

@ -2,7 +2,7 @@
Name: python-%{github_name} Name: python-%{github_name}
Version: 0.1.18 Version: 0.1.18
Release: 2 Release: 3
Summary: Parser for TOML Summary: Parser for TOML
License: MIT License: MIT
URL: https://github.com/avakar/%{github_name} URL: https://github.com/avakar/%{github_name}
@ -16,16 +16,6 @@ strict parser and writer for TOML files.
%description %description
%{my_description} %{my_description}
%package -n python2-%{github_name}
Summary: %{summary}
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%{?python_provide:%python_provide python2-%{github_name}}
%description -n python2-%{github_name}
%{my_description}
%package -n python3-%{github_name} %package -n python3-%{github_name}
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -40,19 +30,11 @@ BuildRequires: python3-setuptools
%autosetup -p1 -n %{github_name}-%{version} %autosetup -p1 -n %{github_name}-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-%{github_name}
%doc README.md
%license LICENSE
%{python2_sitelib}/%{github_name}-%{version}*-py%{python2_version}.egg-info/
%{python2_sitelib}/%{github_name}/
%files -n python3-%{github_name} %files -n python3-%{github_name}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
@ -60,5 +42,8 @@ BuildRequires: python3-setuptools
%{python3_sitelib}/%{github_name}/ %{python3_sitelib}/%{github_name}/
%changelog %changelog
* Thu Oct 22 2020 wutao <wutao61@huawei.com> - 0.1.18-3
- delete python2 modules
* Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.1.18-2 * Tue Dec 3 2019 mengxian <mengxian@huawei.com> - 0.1.18-2
- Package init - Package init