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