python-tomli/python-tomli.spec

63 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

2022-03-07 09:25:53 +00:00
Name: python-tomli
2022-06-09 11:33:56 +00:00
Version: 2.0.1
2022-08-05 03:06:27 +00:00
Release: 2
2022-03-07 09:25:53 +00:00
Summary: A little TOML parser for Python
License: MIT
2022-08-05 03:06:27 +00:00
URL: https://pypi.org/project/tomli/
Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz
2022-03-07 09:25:53 +00:00
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-dateutil
%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}
2022-08-05 03:06:27 +00:00
Provides: python%{python3_pkgversion}dist(tomli) = %{version}
Provides: python%{python3_version}dist(tomli) = %{version}
2022-03-07 09:25:53 +00:00
%description -n python3-tomli %_description
%prep
%autosetup -p1 -n tomli-%{version}
%build
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
2022-08-05 03:06:27 +00:00
cp -rf src/tomli .
2022-03-07 09:25:53 +00:00
mkdir %{distinfo}
cat > %{distinfo}/METADATA << EOF
Metadata-Version: 2.2
Name: tomli
Version: %{version}+rpmbootstrap
EOF
%install
mkdir -p %{buildroot}%{python3_sitelib}
2022-08-05 03:06:27 +00:00
cp -a tomli %{distinfo} %{buildroot}%{python3_sitelib}
2022-03-07 09:25:53 +00:00
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
2022-08-05 03:06:27 +00:00
%check
export PYTHONPATH=. && pytest
2022-03-07 09:25:53 +00:00
%files -n python3-tomli -f %{pyproject_files}
%doc README.md
2022-08-05 03:06:27 +00:00
%doc CHANGELOG.md
2022-03-07 09:25:53 +00:00
%license LICENSE
%changelog
2022-08-05 03:06:27 +00:00
* Fri Aug 05 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-2
- Fix the python3.10(dist) dependence
2022-06-09 11:33:56 +00:00
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-1
- Upgrade python3-tomli to version 2.0.1
2022-03-07 09:25:53 +00:00
* Tue Mar 1 2022 zhangy <zhangy1317@foxmai.com> - 2.0.0
- Init packages