summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 04:03:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 04:03:52 +0000
commit95b32e15b819a25e4a66e5e71caf8ef44608f606 (patch)
treefe43e32e78429e8de27e07c13c87f2646053d84f
parent8ebfa75bb18f28e3dcc9d781bfdfa66d0ac7734f (diff)
automatic import of python-pyx12openeuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pyx12.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4f74f6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyx12-2.3.3.tar.gz
diff --git a/python-pyx12.spec b/python-pyx12.spec
new file mode 100644
index 0000000..f866092
--- /dev/null
+++ b/python-pyx12.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyx12
+Version: 2.3.3
+Release: 1
+Summary: HIPAA X12 validator, parser and converter
+License: BSD
+URL: http://github.com/azoner/pyx12
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f0/ff/ad8215a9033fb4bbcd6450decaba51aced3f86b7fb8b4f6233ea8914607c/pyx12-2.3.3.tar.gz
+BuildArch: noarch
+
+
+%description
+Pyx12 is a HIPAA X12 document validator and converter. It parses an ANSI X12N data file and
+validates it against a representation of the Implementation Guidelines for a HIPAA transaction. By default, it
+creates a 997 response for 4010 and a 999 response for 5010. It can create an html representation of the X12
+document or can translate to and from an XML representation of the data file.
+
+%package -n python3-pyx12
+Summary: HIPAA X12 validator, parser and converter
+Provides: python-pyx12
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyx12
+Pyx12 is a HIPAA X12 document validator and converter. It parses an ANSI X12N data file and
+validates it against a representation of the Implementation Guidelines for a HIPAA transaction. By default, it
+creates a 997 response for 4010 and a 999 response for 5010. It can create an html representation of the X12
+document or can translate to and from an XML representation of the data file.
+
+%package help
+Summary: Development documents and examples for pyx12
+Provides: python3-pyx12-doc
+%description help
+Pyx12 is a HIPAA X12 document validator and converter. It parses an ANSI X12N data file and
+validates it against a representation of the Implementation Guidelines for a HIPAA transaction. By default, it
+creates a 997 response for 4010 and a 999 response for 5010. It can create an html representation of the X12
+document or can translate to and from an XML representation of the data file.
+
+%prep
+%autosetup -n pyx12-2.3.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-pyx12 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..705ae5e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d11a4bcef03fdfc3b0942660176dd210 pyx12-2.3.3.tar.gz