python-toml/python-toml.spec

69 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-18 16:54:41 +08:00
Name: python-toml
Version: 0.10.0
Release: 2
2020-02-18 16:54:41 +08:00
Summary: Python Library for Tom's Obvious, Minimal Language
License: MIT
URL: https://pypi.python.org/pypi/toml
Source0: https://files.pythonhosted.org/packages/b9/19/5cbd78eac8b1783671c40e34bb0fa83133a06d340a38b55c645076d40094/toml-0.10.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%description
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.
2020-02-18 16:54:41 +08:00
%package -n python3-toml
Summary: Python Library for Tom's Obvious, Minimal Language
BuildRequires: python3-devel
%{?python_provide:%python_provide python3-toml}
%description -n python3-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_help
%prep
%autosetup -n toml-%{version}
%build
%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s'
2020-02-18 16:54:41 +08:00
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot
2020-02-18 16:54:41 +08:00
%_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
2020-02-18 16:54:41 +08:00
%files -n python3-toml
%defattr(-,root,root)
%license LICENSE
%{python3_sitelib}/toml
%{python3_sitelib}/toml-%{version}-py?.?.egg-info
2020-02-18 16:54:41 +08:00
%files help
%defattr(-,root,root)
%doc README.rst
%changelog
* Thu Sep 23 2021 chenchen <chen_aka_jan@163.com> - 0.10.0-2
- Import python2 module
2020-02-18 16:59:09 +08:00
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.10.0-1
2020-02-18 16:54:41 +08:00
- Package init