Blame SPECS/python-XStatic-JQuery-Migrate.spec

3f1a4d
%global pypi_name XStatic-JQuery-Migrate
3f1a4d
3f1a4d
Name:           python-%{pypi_name}
3f1a4d
Version:        1.2.1.1
3f1a4d
Release:        21%{?dist}
3f1a4d
Summary:        JQuery-Migrate (XStatic packaging standard)
3f1a4d
3f1a4d
License:        MIT
3f1a4d
URL:            https://github.com/jquery/jquery-migrate
3f1a4d
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
3f1a4d
BuildArch:      noarch
3f1a4d
3f1a4d
%description
3f1a4d
JavaScript library packaged for setuptools (easy_install) / pip.
3f1a4d
3f1a4d
This package is intended to be used by any project that needs these files.
3f1a4d
3f1a4d
It intentionally does not provide any extra code except some metadata
3f1a4d
nor has any extra requirements.
3f1a4d
3f1a4d
%package -n python3-%{pypi_name}
3f1a4d
Summary:        %{summary}
3f1a4d
3f1a4d
BuildRequires:  python3-devel
3f1a4d
BuildRequires:  python3-setuptools
3f1a4d
3f1a4d
Requires:       python3-XStatic
3f1a4d
Requires:       xstatic-jquery-migrate-common
3f1a4d
3f1a4d
%{?python_provide:%python_provide python3-%{pypi_name}}
3f1a4d
3f1a4d
%description -n python3-%{pypi_name}
3f1a4d
JavaScript library packaged for setuptools (easy_install) / pip.
3f1a4d
3f1a4d
This package is intended to be used by any project that needs these files.
3f1a4d
3f1a4d
It intentionally does not provide any extra code except some metadata
3f1a4d
nor has any extra requirements.
3f1a4d
3f1a4d
This package provides Python 3 build of %{pypi_name}.
3f1a4d
3f1a4d
%package -n xstatic-jquery-migrate-common
3f1a4d
Summary:        %{summary}
3f1a4d
3f1a4d
BuildRequires:  web-assets-devel
3f1a4d
Requires:       web-assets-filesystem
3f1a4d
3f1a4d
%description -n xstatic-jquery-migrate-common
3f1a4d
JavaScript library packaged for setuptools (easy_install) / pip.
3f1a4d
3f1a4d
This package is intended to be used by any project that needs these files.
3f1a4d
3f1a4d
It intentionally does not provide any extra code except some metadata
3f1a4d
nor has any extra requirements.
3f1a4d
3f1a4d
This package contains the javascript files.
3f1a4d
3f1a4d
%prep
3f1a4d
%autosetup -n %{pypi_name}-%{version}
3f1a4d
# patch to use webassets dir
3f1a4d
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_migrate'|" xstatic/pkg/jquery_migrate/__init__.py
3f1a4d
3f1a4d
%build
3f1a4d
%py3_build
3f1a4d
3f1a4d
%install
3f1a4d
%py3_install
3f1a4d
mkdir -p %{buildroot}%{_jsdir}/jquery_migrate
3f1a4d
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_migrate/data/* %{buildroot}%{_jsdir}/jquery_migrate
3f1a4d
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_migrate/data/
3f1a4d
# fix execute flags for js
3f1a4d
chmod 644 %{buildroot}%{_jsdir}/jquery_migrate/*.js
3f1a4d
3f1a4d
%files -n python3-%{pypi_name}
3f1a4d
%doc README.txt
3f1a4d
%{python3_sitelib}/xstatic/pkg/jquery_migrate
3f1a4d
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py%{python3_version}.egg-info
3f1a4d
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py%{python3_version}-nspkg.pth
3f1a4d
3f1a4d
%files -n xstatic-jquery-migrate-common
3f1a4d
%doc README.txt
3f1a4d
%{_jsdir}/jquery_migrate
3f1a4d
3f1a4d
%changelog
3f1a4d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-21
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3f1a4d
3f1a4d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-20
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3f1a4d
3f1a4d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-19
3f1a4d
- Rebuilt for Python 3.9
3f1a4d
3f1a4d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-18
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3f1a4d
3f1a4d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-17
3f1a4d
- Rebuilt for Python 3.8.0rc1 (#1748018)
3f1a4d
3f1a4d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-16
3f1a4d
- Rebuilt for Python 3.8
3f1a4d
3f1a4d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-15
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f1a4d
3f1a4d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-14
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3f1a4d
3f1a4d
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-13
3f1a4d
- Python2 binary package has been removed
3f1a4d
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
3f1a4d
3f1a4d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-12
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3f1a4d
3f1a4d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-11
3f1a4d
- Rebuilt for Python 3.7
3f1a4d
3f1a4d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-10
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3f1a4d
3f1a4d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-9
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3f1a4d
3f1a4d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-8
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3f1a4d
3f1a4d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.1.1-7
3f1a4d
- Rebuild for Python 3.6
3f1a4d
3f1a4d
* Wed Oct 12 2016 Jan Beran <jberan@redhat.com> - 1.2.1.1-6
3f1a4d
- Provides a Python 3 subpackage
3f1a4d
3f1a4d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1.1-5
3f1a4d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3f1a4d
3f1a4d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.1-4
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3f1a4d
3f1a4d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1.1-3
3f1a4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3f1a4d
3f1a4d
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 1.2.1.1-2
3f1a4d
- change BR to python2-devel (rhbz#1134865)
3f1a4d
3f1a4d
* Thu Aug 28 2014 Matthias Runge <mrunge@redhat.com> - 1.2.1.1-1
3f1a4d
- Initial package.