|
|
972926a |
%global pypi_name XStatic-Angular
|
|
|
972926a |
|
|
|
972926a |
Name: python-%{pypi_name}
|
|
|
0e112e4 |
Version: 1.3.7.0
|
|
|
aeaca8c |
Release: 4%{?dist}
|
|
|
bfb0aae |
Epoch: 1
|
|
|
0e112e4 |
Summary: Angular (XStatic packaging standard)
|
|
|
972926a |
|
|
|
972926a |
License: MIT
|
|
|
972926a |
URL: http://angularjs.org
|
|
|
972926a |
Source0: https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
972926a |
BuildArch: noarch
|
|
|
481c4e3 |
|
|
|
972926a |
BuildRequires: python2-devel
|
|
|
972926a |
BuildRequires: python-setuptools
|
|
|
972926a |
BuildRequires: web-assets-devel
|
|
|
972926a |
|
|
|
972926a |
Requires: python-XStatic
|
|
|
972926a |
Requires: web-assets-filesystem
|
|
|
972926a |
|
|
|
aeaca8c |
Obsoletes: python-XStatic-Angular-Cookies < 1.3.0.0-1
|
|
|
aeaca8c |
Provides: python-XStatic-Angular-Cookies = %{version}-%{release}
|
|
|
972926a |
|
|
|
972926a |
%description
|
|
|
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 |
|
|
|
972926a |
|
|
|
972926a |
|
|
|
972926a |
%prep
|
|
|
972926a |
%setup -q -n %{pypi_name}-%{version}
|
|
|
972926a |
# Remove bundled egg-info
|
|
|
972926a |
rm -rf %{pypi_name}.egg-info
|
|
|
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
|
|
|
972926a |
# due
|
|
|
972926a |
# https://bitbucket.org/thomaswaldmann/xstatic/issue/2/
|
|
|
972926a |
# this package can not be built with python-XStatic installed.
|
|
|
972926a |
%{__python2} setup.py build
|
|
|
972926a |
|
|
|
972926a |
|
|
|
972926a |
%install
|
|
|
972926a |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
972926a |
# move angular.js to appropriate _jsdir
|
|
|
972926a |
mkdir -p %{buildroot}/%{_jsdir}/angular
|
|
|
481c4e3 |
mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/angular/data/angular* %{buildroot}/%{_jsdir}/angular
|
|
|
972926a |
|
|
|
972926a |
|
|
|
972926a |
|
|
|
972926a |
%files
|
|
|
972926a |
%doc README.txt
|
|
|
972926a |
%{python2_sitelib}/xstatic/pkg/angular
|
|
|
972926a |
%{python2_sitelib}/XStatic_Angular-%{version}-py%{python_version}.egg-info
|
|
|
972926a |
%{python2_sitelib}/XStatic_Angular-%{version}-py%{python_version}-nspkg.pth
|
|
|
972926a |
%{_jsdir}/angular
|
|
|
972926a |
|
|
|
972926a |
%changelog
|
|
|
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.
|