|
|
2850e1 |
%{?python_enable_dependency_generator}
|
|
|
2850e1 |
|
|
|
2850e1 |
%global pypi_name XStatic-objectpath
|
|
|
2850e1 |
|
|
|
2850e1 |
Name: python-%{pypi_name}
|
|
|
2850e1 |
Version: 1.2.1.0
|
|
|
2850e1 |
Release: 2%{?dist}
|
|
|
2850e1 |
Summary: ObjectPath JavaScript library (XStatic packaging standard)
|
|
|
2850e1 |
|
|
|
2850e1 |
License: MIT
|
|
|
2850e1 |
URL: https://github.com/mike-marcacci/objectpath
|
|
|
2850e1 |
Source0: https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
2850e1 |
Source1: https://raw.githubusercontent.com/mike-marcacci/objectpath/master/license
|
|
|
2850e1 |
BuildArch: noarch
|
|
|
2850e1 |
|
|
|
2850e1 |
%description
|
|
|
2850e1 |
ObjectPath JavaScript library packaged
|
|
|
2850e1 |
for setuptools (easy_install) / pip.
|
|
|
2850e1 |
|
|
|
2850e1 |
Parse js object paths using both dot and bracket notation.
|
|
|
2850e1 |
Stringify an array of properties into a valid path.
|
|
|
2850e1 |
|
|
|
2850e1 |
%package -n xstatic-objectpath-common
|
|
|
2850e1 |
Summary: ObjectPath JavaScript library (XStatic packaging standard)
|
|
|
2850e1 |
|
|
|
2850e1 |
BuildRequires: web-assets-devel
|
|
|
2850e1 |
Requires: web-assets-filesystem
|
|
|
2850e1 |
|
|
|
2850e1 |
%description -n xstatic-objectpath-common
|
|
|
2850e1 |
ObjectPath JavaScript library packaged
|
|
|
2850e1 |
for setuptools (easy_install) / pip.
|
|
|
2850e1 |
|
|
|
2850e1 |
This package contains the javascript files.
|
|
|
2850e1 |
|
|
|
2850e1 |
%package -n python3-%{pypi_name}
|
|
|
2850e1 |
Summary: ObjectPath JavaScript library (XStatic packaging standard)
|
|
|
2850e1 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
2850e1 |
|
|
|
2850e1 |
BuildRequires: python3-devel
|
|
|
2850e1 |
BuildRequires: python3-setuptools
|
|
|
2850e1 |
|
|
|
2850e1 |
Requires: python3-XStatic
|
|
|
2850e1 |
Requires: xstatic-objectpath-common = %{version}-%{release}
|
|
|
2850e1 |
|
|
|
2850e1 |
%description -n python3-%{pypi_name}
|
|
|
2850e1 |
ObjectPath JavaScript library packaged
|
|
|
2850e1 |
for setuptools (easy_install) / pip.
|
|
|
2850e1 |
|
|
|
2850e1 |
Parse js object paths using both dot and bracket notation.
|
|
|
2850e1 |
Stringify an array of properties into a valid path.
|
|
|
2850e1 |
|
|
|
2850e1 |
%prep
|
|
|
2850e1 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
2850e1 |
cp %{SOURCE1} LICENSE
|
|
|
2850e1 |
|
|
|
2850e1 |
# patch to use webassets dir
|
|
|
2850e1 |
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/objectpath'|" xstatic/pkg/objectpath/__init__.py
|
|
|
2850e1 |
|
|
|
2850e1 |
%build
|
|
|
2850e1 |
%{__python3} setup.py build
|
|
|
2850e1 |
|
|
|
2850e1 |
%install
|
|
|
2850e1 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
2850e1 |
# Move static files
|
|
|
2850e1 |
mkdir -p %{buildroot}/%{_jsdir}/objectpath
|
|
|
2850e1 |
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/objectpath/data/ObjectPath.js %{buildroot}/%{_jsdir}/objectpath
|
|
|
2850e1 |
|
|
|
2850e1 |
rmdir %{buildroot}/%{python3_sitelib}/xstatic/pkg/objectpath/data/
|
|
|
2850e1 |
|
|
|
2850e1 |
%files -n xstatic-objectpath-common
|
|
|
2850e1 |
%doc README.txt
|
|
|
2850e1 |
%license LICENSE
|
|
|
2850e1 |
%{_jsdir}/objectpath
|
|
|
2850e1 |
|
|
|
2850e1 |
%files -n python3-%{pypi_name}
|
|
|
2850e1 |
%doc README.txt
|
|
|
2850e1 |
%license LICENSE
|
|
|
2850e1 |
%{python3_sitelib}/xstatic/pkg/objectpath
|
|
|
2850e1 |
%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?.egg-info
|
|
|
2850e1 |
%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?-nspkg.pth
|
|
|
2850e1 |
|
|
|
2850e1 |
%changelog
|
|
|
2850e1 |
* Fri Feb 21 2020 Yatin Karel <ykarel@redhat.com> - 1.2.1.0-2
|
|
|
2850e1 |
- Drop python2 sub package
|
|
|
2850e1 |
|
|
|
2850e1 |
* Fri Aug 5 2016 David Moreau Simard <dmsimard@redhat.com> - 1.2.1.0-1
|
|
|
2850e1 |
- First version
|