02959bc
%global pypi_name XStatic-D3
02959bc
02959bc
Name:           python-%{pypi_name}
f15ea08
Version:        3.5.17.0
66d1811
Release:        24%{?dist}
02959bc
Summary:        D3 (XStatic packaging standard)
02959bc
02959bc
License:        BSD
02959bc
URL:            http://d3js.org/
2ee320e
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
02959bc
BuildArch:      noarch
2ee320e
2ee320e
%description
2ee320e
JavaScript library packaged for setuptools (easy_install) / pip.
2ee320e
2ee320e
This package is intended to be used by any project that needs these files.
2ee320e
2ee320e
It intentionally does not provide any extra code except some metadata
2ee320e
nor has any extra requirements.
2ee320e
2ee320e
%package -n python3-%{pypi_name}
2ee320e
Summary:        %{summary}
02959bc
2ee320e
BuildRequires:  python3-devel
2ee320e
BuildRequires:  python3-setuptools
02959bc
2ee320e
Requires:       python3-XStatic
2ee320e
Requires:       xstatic-d3-common
02959bc
2ee320e
%{?python_provide:%python_provide python3-%{pypi_name}}
02959bc
2ee320e
%description -n python3-%{pypi_name}
2ee320e
JavaScript library packaged for setuptools (easy_install) / pip.
02959bc
2ee320e
This package is intended to be used by any project that needs these files.
2ee320e
2ee320e
It intentionally does not provide any extra code except some metadata
2ee320e
nor has any extra requirements.
2ee320e
2ee320e
This package provides Python 3 build of %{pypi_name}.
02959bc
2ee320e
%package -n xstatic-d3-common
2ee320e
Summary:        %{summary}
02959bc
2ee320e
BuildRequires:  web-assets-devel
2ee320e
Requires:       web-assets-filesystem
2ee320e
2ee320e
%description -n xstatic-d3-common
2ee320e
JavaScript library packaged for setuptools (easy_install) / pip.
2ee320e
2ee320e
This package is intended to be used by any project that needs these files.
2ee320e
2ee320e
It intentionally does not provide any extra code except some metadata
2ee320e
nor has any extra requirements.
2ee320e
2ee320e
This package contains the javascript files.
2ee320e
2ee320e
%prep
2ee320e
%autosetup -n %{pypi_name}-%{version}
2ee320e
# patch to use webassets dir
2ee320e
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/d3'|" xstatic/pkg/d3/__init__.py
02959bc
2ee320e
%build
2ee320e
%py3_build
02959bc
2ee320e
%install
117920d
%py3_install
117920d
2ee320e
mkdir -p %{buildroot}%{_jsdir}/d3
117920d
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/d3/data/d3.js %{buildroot}%{_jsdir}/d3
117920d
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/d3/data/
2ee320e
# fix execute flags for js
2ee320e
chmod 644 %{buildroot}%{_jsdir}/d3/d3.js
2ee320e
2ee320e
%files -n python3-%{pypi_name}
2ee320e
%doc README.txt
2ee320e
%{python3_sitelib}/xstatic/pkg/d3
2ee320e
%{python3_sitelib}/XStatic_D3-%{version}-py%{python3_version}.egg-info
2ee320e
%{python3_sitelib}/XStatic_D3-%{version}-py%{python3_version}-nspkg.pth
2ee320e
2ee320e
%files -n xstatic-d3-common
2ee320e
%doc README.txt
02959bc
%{_jsdir}/d3
02959bc
02959bc
%changelog
66d1811
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-24
66d1811
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
66d1811
f1dfcdc
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-23
f1dfcdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
f1dfcdc
589aef3
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-22
589aef3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
589aef3
06a8442
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.5.17.0-21
06a8442
- Rebuilt for Python 3.12
06a8442
7213ba6
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-20
7213ba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7213ba6
6d8ced9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-19
6d8ced9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6d8ced9
43161ac
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.5.17.0-18
43161ac
- Rebuilt for Python 3.11
43161ac
6f19975
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-17
6f19975
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
6f19975
d2ab733
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-16
d2ab733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d2ab733
b573f22
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.5.17.0-15
b573f22
- Rebuilt for Python 3.10
b573f22
adb7fd1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-14
adb7fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
adb7fd1
33fbcbb
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-13
33fbcbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
33fbcbb
9c0f9b1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.17.0-12
9c0f9b1
- Rebuilt for Python 3.9
9c0f9b1
2d5c0a0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-11
2d5c0a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d5c0a0
295b90e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.17.0-10
295b90e
- Rebuilt for Python 3.8.0rc1 (#1748018)
295b90e
07d097a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.17.0-9
07d097a
- Rebuilt for Python 3.8
07d097a
e074025
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-8
e074025
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e074025
aa8de8d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-7
aa8de8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
aa8de8d
117920d
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.17.0-6
117920d
- Subpackage python2-XStatic-D3 has been removed
117920d
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
117920d
6372d6a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-5
6372d6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6372d6a
6c64e3d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.17.0-4
6c64e3d
- Rebuilt for Python 3.7
6c64e3d
7d80e6f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-3
7d80e6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7d80e6f
da24c05
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.17.0-2
da24c05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
da24c05
f15ea08
* Mon Feb  6 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 3.5.17.0-1
f15ea08
- Upstream 3.5.17.0
f15ea08
19e6874
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.1.6.2-7
19e6874
- Rebuild for Python 3.6
19e6874
2ee320e
* Wed Oct 12 2016 Jan Beran <jberan@redhat.com> - 3.1.6.2-6
2ee320e
- Provides a Python 3 subpackage
2ee320e
638e15e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.6.2-5
638e15e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
638e15e
21c59e7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6.2-4
21c59e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
21c59e7
39e2afb
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.6.2-3
39e2afb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
39e2afb
02959bc
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 3.1.6.2-2
02959bc
- change BR to python2-devel
02959bc
02959bc
* Wed Aug 27 2014 Matthias Runge <mrunge@redhat.com> - 3.1.6.2-1
02959bc
- Initial package.