!1 python-deprecated package init

From: @wk333 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-07-04 03:08:52 +00:00 committed by Gitee
commit 1cc7205d0e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 48 additions and 0 deletions

BIN
Deprecated-1.2.13.tar.gz Normal file

Binary file not shown.

44
python-deprecated.spec Normal file
View File

@ -0,0 +1,44 @@
%global srcname Deprecated
%global pkgname deprecated
Name: python-%{pkgname}
Version: 1.2.13
Release: 1
Summary: Python decorator to deprecate old python classes, functions or methods
License: MIT
URL: https://github.com/tantale/%{pkgname}
Source0: https://files.pythonhosted.org/packages/source/D/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
Python @deprecated decorator to deprecate old python classes, functions or
methods.}
%description %{_description}
%package -n python3-%{pkgname}
Summary: %{summary}
%description -n python3-%{pkgname} %{_description}
%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{pkgname}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pkgname}
%license LICENSE.rst
%doc README.md
%{python3_sitelib}/%{pkgname}/
%{python3_sitelib}/%{srcname}-*.egg-info/
%changelog
* Fri Jul 01 2022 wangkai <wangkai385@h-partners.com> - 1.2.13-1
- Package init

4
python-deprecated.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: tantale/deprecated
tag_prefix: ^v
separator: .