Blame SPECS/python-XStatic-Bootstrap-Datepicker.spec

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