!1 Init package with version 1.3.0

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-08 04:39:28 +00:00 committed by Gitee
commit b1f90e2e4d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 64 additions and 0 deletions

64
python-uri-template.spec Normal file
View File

@ -0,0 +1,64 @@
%global _empty_manifest_terminate_build 0
Name: python-uri-template
Version: 1.3.0
Release: 1
Summary: RFC 6570 URI Template Processor.
License: MIT
URL: https://gitlab.linss.com/open-source/python/uri-template
Source0: https://files.pythonhosted.org/packages/31/c7/0336f2bd0bcbada6ccef7aaa25e443c118a704f828a0620c6fa0207c1b64/uri-template-1.3.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
RFC 6570 URI Template Processor.
%package -n python3-uri-template
Summary: RFC 6570 URI Template Processor.
Provides: python-uri-template
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-uri-template
RFC 6570 URI Template Processor.
%package help
Summary: Development documents and examples for uri-template
Provides: python3-uri-template-doc
%description help
Development documents and examples for uri-template.
%prep
%autosetup -n uri-template-%{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-uri-template
%doc README.md
%license LICENSE
%{python3_sitelib}/uri_template
%{python3_sitelib}/uri_template*.dist-info/
%files help
%{_docdir}/*
%changelog
* Wed Nov 8 2023 Dongxing Wang <dxwangk@isoftstone.com> - 1.3.0-1
- Init package

BIN
uri-template-1.3.0.tar.gz Normal file

Binary file not shown.