public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-hl7] f44: Unretire package bz#2556387
@ 2026-11-19 10:44 Benson Muite
0 siblings, 0 replies; only message in thread
From: Benson Muite @ 2026-11-19 10:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-hl7
Branch : f44
Commit : e319d88694728adbbbb285af7d8e4a53f346c1fe
Author : Benson Muite <benson_muite@emailplus.org>
Date : 2026-11-19T13:41:50+03:00
Stats : +98/-30 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-hl7/c/e319d88694728adbbbb285af7d8e4a53f346c1fe?branch=f44
Log:
Unretire package bz#2556387
---
diff --git a/docs-intersphinx.patch b/docs-intersphinx.patch
new file mode 100644
index 0000000..74727c1
--- /dev/null
+++ b/docs-intersphinx.patch
@@ -0,0 +1,10 @@
+diff -ruN hl7-0.4.5/docs/conf.py hl7-0.4.5-mod/docs/conf.py
+--- hl7-0.4.5/docs/conf.py 2022-03-03 00:26:17.000000000 +0300
++++ hl7-0.4.5-mod/docs/conf.py 2026-10-20 21:27:54.632265245 +0300
+@@ -263,4 +263,5 @@
+
+
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {"http://docs.python.org/": None}
++intersphinx_mapping = {'python': ('https://docs.python.org/3',
++ 'objects.inv')}
diff --git a/python-hl7.spec b/python-hl7.spec
index ae2dca0..5c8ad6d 100644
--- a/python-hl7.spec
+++ b/python-hl7.spec
@@ -1,52 +1,81 @@
-
-%global srcname hl7
-%global sum Python library parsing HL7 v2.x and v3.x messages
-
-Name: python-%{srcname}
+Name: python-hl7
Version: 0.4.5
Release: %autorelease
-Summary: Python library parsing HL7 v2.x and v3.x messages
+Summary: Python library parsing HL7 v2.x messages
License: BSD-3-Clause
-URL: http://pypi.python.org/pypi/%{srcname}
-
-Source0: %{pypi_source %{srcname}}
-Source1: https://raw.githubusercontent.com/johnpaulett/python-hl7/master/AUTHORS
+URL: https://github.com/johnpaulett/python-hl7
+Source0: %{pypi_source hl7}
+# Use intersphinx references from Fedora python documentation subpackage
+Patch: docs-intersphinx.patch
+# Remove build status logo that is no longer available in the repository
+# https://github.com/johnpaulett/python-hl7/pull/87
+Patch: remove-build-status-logo.patch
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-six
+# Documentation requirements
+BuildRequires: texinfo
+BuildRequires: python3dist(docutils)
+BuildRequires: python3dist(sphinx)
+BuildRequires: python3-sphinx-theme-alabaster
+# Intersphinx references
+BuildRequires: python3-docs
+
+%global _description %{expand:
+python-hl7 is a simple library for parsing messages of Health Level 7 (HL7)
+version 2.x into Python objects. python-hl7 includes a simple client that can
+send HL7 messages to a Minimal Lower Level Protocol (MLLP) server (mllp_send).
+
+HL7 is a communication protocol and message format for health care data. It is
+the de-facto standard for transmitting data between clinical information
+systems and between clinical devices. The version 2.x series, which is often is
+a pipe delimited format is currently the most widely accepted version of HL7
+(there is an alternative XML-based format).}
+
+%description %_description
-%description
-python-%{srcname} is a simple library for parsing messages of
-Health Level 7 (HL7) v2.x into Python objects.
+%package -n python3-hl7
+Summary: %{summary}
-%package -n python3-%{srcname}
-Summary: %{sum}
-%{?python_provide:%python_provide python3-%{srcname}}
+%description -n python3-hl7 %_description
-%description -n python3-%{srcname}
-python-%{srcname} is a simple library for parsing messages of
-Health Level 7 (HL7) v2.x into Python objects.
%prep
-%setup -q -n %{srcname}-%{version}
-rm -rf *egg-info
-cp %{SOURCE1} .
+%autosetup -p1 -n hl7-%{version}
+
+cp %{_docdir}/python3-docs/html/objects.inv docs/
+
+%generate_buildrequires
+%pyproject_buildrequires
+
%build
+%pyproject_wheel
-%py3_build
+pushd docs
+sphinx-build . build -b texinfo
+pushd build
+makeinfo --docbook python-hl7.texi
+popd
+popd
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l hl7
+
+
+mkdir -p %{buildroot}%{_datadir}/help/en/hl7
+install -m644 docs/build/python-hl7.xml %{buildroot}%{_datadir}/help/en/hl7
+
+%check
+%pyproject_check_import
+%{py3_test_envvars} %{python3} -m unittest discover -t . -s tests
-%files -n python3-%{srcname}
+%files -n python3-hl7 -f %{pyproject_files}
%{_bindir}/mllp_send
-%{python3_sitelib}/%{srcname}/
-%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
-%license LICENSE
+%doc README.rst
+%lang(en) %{_datadir}/help/en/hl7
%changelog
%autochangelog
diff --git a/remove-build-status-logo.patch b/remove-build-status-logo.patch
new file mode 100644
index 0000000..23a06de
--- /dev/null
+++ b/remove-build-status-logo.patch
@@ -0,0 +1,29 @@
+diff -ruN hl7-0.4.5/docs/index.rst hl7-0.4.5-mod2/docs/index.rst
+--- hl7-0.4.5/docs/index.rst 2022-03-03 00:33:37.000000000 +0300
++++ hl7-0.4.5-mod2/docs/index.rst 2026-10-29 12:14:55.382287618 +0300
+@@ -30,11 +30,6 @@
+ which aims to replace `txHL7 <https://txhl7.readthedocs.io/>`_.
+
+
+-.. image::
+- https://github.com/johnpaulett/python-hl7/workflows/Python%20package/badge.svg
+- :target: https://github.com/johnpaulett/python-hl7/actions
+-
+-
+
+ Result Tree
+ -----------
+diff -ruN hl7-0.4.5/README.rst hl7-0.4.5-mod2/README.rst
+--- hl7-0.4.5/README.rst 2022-03-03 00:26:17.000000000 +0300
++++ hl7-0.4.5-mod2/README.rst 2026-10-29 11:06:32.784828421 +0300
+@@ -8,10 +8,6 @@
+ * Documentation: http://python-hl7.readthedocs.org
+ * PyPi: http://pypi.python.org/pypi/hl7
+
+-.. image::
+- https://github.com/johnpaulett/python-hl7/workflows/Python%20package/badge.svg
+- :target: https://github.com/johnpaulett/python-hl7/actions
+-
+
+ .. warning::
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 10:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 10:44 [rpms/python-hl7] f44: Unretire package bz#2556387 Benson Muite
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox