49ba15
%global pypi_name XStatic-jQuery
49ba15
49ba15
Name:           python-%{pypi_name}
49ba15
Version:        1.10.2.1
f2a7a8
Release:        15%{?dist}
e5c5da
Summary:        jQuery (XStatic packaging standard)
49ba15
49ba15
License:        MIT
49ba15
URL:            http://jquery.com/
e5c5da
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
49ba15
BuildArch:      noarch
49ba15
e5c5da
BuildRequires: web-assets-devel
49ba15
49ba15
%description
e5c5da
JavaScript library packaged for setuptools (easy_install) / pip.
49ba15
e5c5da
This package is intended to be used by any project that needs these files.
49ba15
e5c5da
It intentionally does not provide any extra code except some metadata
e5c5da
nor has any extra requirements.
49ba15
e5c5da
%package -n python3-%{pypi_name}
e5c5da
Summary:        %{summary}
e5c5da
e5c5da
BuildRequires:  python3-devel
e5c5da
BuildRequires:  python3-setuptools
e5c5da
e5c5da
Requires:       python3-XStatic
e5c5da
Requires:       js-jquery1
e5c5da
e5c5da
%{?python_provide:%python_provide python3-%{pypi_name}}
e5c5da
e5c5da
%description -n python3-%{pypi_name}
e5c5da
JavaScript library packaged for setuptools (easy_install) / pip.
e5c5da
e5c5da
This package is intended to be used by any project that needs these files.
e5c5da
e5c5da
It intentionally does not provide any extra code except some metadata
e5c5da
nor has any extra requirements.
49ba15
e5c5da
This package provides Python 3 build of %{pypi_name}.
e5c5da
e5c5da
e5c5da
%prep
e5c5da
%autosetup -n %{pypi_name}-%{version}
e5c5da
# patch to use webassets dir
e5c5da
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery/1'|" xstatic/pkg/jquery/__init__.py
e5c5da
e5c5da
%build
e5c5da
%py3_build
49ba15
49ba15
%install
e5c5da
%py3_install
e5c5da
3304ba
# Remove static files, packaged in js-jquery1
3304ba
rm -rf %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery/data/
e5c5da
e5c5da
%files -n python3-%{pypi_name}
e5c5da
%doc README.txt
e5c5da
%{python3_sitelib}/xstatic/pkg/jquery
e5c5da
%{python3_sitelib}/XStatic_jQuery-%{version}-py%{python3_version}.egg-info
e5c5da
%{python3_sitelib}/XStatic_jQuery-%{version}-py%{python3_version}-nspkg.pth
e5c5da
49ba15
49ba15
%changelog
f2a7a8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.2.1-15
f2a7a8
- Rebuilt for Python 3.8
f2a7a8
623902
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-14
623902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
623902
f7572b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-13
f7572b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f7572b
3304ba
* Thu Nov 22 2018 Petr Viktorin pviktori@redhat.org> - 1.10.2.1-12
3304ba
- Remove the Python 2 subpackage
3304ba
  https://bugzilla.redhat.com/show_bug.cgi?id=1641286
3304ba
203cde
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-11
203cde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
203cde
f6d4f4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.2.1-10
f6d4f4
- Rebuilt for Python 3.7
f6d4f4
29eaf7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-9
29eaf7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
29eaf7
c1c192
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-8
c1c192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c1c192
76f55a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-7
76f55a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
76f55a
79c6f1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.10.2.1-6
79c6f1
- Rebuild for Python 3.6
79c6f1
e5c5da
* Thu Oct 13 2016 Jan Beran <jberan@redhat.com> - 1.10.2.1-5
e5c5da
- Provides a Python 3 subpackage
e5c5da
- depend on js-jquery1 rather than bundling its own
e5c5da
4a3249
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2.1-4
4a3249
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4a3249
0da8a1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2.1-3
0da8a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0da8a1
be3ddd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2.1-2
be3ddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
be3ddd
49ba15
* Wed Mar 12 2014 Matthias Runge <mrunge@redhat.com> - 1.10.2.1-1
49ba15
- Initial package.