Blame SPECS/python-XStatic-Rickshaw.spec

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