public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-lazr-config] epel10: Initial import (#1387518).
Date: Tue, 24 Nov 2026 20:45:11 GMT	[thread overview]
Message-ID: <179555311164.1.9330667484674760942.rpms-python-lazr-config-e04331a9645e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-lazr-config
Branch : epel10
Commit : e04331a9645e6dff2ffac031cf107db31366522c
Author : Aurélien Bompard <aurelien@bompard.org>
Date   : 2016-12-14T17:38:15+01:00
Stats  : +152/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-lazr-config/c/e04331a9645e6dff2ffac031cf107db31366522c?branch=epel10

Log:
Initial import (#1387518).

---
diff --git a/.gitignore b/.gitignore
index e69de29..35948c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lazr.config-2.1.tar.gz

diff --git a/python-lazr-config.spec b/python-lazr-config.spec
new file mode 100644
index 0000000..fef7d3e
--- /dev/null
+++ b/python-lazr-config.spec
@@ -0,0 +1,150 @@
+%global srcname lazr.config
+%global pkgname lazr-config
+%global summary Create configuration schemas, and process and validate configurations
+%global _description \
+The LAZR config system is typically used to manage process configuration.      \
+Process configuration is for saying how things change when we run systems on   \
+different machines, or under different circumstances.                          \
+\
+This system uses ini-like file format of section, keys, and values. The config \
+file supports inheritance to minimize duplication of information across files. \
+The format supports schema validation.
+
+# EPEL7 support: default Python is Python 2, and Python2 packages prefix
+# is unversioned.
+%if 0%{?rhel} && 0%{?rhel} <= 7
+%global py2_namespace python
+%else
+%global py2_namespace python2
+%endif
+
+
+Name:           python-%{pkgname}
+Version:        2.1
+Release:        1%{?dist}
+Summary:        %{summary}
+
+License:        LGPLv3
+URL:            https://launchpad.net/lazr.config
+Source0:        https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  %{py2_namespace}-devel
+BuildRequires:  %{py2_namespace}-setuptools
+BuildRequires:  %{py2_namespace}-zope-interface
+BuildRequires:  %{py2_namespace}-nose
+BuildRequires:  %{py2_namespace}-lazr-delegates
+# Python3
+BuildRequires: python3-pkgversion-macros
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python%{python3_pkgversion}-zope-interface
+BuildRequires: python%{python3_pkgversion}-nose
+BuildRequires: python%{python3_pkgversion}-lazr-delegates
+%if 0%{?with_python3_other}
+BuildRequires: python%{python3_other_pkgversion}-devel
+BuildRequires: python%{python3_other_pkgversion}-setuptools
+BuildRequires: python%{python3_other_pkgversion}-zope-interface
+BuildRequires: python%{python3_other_pkgversion}-nose
+BuildRequires: python%{python3_other_pkgversion}-lazr-delegates
+%endif
+
+
+%description %{_description}
+
+
+%if %{py2_namespace} != python
+%package -n %{py2_namespace}-%{pkgname}
+Summary:        %{summary}
+%{?python_provide:%python_provide python2-%{pkgname}}
+Requires:       %{py2_namespace}-setuptools
+Requires:       %{py2_namespace}-zope-interface
+Requires:       %{py2_namespace}-lazr-delegates
+
+%description -n %{py2_namespace}-%{pkgname} %{_description}
+%endif
+
+
+%package -n python%{python3_pkgversion}-%{pkgname}
+Summary:        %{summary}
+%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
+Requires:       python%{python3_pkgversion}-setuptools
+Requires:       python%{python3_pkgversion}-zope-interface
+Requires:       python%{python3_pkgversion}-lazr-delegates
+
+%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
+
+
+%if 0%{?with_python3_other}
+%package -n python%{python3_other_pkgversion}-%{pkgname}
+Summary:        %{summary}
+%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}}
+Requires:       python%{python3_other_pkgversion}-setuptools
+Requires:       python%{python3_other_pkgversion}-zope-interface
+Requires:       python%{python3_other_pkgversion}-lazr-delegates
+
+%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description}
+%endif
+
+
+%prep
+%autosetup -n %{srcname}-%{version}
+
+sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg
+
+
+%build
+%py2_build
+%py3_build
+%if 0%{?with_python3_other}
+%py3_other_build
+%endif
+
+
+%install
+%py2_install
+%py3_install
+%if 0%{?with_python3_other}
+%py3_other_install
+%endif
+
+
+%check
+%{__python2} setup.py nosetests
+# In Python3, namespace packages don't have an __init__.py file in the parent
+# dir. Keeping it would shadow the lazr.delegates module.
+rm lazr/__init__.py*
+sed -i -e 's/^\(\s*namespace_packages=.*\)/#\1/' setup.py
+%{__python3} setup.py nosetests
+%if 0%{?with_python3_other}
+%{__python3_other} setup.py nosetests
+%endif
+
+
+%files -n %{py2_namespace}-%{pkgname}
+%license COPYING.txt
+%doc README.rst HACKING.rst
+%{python2_sitelib}/lazr/
+%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}.egg-info/
+%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}-nspkg.pth
+
+%files -n python%{python3_pkgversion}-%{pkgname}
+%license COPYING.txt
+%doc README.rst HACKING.rst
+%{python3_sitelib}/lazr/
+%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
+%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth
+
+%if 0%{?with_python3_other}
+%files -n python%{python3_other_pkgversion}-%{pkgname}
+%license COPYING.txt
+%doc README.rst HACKING.rst
+%{python3_other_sitelib}/lazr/
+%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/
+%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth
+%endif
+
+
+%changelog
+* Wed Sep 14 2016 Aurelien Bompard <abompard@fedoraproject.org> - 2.1-1
+- Initial package.

diff --git a/sources b/sources
index e69de29..b10fae8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (lazr.config-2.1.tar.gz) = 12814738d60c13b800b438fef5900481f1a1c52d9b3b6a2175dc4a5890969e1de35d1dd21d43d391202def229ee9e52a706cfc1220df88afb74c9a6169efb900

                 reply	other threads:[~2026-11-24 20:45 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=179555311164.1.9330667484674760942.rpms-python-lazr-config-e04331a9645e@fedoraproject.org \
    --to=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