From 06a22c6f51382295becb8137e2d0d981730aa99c Mon Sep 17 00:00:00 2001 From: chen-jan Date: Thu, 23 Sep 2021 08:37:31 +0000 Subject: [PATCH] Import python2 module (cherry picked from commit 030865ca60ed916712a8a38d3314cfd8a08c272d) --- python-toml.spec | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/python-toml.spec b/python-toml.spec index 8ec112c..1598a00 100644 --- a/python-toml.spec +++ b/python-toml.spec @@ -1,6 +1,6 @@ Name: python-toml Version: 0.10.0 -Release: 1 +Release: 2 Summary: Python Library for Tom's Obvious, Minimal Language License: MIT URL: https://pypi.python.org/pypi/toml @@ -13,6 +13,15 @@ BuildRequires: python3-devel TOML aims to be a minimal configuration file format that's easy to read due \to obvious semantics. TOML is designed to map unambiguously to a hash table.\ TOML should be easy to parse into data structures in a wide variety of \ languages. +%package -n python2-toml +Summary: Python Library for Tom's Obvious, Minimal Language +BuildRequires: python2-devel +%{?python_provide:%python_provide python2-toml} + +%description -n python2-toml +TOML aims to be a minimal configuration file format that's easy to read due \to obvious semantics. TOML is designed to map unambiguously to a hash table.\ TOML should be easy to parse into data structures in a wide variety of \ +languages. + %package -n python3-toml Summary: Python Library for Tom's Obvious, Minimal Language BuildRequires: python3-devel @@ -28,21 +37,32 @@ languages. %autosetup -n toml-%{version} %build +%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s' %_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' %install +%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot +%files -n python2-toml +%defattr(-,root,root) +%license LICENSE +%{python2_sitelib}/toml +%{python2_sitelib}/toml-%{version}-py?.?.egg-info + %files -n python3-toml %defattr(-,root,root) %license LICENSE -%_prefix/lib/python3.7/site-packages/toml -%_prefix/lib/python3.7/site-packages/toml-%{version}-py3.7.egg-info +%{python3_sitelib}/toml +%{python3_sitelib}/toml-%{version}-py?.?.egg-info %files help %defattr(-,root,root) %doc README.rst %changelog +* Thu Sep 23 2021 chenchen - 0.10.0-2 +- Import python2 module + * Tue Feb 11 2020 huzunhao - 0.10.0-1 - Package init