public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-lazr-config] epel10: Initial import (#1387518).
@ 2026-11-24 20:45
0 siblings, 0 replies; only message in thread
From: @ 2026-11-24 20:45 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 20:45 [rpms/python-lazr-config] epel10: Initial import (#1387518)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox