61 lines
1.5 KiB
RPMSpec
61 lines
1.5 KiB
RPMSpec
Name: python-tomli
|
|
Version: 2.0.1
|
|
Release: 1
|
|
Summary: A little TOML parser for Python
|
|
License: MIT
|
|
URL: https://github.com/hukkin/tomli
|
|
Source0: https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-dateutil
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
|
|
%global _description %{expand:
|
|
Tomli is a Python library for parsing TOML.
|
|
Tomli is fully compatible with TOML v1.0.0.}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-tomli
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-tomli %_description
|
|
|
|
%prep
|
|
%autosetup -p1 -n tomli-%{version}
|
|
|
|
%build
|
|
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
|
|
mkdir %{distinfo}
|
|
cat > %{distinfo}/METADATA << EOF
|
|
Metadata-Version: 2.2
|
|
Name: tomli
|
|
Version: %{version}+rpmbootstrap
|
|
EOF
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{python3_sitelib}
|
|
cp -a src/tomli %{distinfo} %{buildroot}%{python3_sitelib}
|
|
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
|
|
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
|
|
|
|
#%check
|
|
#no test items
|
|
#pytest
|
|
|
|
%files -n python3-tomli -f %{pyproject_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-1
|
|
- Upgrade python3-tomli to version 2.0.1
|
|
|
|
* Tue Mar 1 2022 zhangy <zhangy1317@foxmai.com> - 2.0.0
|
|
- Init packages
|