summaryrefslogtreecommitdiff
path: root/python-eulxml.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 04:32:45 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 04:32:45 +0000
commit2842c4bc753cd96c81aa34401043e24037a894f5 (patch)
tree114eb0c16f858119f399827bbabae03fe4ee6e18 /python-eulxml.spec
parentc9ab52811442f09c96438f1350b027cbdefac3b4 (diff)
automatic import of python-eulxml
Diffstat (limited to 'python-eulxml.spec')
-rw-r--r--python-eulxml.spec126
1 files changed, 126 insertions, 0 deletions
diff --git a/python-eulxml.spec b/python-eulxml.spec
new file mode 100644
index 0000000..3347036
--- /dev/null
+++ b/python-eulxml.spec
@@ -0,0 +1,126 @@
+%global _empty_manifest_terminate_build 0
+Name: python-eulxml
+Version: 1.1.3
+Release: 1
+Summary: XPath-based XML data binding, with Django form support
+License: Apache License, Version 2.0
+URL: https://github.com/emory-libraries/eulxml
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/5d/baf644154d180eee580860fdca4eafe43dfd18f0159f9425f635635a667b/eulxml-1.1.3.tar.gz
+BuildArch: noarch
+
+
+%description
+**package**
+**documentation**
+**code**
+eulxml is a `Python <http://www.python.org/>`_ module that provides
+utilities and classes for interacting with XML that allow the
+definition of re-usable XML objects that can be accessed, updated and
+created as standard Python types, and a form component for editing XML
+with `Django <https://www.djangoproject.com/>`_ forms.
+**eulxml.xpath** provides functions and classes for parsing XPath
+expressions using `PLY <http://www.dabeaz.com/ply/>`_.
+**eulxml.xmlmap** makes it easier to map XML to Python objects in a
+nicer, more pythonic and object-oriented way than typical DOM access
+usually provides. XML can be read, modified, and even created from
+scratch (in cases where the configured XPath is simple enough to
+determine the nodes that should be constructed).
+**eulxml.forms** provides Django Form objects that use
+**eulxml.xmlmap.XmlObject** instances as the basis and data instance
+for the form, with the goal of making it easy to edit XML content
+via web forms.
+
+%package -n python3-eulxml
+Summary: XPath-based XML data binding, with Django form support
+Provides: python-eulxml
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-eulxml
+**package**
+**documentation**
+**code**
+eulxml is a `Python <http://www.python.org/>`_ module that provides
+utilities and classes for interacting with XML that allow the
+definition of re-usable XML objects that can be accessed, updated and
+created as standard Python types, and a form component for editing XML
+with `Django <https://www.djangoproject.com/>`_ forms.
+**eulxml.xpath** provides functions and classes for parsing XPath
+expressions using `PLY <http://www.dabeaz.com/ply/>`_.
+**eulxml.xmlmap** makes it easier to map XML to Python objects in a
+nicer, more pythonic and object-oriented way than typical DOM access
+usually provides. XML can be read, modified, and even created from
+scratch (in cases where the configured XPath is simple enough to
+determine the nodes that should be constructed).
+**eulxml.forms** provides Django Form objects that use
+**eulxml.xmlmap.XmlObject** instances as the basis and data instance
+for the form, with the goal of making it easy to edit XML content
+via web forms.
+
+%package help
+Summary: Development documents and examples for eulxml
+Provides: python3-eulxml-doc
+%description help
+**package**
+**documentation**
+**code**
+eulxml is a `Python <http://www.python.org/>`_ module that provides
+utilities and classes for interacting with XML that allow the
+definition of re-usable XML objects that can be accessed, updated and
+created as standard Python types, and a form component for editing XML
+with `Django <https://www.djangoproject.com/>`_ forms.
+**eulxml.xpath** provides functions and classes for parsing XPath
+expressions using `PLY <http://www.dabeaz.com/ply/>`_.
+**eulxml.xmlmap** makes it easier to map XML to Python objects in a
+nicer, more pythonic and object-oriented way than typical DOM access
+usually provides. XML can be read, modified, and even created from
+scratch (in cases where the configured XPath is simple enough to
+determine the nodes that should be constructed).
+**eulxml.forms** provides Django Form objects that use
+**eulxml.xmlmap.XmlObject** instances as the basis and data instance
+for the form, with the goal of making it easy to edit XML content
+via web forms.
+
+%prep
+%autosetup -n eulxml-1.1.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-eulxml -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.3-1
+- Package Spec generated