236598
%global pypi_name XStatic-Bootstrap-Datepicker
236598
236598
Name:           python-%{pypi_name}
236598
Version:        1.3.1.0
2f834f
Release:        15%{?dist}
236598
Summary:        Bootstrap-Datepicker (XStatic packaging standard)
236598
236598
License:        ASL 2.0
236598
URL:            https://github.com/eternicode/bootstrap-datepicker/
d61ac3
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
236598
BuildArch:      noarch
236598
d61ac3
%description
d61ac3
JavaScript library packaged for setuptools (easy_install) / pip.
d61ac3
d61ac3
This package is intended to be used by any project that needs these files.
d61ac3
d61ac3
It intentionally does not provide any extra code except some metadata
d61ac3
nor has any extra requirements.
d61ac3
d61ac3
%package -n python3-%{pypi_name}
d61ac3
Summary:        %{summary}
d61ac3
d61ac3
BuildRequires:  python3-devel
d61ac3
BuildRequires:  python3-setuptools
d61ac3
d61ac3
Requires:       python3-XStatic
d61ac3
Requires:       xstatic-bootstrap-datepicker-common
d61ac3
d61ac3
%{?python_provide:%python_provide python3-%{pypi_name}}
d61ac3
d61ac3
%description -n python3-%{pypi_name}
d61ac3
JavaScript library packaged for setuptools (easy_install) / pip.
d61ac3
d61ac3
This package is intended to be used by any project that needs these files.
d61ac3
d61ac3
It intentionally does not provide any extra code except some metadata
d61ac3
nor has any extra requirements.
d61ac3
d61ac3
This package provides Python 3 build of %{pypi_name}.
d61ac3
d61ac3
%package -n xstatic-bootstrap-datepicker-common
d61ac3
Summary:        %{summary}
d61ac3
d61ac3
BuildRequires:  web-assets-devel
d61ac3
Requires:       web-assets-filesystem
236598
d61ac3
%description -n xstatic-bootstrap-datepicker-common
d61ac3
JavaScript library packaged for setuptools (easy_install) / pip.
d61ac3
d61ac3
This package is intended to be used by any project that needs these files.
d61ac3
d61ac3
It intentionally does not provide any extra code except some metadata
d61ac3
nor has any extra requirements.
d61ac3
d61ac3
This package contains the javascript files.
d61ac3
d61ac3
%prep
d61ac3
%autosetup -n %{pypi_name}-%{version}
d61ac3
# patch to use webassets dir
236598
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_datepicker'|" xstatic/pkg/bootstrap_datepicker/__init__.py
236598
236598
%build
d61ac3
%py3_build
236598
236598
%install
3123b6
%py3_install
3123b6
d61ac3
mkdir -p %{buildroot}%{_jsdir}/bootstrap_datepicker
3123b6
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker/data/* %{buildroot}%{_jsdir}/bootstrap_datepicker
3123b6
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker/data/
d61ac3
# fix execute flags for js
d61ac3
chmod 644 %{buildroot}%{_jsdir}/bootstrap_datepicker/bootstrap-datepicker.js
d61ac3
d61ac3
%files -n python3-%{pypi_name}
d61ac3
%doc README.txt
d61ac3
%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker
d61ac3
%{python3_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python3_version}.egg-info
d61ac3
%{python3_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python3_version}-nspkg.pth
236598
d61ac3
%files -n xstatic-bootstrap-datepicker-common
236598
%doc README.txt
236598
%{_jsdir}/bootstrap_datepicker
236598
236598
%changelog
2f834f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1.0-15
2f834f
- Rebuilt for Python 3.8
2f834f
461d85
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-14
461d85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
461d85
636772
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-13
636772
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
636772
3123b6
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1.0-12
3123b6
- Subpackage python2-XStatic-Bootstrap-Datepicker has been removed
3123b6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
3123b6
896614
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-11
896614
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
896614
4d76a2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1.0-10
4d76a2
- Rebuilt for Python 3.7
4d76a2
cafd6d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-9
cafd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cafd6d
96eebb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-8
96eebb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
96eebb
44038d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-7
44038d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
44038d
37ad8e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.1.0-6
37ad8e
- Rebuild for Python 3.6
37ad8e
d61ac3
* Wed Oct 12 2016 Jan Beran <jberan@redhat.com> - 1.3.1.0-5
d61ac3
- Provides a Python 3 subpackage
d61ac3
5c4f48
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1.0-4
5c4f48
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5c4f48
4c8910
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-3
4c8910
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4c8910
a49de3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1.0-2
a49de3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a49de3
236598
* Fri Sep 19 2014 Matthias Runge <mrunge@redhat.com> - 1.3.1.0-1
236598
- Initial package.
d61ac3