36 lines
1.1 KiB
Django/Jinja
36 lines
1.1 KiB
Django/Jinja
{% set js_name = 'Json2yaml' %}
|
|
%global sname {{ 'XStatic-' + js_name }}
|
|
Name: {{ py2name('XStatic-' + js_name, py_versions='py3') }}
|
|
Version: 0.1.1.0
|
|
Release: 0
|
|
Summary: {{ js_name }} %{version} (XStatic packaging standard)
|
|
License: {{ license('MIT') }}
|
|
Group: Development/Languages/Python
|
|
URL: https://docs.openstack.org/xstatic-{{ js_name | lower }}/
|
|
Source0: https://files.pythonhosted.org/packages/source/X/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py3('setuptools') }}
|
|
Requires: {{ py3('XStatic') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
{{ js_name }} javascript library packaged for setuptools (easy_install) / pip.
|
|
|
|
%prep
|
|
%autosetup -n %{sname}-%{version}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%files
|
|
%doc README.txt
|
|
%{python3_sitelib}/xstatic
|
|
%{python3_sitelib}/XStatic_{{ js_name | replace('-', '_') }}-%{version}-py?.?.egg-info
|
|
%{python3_sitelib}/XStatic_{{ js_name | replace('-', '_') }}-%{version}-py?.?-nspkg.pth
|
|
|
|
%changelog
|