public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-hl7] f44: Update to latest version
Date: Thu, 19 Nov 2026 10:43:53 GMT	[thread overview]
Message-ID: <179508503341.1.12247485380249295345.rpms-python-hl7-b040439ba063@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-hl7
            Branch : f44
            Commit : b040439ba063856e3d4b270a52d7163ff6493d07
            Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
            Date   : 2015-10-19T13:08:44+01:00
            Stats  : +65/-22 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-hl7/c/b040439ba063856e3d4b270a52d7163ff6493d07?branch=f44

            Log:
            Update to latest version

Provide py3 version and subpackage for docs.

---
diff --git a/.gitignore b/.gitignore
index cebc0bb..68b0ac6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /hl7-0.2.0.tar.gz
+/hl7-0.3.3.tar.gz

diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..d10a8d9
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,4 @@
+* `John Paulett <https://github.com/johnpaulett/>`_ (john -at- paulett.org)
+* `Andrew Wason <https://github.com/rectalogic>`_
+* `Kevin Gill <https://github.com/kevingill1966>`_
+* `Emilien Klein <https://github.com/e2jk>`_

diff --git a/python-hl7.spec b/python-hl7.spec
index 02ab338..3d732dd 100644
--- a/python-hl7.spec
+++ b/python-hl7.spec
@@ -1,33 +1,59 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 
-%global module_name hl7
+%global srcname hl7
+%global sum  Python library parsing HL7 v2.x and v3.x messages
 
-Name:           python-%{module_name}
-Version:        0.2.0
-Release:        8%{?dist}
+Name:           python-%{srcname}
+Version:        0.3.3
+Release:        1%{?dist}
 # append my cmake path before swig is included
 Summary:        Python library parsing HL7 v2.x and v3.x messages
 
 License:        BSD
-URL:            http://pypi.python.org/pypi/%{module_name}
+URL:            http://pypi.python.org/pypi/%{srcname}
 
-Source0:        http://pypi.python.org/packages/source/h/%{module_name}/%{module_name}-0.2.0.tar.gz
+Source0:        http://pypi.python.org/packages/source/h/%{srcname}/%{srcname}-%{version}.tar.gz
+Source1:        https://raw.githubusercontent.com/johnpaulett/python-hl7/master/AUTHORS
 
 BuildArch:      noarch
-BuildRequires:  python-devel
+BuildRequires:  python2-devel python3-devel
 BuildRequires:  python-setuptools
-BuildRequires:  python-sphinx
+BuildRequires:  python-sphinx python-six
 
 %description
-python-%{module_name} is a simple library for parsing messages of 
+python-%{srcname} is a simple library for parsing messages of 
 Health Level 7 (HL7) v2.x into Python objects.
 
+%package -n python2-%{srcname}
+Summary: %{sum}
+%{?python_provide:%python_provide python2-%{srcname}}
+
+%description -n python2-%{srcname}
+python-%{srcname} is a simple library for parsing messages of 
+Health Level 7 (HL7) v2.x into Python objects.
+
+%package -n python3-%{srcname}
+Summary: %{sum}
+%{?python_provide:%python_provide python3-%{srcname}}
+
+%description -n python3-%{srcname}
+python-%{srcname} is a simple library for parsing messages of 
+Health Level 7 (HL7) v2.x into Python objects.
+
+%package doc
+Summary: Documentation for %{srcname}
+
+%description doc
+Documentation files for %{srcname}
+
 %prep
-%setup -q  -n %{module_name}-%{version}
+%setup -q  -n %{srcname}-%{version}
+rm -rf *egg-info
+cp %{SOURCE1} .
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%py2_build
 
 # Make docs
 # These modes appear to be enough
@@ -38,25 +64,37 @@ pushd docs/
     make htmlhelp
 popd
 
+%py3_build
 
 %install
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-
-# Install the man page to the correct location
-mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
-install -p -m 0644 docs/_build/man/%{name}.1 -t $RPM_BUILD_ROOT/%{_mandir}/man1/
+%py2_install
+%py3_install
 
 # Delete buildinfo file
 find docs/_build/ -name ".buildinfo" -execdir rm -fv '{}' \;
  
-%files
-%{python_sitelib}/%{module_name}/
-%{python_sitelib}/%{module_name}-%{version}-py?.?.egg-info
-%doc docs/_build/html docs/_build/htmlhelp docs/_build/singlehtml LICENSE README.rst
-%{_mandir}/man1/%{name}.1*
+%files -n python2-%{srcname}
+%{python2_sitelib}/%{srcname}/
+%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
+%license LICENSE
 
+%files -n python3-%{srcname}
+%{_bindir}/mllp_send
+%{python3_sitelib}/%{srcname}/
+%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
+%license LICENSE
+
+%files doc
+%doc docs/_build/html docs/_build/htmlhelp docs/_build/singlehtml README.rst AUTHORS
+%license LICENSE
 
 %changelog
+* Mon Oct 19 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.3.3-1
+- Update to latest upstream version
+- Build python3 version
+- Separate doc subpackage
+- mmlp_send is py3 only
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 

diff --git a/sources b/sources
index feead5b..03e237f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e9e6f0c84d685e3f6435db986412ae7c  hl7-0.2.0.tar.gz
+86ecc80f2f3a77485ecdea711e660874  hl7-0.3.3.tar.gz

                 reply	other threads:[~2026-11-19 10:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179508503341.1.12247485380249295345.rpms-python-hl7-b040439ba063@fedoraproject.org \
    --to=sanjay.ankur@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox