drop python2 subpackage
This commit is contained in:
parent
4a7df11cdb
commit
8e0f22a22e
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 1.5.1
|
Version: 1.5.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Python module to interface with the pkg-config command line tool
|
Summary: A Python module to interface with the pkg-config command line tool
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -12,17 +12,7 @@ Source0: https://files.pythonhosted.org/packages/6e/a9/ff67ef67217dfdf2ac
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
||||||
|
|
||||||
%package -n python2-%{srcname}
|
|
||||||
Summary: A Python2 module to interface with the pkg-config command line tool
|
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
Requires: pkgconf-pkg-config
|
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: A Python3 interface to the pkg-config command line tool
|
Summary: A Python3 interface to the pkg-config command line tool
|
||||||
@ -33,25 +23,17 @@ BuildRequires: python3-setuptools
|
|||||||
Requires: pkgconf-pkg-config
|
Requires: pkgconf-pkg-config
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python3-%{srcname}
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%files -n python2-%{srcname}
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitelib}/%{srcname}-*.egg-info
|
|
||||||
%{python2_sitelib}/%{srcname}/
|
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
@ -59,5 +41,8 @@ pkgconfig is a Python module to interface with the pkg-config command line tool
|
|||||||
%{python3_sitelib}/%{srcname}/
|
%{python3_sitelib}/%{srcname}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.5.1-2
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-1
|
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-1
|
||||||
- Package Init
|
- Package Init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user