!1 Init package with version 0.6.2

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-07 03:33:00 +00:00 committed by Gitee
commit 6cc08aac70
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 63 additions and 0 deletions

BIN
parse_type-0.6.2.tar.gz Normal file

Binary file not shown.

63
python-parse-type.spec Normal file
View File

@ -0,0 +1,63 @@
%global _empty_manifest_terminate_build 0
Name: python-parse-type
Version: 0.6.2
Release: 1
Summary: Simplifies to build parse types based on the parse module.
License: MIT
URL: https://github.com/jenisys/parse_type
Source0: https://files.pythonhosted.org/packages/47/32/416e1d54fae3150def1b2db06dca12c5c5be3d1f1ab75c93d5cb21b2b23c/parse_type-0.6.2.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
Simplifies to build parse types based on the parse module.
%package -n python3-parse-type
Summary: Simplifies to build parse types based on the parse module
Provides: python-parse-type
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-parse-type
Simplifies to build parse types based on the parse module.
%package help
Summary: Development documents and examples for parse-type
Provides: python3-parse-type-doc
%description help
Development documents and examples for parse-type.
%prep
%autosetup -n parse_type-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-parse-type
%doc README.rst
%license LICENSE
%{python3_sitelib}/parse_type
%{python3_sitelib}/parse_type*.dist-info/
%files help
%{_docdir}/*
%changelog
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.6.2-1
- Init package.