f730321
%global pypi_name XStatic-QUnit
f730321
f730321
Name:           python-%{pypi_name}
f730321
Version:        1.14.0.2
c894463
Release:        27%{?dist}
f730321
Summary:        QUnit (XStatic packaging standard)
f730321
f730321
License:        MIT
f730321
URL:            http://qunitjs.com
fb41a66
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f730321
BuildArch:      noarch
fb41a66
fb41a66
%description
fb41a66
JavaScript library packaged for setuptools (easy_install) / pip.
fb41a66
fb41a66
This package is intended to be used by any project that needs these files.
fb41a66
fb41a66
It intentionally does not provide any extra code except some metadata
fb41a66
nor has any extra requirements.
fb41a66
fb41a66
%package -n python3-%{pypi_name}
fb41a66
Summary:        %{summary}
fb41a66
fb41a66
BuildRequires:  python3-devel
fb41a66
BuildRequires:  python3-setuptools
fb41a66
fb41a66
Requires:       python3-XStatic
fb41a66
Requires:       xstatic-qunit-common
fb41a66
fb41a66
%{?python_provide:%python_provide python3-%{pypi_name}}
fb41a66
fb41a66
%description -n python3-%{pypi_name}
fb41a66
JavaScript library packaged for setuptools (easy_install) / pip.
fb41a66
fb41a66
This package is intended to be used by any project that needs these files.
fb41a66
fb41a66
It intentionally does not provide any extra code except some metadata
fb41a66
nor has any extra requirements.
f730321
fb41a66
This package provides Python 3 build of %{pypi_name}.
fb41a66
fb41a66
%package -n xstatic-qunit-common
fb41a66
Summary:        %{summary}
fb41a66
fb41a66
BuildRequires:  web-assets-devel
fb41a66
Requires:       web-assets-filesystem
fb41a66
fb41a66
%description -n xstatic-qunit-common
fb41a66
JavaScript library packaged for setuptools (easy_install) / pip.
fb41a66
fb41a66
This package is intended to be used by any project that needs these files.
fb41a66
fb41a66
It intentionally does not provide any extra code except some metadata
fb41a66
nor has any extra requirements.
fb41a66
fb41a66
This package contains the javascript files.
fb41a66
fb41a66
%prep
fb41a66
%autosetup -n %{pypi_name}-%{version}
f730321
# patch to use webassets dir
f730321
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/qunit'|" xstatic/pkg/qunit/__init__.py
f730321
f730321
%build
fb41a66
%py3_build
f730321
f730321
%install
007aea8
%py3_install
007aea8
fb41a66
mkdir -p %{buildroot}%{_jsdir}/qunit
007aea8
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/qunit/data/* %{buildroot}%{_jsdir}/qunit
007aea8
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/qunit/data/
fb41a66
# fix execute flags for js
fb41a66
chmod 644 %{buildroot}%{_jsdir}/qunit/qunit.js
fb41a66
fb41a66
%files -n python3-%{pypi_name}
fb41a66
%doc README.txt
fb41a66
%{python3_sitelib}/xstatic/pkg/qunit
fb41a66
%{python3_sitelib}/XStatic_QUnit-%{version}-py%{python3_version}.egg-info
fb41a66
%{python3_sitelib}/XStatic_QUnit-%{version}-py%{python3_version}-nspkg.pth
f730321
fb41a66
%files -n xstatic-qunit-common
f730321
%doc README.txt
f730321
%{_jsdir}/qunit
f730321
f730321
%changelog
c894463
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-27
c894463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c894463
426acd7
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-26
426acd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
426acd7
44a399d
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.14.0.2-25
44a399d
- Rebuilt for Python 3.11
44a399d
f34b174
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-24
f34b174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f34b174
f628945
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-23
f628945
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f628945
9fbf7f4
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.14.0.2-22
9fbf7f4
- Rebuilt for Python 3.10
9fbf7f4
bd43c5f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-21
bd43c5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bd43c5f
4cf46ec
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-20
4cf46ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4cf46ec
57886e6
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0.2-19
57886e6
- Rebuilt for Python 3.9
57886e6
44b25d8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-18
44b25d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
44b25d8
ea4417b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.14.0.2-17
ea4417b
- Rebuilt for Python 3.8.0rc1 (#1748018)
ea4417b
e1522b7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.14.0.2-16
e1522b7
- Rebuilt for Python 3.8
e1522b7
d61f1b5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-15
d61f1b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d61f1b5
a5ea903
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-14
a5ea903
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5ea903
007aea8
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.14.0.2-13
007aea8
- Subpackage python2-XStatic-QUnit has been removed
007aea8
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
007aea8
dc504e2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-12
dc504e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dc504e2
07fba02
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.14.0.2-11
07fba02
- Rebuilt for Python 3.7
07fba02
e5a6b72
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-10
e5a6b72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e5a6b72
377b3ab
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-9
377b3ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
377b3ab
69a0a53
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-8
69a0a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
69a0a53
3c13059
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.14.0.2-7
3c13059
- Rebuild for Python 3.6
3c13059
fb41a66
* Thu Oct 13 2016 Jan Beran <jberan@redhat.com> - 1.14.0.2-6
fb41a66
- Provides a Python 3 subpackage
fb41a66
0869834
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0.2-5
0869834
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0869834
9aefc3d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0.2-4
9aefc3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9aefc3d
e24d85c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0.2-3
e24d85c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e24d85c
f730321
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 1.14.0.2-2
f730321
- change BR to python2-devel (rhbz#1135448)
f730321
f730321
* Fri Aug 29 2014 Matthias Runge <mrunge@redhat.com> - 1.14.0.2-1
f730321
- Initial package.
fb41a66