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

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