972926a
%global pypi_name XStatic-Angular
972926a
972926a
Name:           python-%{pypi_name}
c5e83fc
Version:        1.5.8.0
1612a83
Release:        7%{?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
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
5c6cb80
%autosetup -n %{pypi_name}-%{version}
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
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.