!1 Init package with version 2022.6.26

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

BIN
calver-2022.6.26.tar.gz Normal file

Binary file not shown.

65
python-calver.spec Normal file
View File

@ -0,0 +1,65 @@
%global _empty_manifest_terminate_build 0
Name: python-calver
Version: 2022.6.26
Release: 1
Summary: Setuptools extension for CalVer package versions.
License: Apache-2.0
URL: https://github.com/di/calver
Source0: https://files.pythonhosted.org/packages/b5/00/96cbed7c019c49ee04b8a08357a981983db7698ae6de402e57097cefc9ad/calver-2022.6.26.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
The calver package is a setuptools extension for automatically defining
your Python package version as a calendar version.
%package -n python3-calver
Summary: Setuptools extension for CalVer package versions.
Provides: python-calver
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-calver
The calver package is a setuptools extension for automatically defining
your Python package version as a calendar version.
%package help
Summary: Development documents and examples for calver
Provides: python3-calver-doc
%description help
Development documents and examples for calver.
%prep
%autosetup -n calver-%{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-calver
%doc README.md
%license LICENSE
%{python3_sitelib}/calver
%{python3_sitelib}/calver*.dist-info/
%files help
%{_docdir}/*
%changelog
* Thu Nov 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2022.6.26-1
- Init package