XStatic-Angular-Sanitize: convert to python3

Change-Id: I74bedd83d02ff27b02b0e0d9b7143db13ceed496
This commit is contained in:
Javier Pena 2020-01-09 15:20:56 +01:00
parent 7b862ad311
commit fb2a4a62be
1 changed files with 17 additions and 14 deletions

View File

@ -1,34 +1,37 @@
%global sname XStatic-Angular-Sanitize
Name: {{ py2name('XStatic-Angular-Sanitize') }}
Version: 1.2.1.1
Release: 0
{% set pypi_name = 'XStatic-Angular-Sanitize' %}
{% set upstream_version = upstream_version('1.2.1.1') %}
{% set rpm_release = '1' %}
{% set source = url_pypi() %}
Name: {{ py2name(py_versions='py3') }}
Version: {{ py2rpmversion() }}
Release: {{ py2rpmrelease() }}
Summary: Angular-Sanitize %{version} (XStatic packaging standard)
License: {{ license('MIT') }}
Group: Development/Languages/Python
URL: https://git.openstack.org/cgit/openstack/{sname}/
Source0: https://files.pythonhosted.org/packages/source/X/%{sname}/%{sname}-%{version}.tar.gz
URL: https://opendev.org/openstack/xstatic-angular-sanitize/
Source0: {{ source }}
BuildRequires: openstack-macros
BuildRequires: {{ py2pkg('setuptools') }}
Requires: {{ py2pkg('XStatic') }}
BuildRequires: {{ py3('setuptools') }}
Requires: {{ py3('XStatic') }}
BuildArch: noarch
%description
Angular-Sanitize javascript library packaged for setuptools (easy_install) / pip.
%prep
%autosetup -n %{sname}-%{version}
%autosetup -n {{ pypi_name }}-{{ upstream_version }}
%py_req_cleanup
%build
%{py2_build}
%{py3_build}
%install
%{py2_install}
%{py3_install}
%files
%doc README.txt
%{python2_sitelib}/xstatic
%{python2_sitelib}/XStatic_Angular_Sanitize-%{version}-py?.?.egg-info
%{python2_sitelib}/XStatic_Angular_Sanitize-%{version}-py?.?-nspkg.pth
%{python3_sitelib}/xstatic
%{python3_sitelib}/XStatic_Angular_Sanitize*
%changelog