From e26a6fc37cbe03d3a3a4869c05b935a03b164679 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Mon, 29 Jul 2019 17:02:50 +0200 Subject: [PATCH] Initial import (#1733508) Signed-off-by: Petr "Stone" Hracek --- .gitignore | 1 + python-deprecated.spec | 49 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100644 python-deprecated.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a84269c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Deprecated-1.2.6.tar.gz diff --git a/python-deprecated.spec b/python-deprecated.spec new file mode 100644 index 0000000..b0df360 --- /dev/null +++ b/python-deprecated.spec @@ -0,0 +1,49 @@ +%global srcname Deprecated +%global pkgname deprecated + +Name: python-%{pkgname} +Version: 1.2.6 +Release: 2%{?dist} +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 + +%description +Python @deprecated decorator to deprecate old python classes, +functions or methods. + +%package -n python3-%{pkgname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pkgname}} + +%description -n python3-%{pkgname} +Python @deprecated decorator to deprecate old python classes, +functions or methods. + +%prep +%autosetup -n %{pkgname}-%{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}-%{version}-*.egg-info/ + + +%changelog +* Fri Jul 26 2019 Petr Hracek - 1.2.6-2 +- Fix python3_sitelib issue + +* Fri Jul 26 2019 Petr Hracek - 1.2.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..cf47ffe --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Deprecated-1.2.6.tar.gz) = 861b202aa68093a5239306c1de845e91e404801c555291cd767997b3249a8142eace67b9601baf5d40e026f55f225a921a8680c7e75403bbeff5cd4edf628ddb