972926a
%global pypi_name XStatic-Angular
972926a
972926a
Name:           python-%{pypi_name}
c5e83fc
Version:        1.5.8.0
9ead30b
Release:        23%{?dist}
bfb0aae
Epoch:          1
0e112e4
Summary:        Angular (XStatic packaging standard)
972926a
972926a
License:        MIT
972926a
URL:            http://angularjs.org
5c6cb80
Source0:        https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
972926a
BuildArch:      noarch
98d03dc
98d03dc
Patch0001:      0001-fix-angular.merge-do-not-merge-__proto__-property.patch
98d03dc
5c6cb80
%description
5c6cb80
Angular JavaScript library packaged for
5c6cb80
setuptools (easy_install) / pip.
5c6cb80
5c6cb80
This package is intended to be used by
5c6cb80
**any** project that needs these files.
5c6cb80
5c6cb80
It intentionally does **not** provide
5c6cb80
any extra code except some metadata
5c6cb80
**nor** has any extra requirements. You MAY
5c6cb80
use some minimal support code from
5c6cb80
the XStatic base package, if you like.
5c6cb80
5c6cb80
%package -n python3-%{pypi_name}
5c6cb80
Summary:        Angular (XStatic packaging standard)
5c6cb80
5c6cb80
BuildRequires:  python3-devel
5c6cb80
BuildRequires:  python3-setuptools
5c6cb80
BuildRequires:  web-assets-devel
5c6cb80
5c6cb80
Requires: python3-XStatic
6a59624
Requires: XStatic-Angular-common = %{epoch}:%{version}-%{release}
5c6cb80
5c6cb80
%{?python_provide:%python_provide python3-%{pypi_name}}
5c6cb80
5c6cb80
%description -n python3-%{pypi_name}
972926a
Angular JavaScript library packaged for
972926a
setuptools (easy_install) / pip.
972926a
972926a
This package is intended to be used by
972926a
**any** project that needs these files.
972926a
972926a
It intentionally does **not** provide
972926a
any extra code except some metadata
972926a
**nor** has any extra requirements. You MAY
972926a
use some minimal support code from
972926a
the XStatic base package, if you like.
972926a
5c6cb80
%package -n XStatic-Angular-common
9ecd12f
Requires: web-assets-filesystem
5c6cb80
Summary:     Common files for XStatic-Angular (XStatic packaging standard)
5c6cb80
%description -n XStatic-Angular-common
5c6cb80
Common files for XStatic-Angular (XStatic packaging standard)
972926a
972926a
%prep
98d03dc
%autosetup -n %{pypi_name}-%{version} -p1
972926a
972926a
# patch to use webassets dir
0e112e4
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular'|" xstatic/pkg/angular/__init__.py
972926a
972926a
972926a
%build
5c6cb80
# due
972926a
# https://bitbucket.org/thomaswaldmann/xstatic/issue/2/
972926a
# this package can not be built with python-XStatic installed.
5c6cb80
%py3_build
972926a
972926a
972926a
%install
5c6cb80
%py3_install
5c6cb80
972926a
# move angular.js to appropriate _jsdir
972926a
mkdir -p %{buildroot}/%{_jsdir}/angular
91cdb0a
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/angular/data/angular* %{buildroot}/%{_jsdir}/angular
972926a
5c6cb80
5c6cb80
%files -n XStatic-Angular-common
972926a
%{_jsdir}/angular
972926a
91cdb0a
5c6cb80
%files -n python3-%{pypi_name}
5c6cb80
%doc README.txt
5c6cb80
%{python3_sitelib}/xstatic/pkg/angular
5c6cb80
%{python3_sitelib}/XStatic_Angular-%{version}-py%{python3_version}.egg-info
5c6cb80
%{python3_sitelib}/XStatic_Angular-%{version}-py%{python3_version}-nspkg.pth
5c6cb80
5c6cb80
972926a
%changelog
9ead30b
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-23
9ead30b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9ead30b
c38f21c
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:1.5.8.0-22
c38f21c
- Rebuilt for Python 3.12
c38f21c
3755397
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-21
3755397
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3755397
98d03dc
* Fri Aug 19 2022 Lon Hohberger <lon@redhat.com> - 1:1.5.8.0-20
98d03dc
- Backport fix for CVE-2019-10768
98d03dc
ae0ba97
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-19
ae0ba97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
ae0ba97
9af8b19
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:1.5.8.0-18
9af8b19
- Rebuilt for Python 3.11
9af8b19
a88c16e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-17
a88c16e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a88c16e
2f09324
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-16
2f09324
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2f09324
717851e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1:1.5.8.0-15
717851e
- Rebuilt for Python 3.10
717851e
2856fc9
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-14
2856fc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2856fc9
d5a882d
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-13
d5a882d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d5a882d
e7d4938
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.5.8.0-12
e7d4938
- Rebuilt for Python 3.9
e7d4938
d55343b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-11
d55343b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d55343b
c1f8216
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.5.8.0-10
c1f8216
- Rebuilt for Python 3.8.0rc1 (#1748018)
c1f8216
bdc887d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.5.8.0-9
bdc887d
- Rebuilt for Python 3.8
bdc887d
ecef2dc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-8
ecef2dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ecef2dc
1612a83
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-7
1612a83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1612a83
91cdb0a
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.5.8.0-6
91cdb0a
- Python2 binary package has been removed
91cdb0a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
91cdb0a
e38a0b6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-5
e38a0b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e38a0b6
7396733
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.5.8.0-4
7396733
- Rebuilt for Python 3.7
7396733
b284917
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-3
b284917
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b284917
bf99cc0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5.8.0-2
bf99cc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bf99cc0
c5e83fc
* Mon Feb  6 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 1:1.5.8.0-1
c5e83fc
- Upstream 1.5.8.0
c5e83fc
46b409d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1:1.3.7.0-10
46b409d
- Rebuild for Python 3.6
46b409d
6a59624
* Sun Sep 04 2016 Matthias Runge <mrunge@redhat.com> -1:1.3.7.0-9
6a59624
- fix dependencies with -common
6a59624
5c6cb80
* Tue Aug 30 2016 Matthias Runge <mrunge@redhat.com> -1:1.3.7.0-8
5c6cb80
- provide a python3 package (rhbz#1365037)
5c6cb80
132f615
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.7.0-7
132f615
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
132f615
ea7ba9d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.3.7.0-6
ea7ba9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ea7ba9d
81f7e96
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.7.0-5
81f7e96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
81f7e96
aeaca8c
* Fri Apr 10 2015 Matthias Runge <mrunge@redhat.com> - 1:1.3.7.0-4
aeaca8c
- provide obsoleted python-XStatic-Angular-Cookies (rhbz#1210692)
aeaca8c
bfb0aae
* Thu Feb 12 2015 Matthias Runge <mrunge@redhat.com> - 1:1.3.7.0-3
bfb0aae
- introduce epoch due to bump in f22
bfb0aae
481c4e3
* Thu Jan 15 2015 Matthias Runge <mrunge@redhat.com> - 1.3.7.0-2
481c4e3
- include the rest of additional angular files
481c4e3
- obsolete python-XStatic-Angular-Cookies
481c4e3
0e112e4
* Mon Jan 12 2015 Matthias Runge <mrunge@redhat.com> - 1.3.7.0-1
0e112e4
- update to 1.3.7.0
0e112e4
972926a
* Wed Aug 27 2014 Matthias Runge <mrunge@redhat.com> - 1.2.1.1-1
972926a
- Initial package.