Blame SPECS/python-XStatic-jquery-ui.spec

bd6afd
%global pypi_name XStatic-jquery-ui
bd6afd
bd6afd
Name:           python-%{pypi_name}
bd6afd
Version:        1.12.0.1
bd6afd
Release:        13%{?dist}
bd6afd
Summary:        jquery-ui (XStatic packaging standard)
bd6afd
bd6afd
# According 
bd6afd
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
bd6afd
# http://creativecommons.org/publicdomain/zero/1.0/legalcode
bd6afd
# is abbreviated CCO.
bd6afd
# This package has the same license as jquery-ui:
bd6afd
# https://github.com/jquery/jqueryui.com/blob/master/LICENSE.txt
bd6afd
License:        CC0
bd6afd
URL:            http://jqueryui.com/
bd6afd
Source0:        https://pypi.python.org/packages/64/d6/3ae9619abb32a05951686bd657256ba417b4e96373d99a739a7ed39363ef/XStatic-jquery-ui-1.12.0.1.tar.gz
bd6afd
BuildArch:      noarch
bd6afd
bd6afd
%description
bd6afd
JavaScript library packaged for setuptools (easy_install) / pip.
bd6afd
bd6afd
This package is intended to be used by any project that needs these files.
bd6afd
bd6afd
It intentionally does not provide any extra code except some metadata
bd6afd
nor has any extra requirements.
bd6afd
bd6afd
%package -n python3-%{pypi_name}
bd6afd
Summary:        %{summary}
bd6afd
bd6afd
BuildRequires:  python3-devel
bd6afd
BuildRequires:  python3-setuptools
bd6afd
bd6afd
Requires:       python3-XStatic
bd6afd
Requires:       xstatic-jquery-ui-common
bd6afd
bd6afd
%{?python_provide:%python_provide python3-%{pypi_name}}
bd6afd
 
bd6afd
Requires:       python3-XStatic-jQuery
bd6afd
bd6afd
%description -n python3-%{pypi_name}
bd6afd
JavaScript library packaged for setuptools (easy_install) / pip.
bd6afd
bd6afd
This package is intended to be used by any project that needs these files.
bd6afd
bd6afd
It intentionally does not provide any extra code except some metadata
bd6afd
nor has any extra requirements.
bd6afd
bd6afd
This package provides Python 3 build of %{pypi_name}.
bd6afd
bd6afd
%package -n xstatic-jquery-ui-common
bd6afd
Summary:        %{summary}
bd6afd
bd6afd
BuildRequires:  web-assets-devel
bd6afd
Requires:       web-assets-filesystem
bd6afd
bd6afd
%description -n xstatic-jquery-ui-common
bd6afd
JavaScript library packaged for setuptools (easy_install) / pip.
bd6afd
bd6afd
This package is intended to be used by any project that needs these files.
bd6afd
bd6afd
It intentionally does not provide any extra code except some metadata
bd6afd
nor has any extra requirements.
bd6afd
bd6afd
This package contains the javascript files.
bd6afd
bd6afd
%prep
bd6afd
%autosetup -n %{pypi_name}-%{version}
bd6afd
# patch to use webassets dir
bd6afd
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_ui'|" xstatic/pkg/jquery_ui/__init__.py
bd6afd
bd6afd
%build
bd6afd
%py3_build
bd6afd
bd6afd
%install
bd6afd
%py3_install
bd6afd
bd6afd
mkdir -p %{buildroot}%{_jsdir}/jquery_ui
bd6afd
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_ui/data/* %{buildroot}%{_jsdir}/jquery_ui
bd6afd
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_ui/data/
bd6afd
# fix execute flags for js
bd6afd
chmod 644 %{buildroot}%{_jsdir}/jquery_ui/*.js
bd6afd
bd6afd
%files -n python3-%{pypi_name}
bd6afd
%doc README.txt
bd6afd
%{python3_sitelib}/xstatic/pkg/jquery_ui
bd6afd
%{python3_sitelib}/XStatic_jquery_ui-%{version}-py%{python3_version}.egg-info
bd6afd
%{python3_sitelib}/XStatic_jquery_ui-%{version}-py%{python3_version}-nspkg.pth
bd6afd
bd6afd
%files -n xstatic-jquery-ui-common
bd6afd
%doc README.txt
bd6afd
%{_jsdir}/jquery_ui
bd6afd
bd6afd
%changelog
bd6afd
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-13
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bd6afd
bd6afd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-12
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bd6afd
bd6afd
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.12.0.1-11
bd6afd
- Rebuilt for Python 3.9
bd6afd
bd6afd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-10
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bd6afd
bd6afd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0.1-9
bd6afd
- Rebuilt for Python 3.8.0rc1 (#1748018)
bd6afd
bd6afd
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0.1-8
bd6afd
- Rebuilt for Python 3.8
bd6afd
bd6afd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-7
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd6afd
bd6afd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-6
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd6afd
bd6afd
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.12.0.1-5
bd6afd
- Subpackage python2-XStatic-jquery-ui has been removed
bd6afd
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
bd6afd
bd6afd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0.1-4
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bd6afd
bd6afd
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.12.0.1-3
bd6afd
- Rebuilt for Python 3.7
bd6afd
bd6afd
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.10.4.1-10
bd6afd
- Update Python 2 dependency declarations to new packaging standards
bd6afd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bd6afd
bd6afd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4.1-9
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd6afd
bd6afd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4.1-8
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bd6afd
* Thu Apr 6 2017 Radomir Dopieralski <rdopiera@redhat.com> - 1.12.0.1-2
bd6afd
- Fix directory names
bd6afd
* Thu Apr 6 2017 Radomir Dopieralski <rdopiera@redhat.com> - 1.12.0.1-1
bd6afd
- Upgrade to new version due to https://nodesecurity.io/advisories/127
bd6afd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4.1-7
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bd6afd
bd6afd
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.10.4.1-6
bd6afd
- Rebuild for Python 3.6
bd6afd
bd6afd
* Wed Oct 12 2016 Jan Beran <jberan@redhat.com> - 1.10.4.1-5
bd6afd
- Provides a Python 3 subpackage
bd6afd
bd6afd
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4.1-4
bd6afd
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
bd6afd
bd6afd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4.1-3
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bd6afd
bd6afd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4.1-2
bd6afd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bd6afd
bd6afd
* Mon Aug 18 2014 Matthias Runge <mrunge@redhat.com> - 1.10.4.1-1
bd6afd
- Initial package (rhbz#1135430).