588ea15
%global pypi_name XStatic-Rickshaw
588ea15
588ea15
Name:           python-%{pypi_name}
588ea15
Version:        1.5.0.0
68f2cd7
Release:        26%{?dist}
588ea15
Summary:        Rickshaw (XStatic packaging standard)
588ea15
588ea15
License:        MIT
588ea15
URL:            http://code.shutterstock.com/rickshaw/
af81aa5
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
588ea15
BuildArch:      noarch
74ea8c3
af81aa5
%description
af81aa5
JavaScript library packaged for setuptools (easy_install) / pip.
af81aa5
af81aa5
This package is intended to be used by any project that needs these files.
af81aa5
af81aa5
It intentionally does not provide any extra code except some metadata
af81aa5
nor has any extra requirements.
af81aa5
af81aa5
%package -n python3-%{pypi_name}
af81aa5
Summary:        %{summary}
588ea15
af81aa5
BuildRequires:  python3-devel
af81aa5
BuildRequires:  python3-setuptools
588ea15
af81aa5
Requires:       python3-XStatic
af81aa5
Requires:       xstatic-rickshaw-common
588ea15
af81aa5
%{?python_provide:%python_provide python3-%{pypi_name}}
588ea15
af81aa5
%description -n python3-%{pypi_name}
af81aa5
JavaScript library packaged for setuptools (easy_install) / pip.
588ea15
af81aa5
This package is intended to be used by any project that needs these files.
588ea15
af81aa5
It intentionally does not provide any extra code except some metadata
af81aa5
nor has any extra requirements.
af81aa5
af81aa5
This package provides Python 3 build of %{pypi_name}.
588ea15
af81aa5
%package -n xstatic-rickshaw-common
af81aa5
Summary:        %{summary}
588ea15
af81aa5
BuildRequires:  web-assets-devel
af81aa5
Requires:       web-assets-filesystem
af81aa5
af81aa5
%description -n xstatic-rickshaw-common
af81aa5
JavaScript library packaged for setuptools (easy_install) / pip.
af81aa5
af81aa5
This package is intended to be used by any project that needs these files.
af81aa5
af81aa5
It intentionally does not provide any extra code except some metadata
af81aa5
nor has any extra requirements.
af81aa5
af81aa5
This package contains the javascript files.
af81aa5
af81aa5
%prep
af81aa5
%autosetup -n %{pypi_name}-%{version}
af81aa5
# patch to use webassets dir
af81aa5
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/rickshaw'|" xstatic/pkg/rickshaw/__init__.py
588ea15
af81aa5
%build
af81aa5
%py3_build
588ea15
af81aa5
%install
a4c1261
%py3_install
af81aa5
mkdir -p %{buildroot}%{_jsdir}/rickshaw
a4c1261
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/rickshaw/data/rickshaw.* %{buildroot}%{_jsdir}/rickshaw
a4c1261
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/rickshaw/data/
af81aa5
# fix execute flags for js
af81aa5
chmod 644 %{buildroot}%{_jsdir}/rickshaw/rickshaw.js
af81aa5
af81aa5
%files -n python3-%{pypi_name}
af81aa5
%doc README.txt
af81aa5
%{python3_sitelib}/xstatic/pkg/rickshaw
af81aa5
%{python3_sitelib}/XStatic_Rickshaw-%{version}-py%{python3_version}.egg-info
af81aa5
%{python3_sitelib}/XStatic_Rickshaw-%{version}-py%{python3_version}-nspkg.pth
af81aa5
af81aa5
%files -n xstatic-rickshaw-common
af81aa5
%doc README.txt
588ea15
%{_jsdir}/rickshaw
588ea15
588ea15
%changelog
68f2cd7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-26
68f2cd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
68f2cd7
8bef114
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-25
8bef114
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8bef114
597d695
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.0.0-24
597d695
- Rebuilt for Python 3.10
597d695
74e8128
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-23
74e8128
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
74e8128
ab5fcb4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-22
ab5fcb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ab5fcb4
f0ffd33
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-21
f0ffd33
- Rebuilt for Python 3.9
f0ffd33
6e7103c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-20
6e7103c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6e7103c
fdc5671
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-19
fdc5671
- Rebuilt for Python 3.8.0rc1 (#1748018)
fdc5671
95c97d2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-18
95c97d2
- Rebuilt for Python 3.8
95c97d2
dc057ba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-17
dc057ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dc057ba
45494ea
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-16
45494ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
45494ea
a4c1261
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-15
a4c1261
- Python2 binary package has been removed
a4c1261
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
a4c1261
2e4069d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-14
2e4069d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2e4069d
48bc36e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-13
48bc36e
- Rebuilt for Python 3.7
48bc36e
0776ea4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-12
0776ea4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0776ea4
02366f0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-11
02366f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
02366f0
4100141
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-10
4100141
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4100141
1324611
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0.0-9
1324611
- Rebuild for Python 3.6
1324611
af81aa5
* Thu Oct 13 2016 Jan Beran <jberan@redhat.com> - 1.5.0.0-8
af81aa5
- Provides a Python 3 subpackage
af81aa5
039963e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0.0-7
039963e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
039963e
0c2c690
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0.0-6
0c2c690
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0c2c690
17e1829
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0.0-5
17e1829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
17e1829
74ea8c3
* Wed Apr 15 2015 Matthias Runge <mrunge@redhat.com> - 1.5.0.0-4
74ea8c3
- add rickshaw.css
74ea8c3
588ea15
* Fri Sep 05 2014 Matthias Runge <mrunge@redhat.com> - 1.5.0.0-3
588ea15
- Fix License: MIT (rhbz#1135457)
588ea15
588ea15
* Thu Sep 04 2014 Matthias Runge <mrunge@redhat.com> - 1.5.0.0-2
588ea15
- change BR to python2-devel
588ea15
588ea15
* Fri Aug 29 2014 Matthias Runge <mrunge@redhat.com> - 1.5.0.0-1
588ea15
- Initial package.
af81aa5