From 2850e12bf310ad6c379aaadae6b7fe26132be003 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 11 2021 17:57:00 +0000 Subject: Import python-XStatic-objectpath-1.2.1.0-2.el9 in CloudSIG xena --- diff --git a/.python-XStatic-objectpath.metadata b/.python-XStatic-objectpath.metadata new file mode 100644 index 0000000..95f3df4 --- /dev/null +++ b/.python-XStatic-objectpath.metadata @@ -0,0 +1,2 @@ +4d5469eb7d20947ef1e2f80707d3d321a02a7f87 SOURCES/XStatic-objectpath-1.2.1.0.tar.gz +b7c09c1fc15f0d6cd065327f0793f1218862e4b2 SOURCES/license diff --git a/SPECS/python-XStatic-objectpath.spec b/SPECS/python-XStatic-objectpath.spec new file mode 100644 index 0000000..ded8ff3 --- /dev/null +++ b/SPECS/python-XStatic-objectpath.spec @@ -0,0 +1,87 @@ +%{?python_enable_dependency_generator} + +%global pypi_name XStatic-objectpath + +Name: python-%{pypi_name} +Version: 1.2.1.0 +Release: 2%{?dist} +Summary: ObjectPath JavaScript library (XStatic packaging standard) + +License: MIT +URL: https://github.com/mike-marcacci/objectpath +Source0: https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/mike-marcacci/objectpath/master/license +BuildArch: noarch + +%description +ObjectPath JavaScript library packaged +for setuptools (easy_install) / pip. + +Parse js object paths using both dot and bracket notation. +Stringify an array of properties into a valid path. + +%package -n xstatic-objectpath-common +Summary: ObjectPath JavaScript library (XStatic packaging standard) + +BuildRequires: web-assets-devel +Requires: web-assets-filesystem + +%description -n xstatic-objectpath-common +ObjectPath JavaScript library packaged +for setuptools (easy_install) / pip. + +This package contains the javascript files. + +%package -n python3-%{pypi_name} +Summary: ObjectPath JavaScript library (XStatic packaging standard) +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: python3-XStatic +Requires: xstatic-objectpath-common = %{version}-%{release} + +%description -n python3-%{pypi_name} +ObjectPath JavaScript library packaged +for setuptools (easy_install) / pip. + +Parse js object paths using both dot and bracket notation. +Stringify an array of properties into a valid path. + +%prep +%setup -q -n %{pypi_name}-%{version} +cp %{SOURCE1} LICENSE + +# patch to use webassets dir +sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/objectpath'|" xstatic/pkg/objectpath/__init__.py + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install --skip-build --root %{buildroot} +# Move static files +mkdir -p %{buildroot}/%{_jsdir}/objectpath +mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/objectpath/data/ObjectPath.js %{buildroot}/%{_jsdir}/objectpath + +rmdir %{buildroot}/%{python3_sitelib}/xstatic/pkg/objectpath/data/ + +%files -n xstatic-objectpath-common +%doc README.txt +%license LICENSE +%{_jsdir}/objectpath + +%files -n python3-%{pypi_name} +%doc README.txt +%license LICENSE +%{python3_sitelib}/xstatic/pkg/objectpath +%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?.egg-info +%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?-nspkg.pth + +%changelog +* Fri Feb 21 2020 Yatin Karel - 1.2.1.0-2 +- Drop python2 sub package + +* Fri Aug 5 2016 David Moreau Simard - 1.2.1.0-1 +- First version