From c24b43fa0ece868b513c15c02857b592d3f85692 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 25 Feb 2019 15:46:55 -0700 Subject: initial package --- .gitignore | 1 + python-jaraco-functools.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 python-jaraco-functools.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eb7448 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jaraco.functools-2.0.tar.gz diff --git a/python-jaraco-functools.spec b/python-jaraco-functools.spec new file mode 100644 index 0000000..c3b53a3 --- /dev/null +++ b/python-jaraco-functools.spec @@ -0,0 +1,52 @@ +%global pypi_name jaraco.functools + +Name: python-jaraco-functools +Version: 2.0 +Release: 1%{?dist} +Summary: Functools like those found in stdlib +License: MIT +URL: https://github.com/jaraco/jaraco.functools +Source0: https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-jaraco-classes +BuildRequires: python3-more-itertools +BuildRequires: python3-pytest >= 3.5 +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm >= 1.15.0 +BuildRequires: python3-six + +%global _description\ +Functools like those found in stdlib. + +%description %_description + +%package -n python3-jaraco-functools +Summary: %{summary} +%{?python_provide:%python_provide python3-jaraco-functools} +%description -n python3-jaraco-functools %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +# Remove unnecessary test deps +sed -i 's/ --doctest-modules//' pytest.ini +sed -i 's/ --flake8//' pytest.ini + +%build +%py3_build + +%install +%py3_install + +%check +py.test-%{python3_version} -v + +%files -n python3-jaraco-functools +%license LICENSE +%doc README.rst +%{python3_sitelib}/* + +%changelog +* Mon Feb 25 2019 Ken Dreyer - 2.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..3a05fbe --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jaraco.functools-2.0.tar.gz) = dce30c08f0e9f3c7b682c78fc3a46a26d9972706f4c8449a12ba11aa5ed130c6d9ca405213fd93b6b4110ef9cea549e5fa925c96bfaf18681cd6957d8ba0889f -- cgit