Blame python-XStatic-jquery-ui.spec

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