summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <kdreyer@redhat.com>2019-02-25 15:46:55 -0700
committerKen Dreyer <kdreyer@redhat.com>2019-02-25 16:32:52 -0700
commitc24b43fa0ece868b513c15c02857b592d3f85692 (patch)
tree325fa9c1a4fda06004eac70cdafea4eb39eac0a1
downloadpython-jaraco-functools-master.tar.gz
python-jaraco-functools-master.tar.xz
python-jaraco-functools-master.zip
initial packageHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--python-jaraco-functools.spec52
-rw-r--r--sources1
3 files changed, 54 insertions, 0 deletions
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 <kdreyer@redhat.com> - 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