delete python2
This commit is contained in:
parent
6e401427d7
commit
889d75a189
@ -1,70 +1,38 @@
|
|||||||
Name: python-tempita
|
Name: python-tempita
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
Release: 21
|
Release: 22
|
||||||
Summary: A small templating language for text substitution
|
Summary: A small templating language for text substitution
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.org/project/Tempita/0.5.1/#description
|
URL: https://pypi.org/project/Tempita/0.5.1/#description
|
||||||
Source0: https://files.pythonhosted.org/packages/3f/70/d22ffcf0c1aa88077260de058845d0ef00b4b3044da7c10fc39068801a03/Tempita-0.5.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/3f/70/d22ffcf0c1aa88077260de058845d0ef00b4b3044da7c10fc39068801a03/Tempita-0.5.1.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%global with_python3 1
|
|
||||||
|
|
||||||
%global common_description %{expand:Tempita is a small templating language for text substitution.
|
%global common_description %{expand:Tempita is a small templating language for text substitution.
|
||||||
This isn't meant to be the Next Big Thing in templating; it is just a handy little templating
|
This isn't meant to be the Next Big Thing in templating; it is just a handy little templating
|
||||||
language for when your project outgrows string.Template or % substitution. It is small, it
|
language for when your project outgrows string.Template or % substitution. It is small, it
|
||||||
embeds Python in strings, and it does not do much else.}
|
embeds Python in strings, and it does not do much else.}
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-nose
|
BuildRequires:python3-devel python3-setuptools python3-nose
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires:python3-devel python3-setuptools
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
%{common_description}
|
||||||
|
|
||||||
%package -n python2-tempita
|
|
||||||
Summary: A small templating language for text substitution
|
|
||||||
%{?python_provide:%python_provide python2-tempita}
|
|
||||||
|
|
||||||
%description -n python2-tempita
|
|
||||||
%{common_description}
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-tempita
|
%package -n python3-tempita
|
||||||
Summary: A small templating language for text substitution
|
Summary: A small templating language for text substitution
|
||||||
%{?python_provide:%python_provide python3-tempita}
|
%{?python_provide:%python_provide python3-tempita}
|
||||||
|
|
||||||
%description -n python3-tempita
|
%description -n python3-tempita
|
||||||
%{common_description}
|
%{common_description}
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Tempita-%{version} -p1
|
%autosetup -n Tempita-%{version} -p1
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
|
||||||
nosetests-2
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
@ -74,16 +42,13 @@ nosetests-2
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
%files -n python2-tempita
|
|
||||||
%{python2_sitelib}/tempita/
|
|
||||||
%{python2_sitelib}/*.egg-info
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-tempita
|
%files -n python3-tempita
|
||||||
%{python3_sitelib}/tempita/
|
%{python3_sitelib}/tempita/
|
||||||
%{python3_sitelib}/*.egg-info
|
%{python3_sitelib}/*.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.5.1-22
|
||||||
|
- delete python2
|
||||||
|
|
||||||
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5.1-21
|
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5.1-21
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user