54 lines
1.3 KiB
RPMSpec
54 lines
1.3 KiB
RPMSpec
Name: python-tomli
|
|
Version: 2.0.0
|
|
Release: 1
|
|
Summary: A little TOML parser for Python
|
|
License: MIT
|
|
URL: https://pypi.org/project/tomli/
|
|
Source0: https://github.com/hukkin/tomli/archive/refs/tags/%{version}.tar.gz
|
|
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}
|
|
|
|
%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 tomli %{distinfo} %{buildroot}%{python3_sitelib}
|
|
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
|
|
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
|
|
|
|
%check
|
|
pytest
|
|
|
|
%files -n python3-tomli -f %{pyproject_files}
|
|
%doc README.md
|
|
%doc CHANGELOG.md
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Tue Mar 1 2022 zhangy <zhangy1317@foxmai.com> - 2.0.0
|
|
- Init packages
|