From c1b4a7c09257d14762dca6956942608cba34f136 Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Fri, 3 Jul 2020 13:32:02 +0900 Subject: [PATCH] Add packaging files Change-Id: I8bcad0cef6077b9ae6a28e89026c983323708627 Signed-off-by: Hyunjee Kim --- packaging/python3-funcsigs.manifest | 5 +++ packaging/python3-funcsigs.spec | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 packaging/python3-funcsigs.manifest create mode 100644 packaging/python3-funcsigs.spec diff --git a/packaging/python3-funcsigs.manifest b/packaging/python3-funcsigs.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-funcsigs.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-funcsigs.spec b/packaging/python3-funcsigs.spec new file mode 100644 index 0000000..c94a34f --- /dev/null +++ b/packaging/python3-funcsigs.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-funcsigs +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define debug_package %{nil} + +Name: python3-funcsigs +Version: 1.0.2 +Release: 0 +Summary: Python function signatures from PEP362 +License: Apache-2.0 +Group: Development/Languages/Python +Url: http://funcsigs.readthedocs.org +Source: https://pypi.io/packages/source/f/funcsigs/funcsigs-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +#BuildRequires: python-unittest2 + +BuildArch: noarch + +%description +funcsigs is a backport of the PEP 362 function signature features from +Python 3.3's inspect module. The backport is compatible with Python 2.6, 2.7 +as well as 3.2 and up. + +%prep +%setup -q -n funcsigs-%{version} + +%build +cp %{SOURCE1001} . +%{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%check +#python3 setup.py test + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%license LICENSE +%{python3_sitelib}/* + +%changelog -- 2.7.4