summaryrefslogtreecommitdiffstats
path: root/python/python-howdoi.spec
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2021-06-29 17:51:40 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2021-06-29 17:53:45 -0700
commitb09de7472774dcaa8ee6eefcbd9200fdc9f86a5a (patch)
tree3b243bc3f97126a1437daa7033f632173a35d4a1 /python/python-howdoi.spec
parent5b1333c4638ddee87cb63ff5a272a040586aa7f0 (diff)
downloadspecs-b09de7472774dcaa8ee6eefcbd9200fdc9f86a5a.tar.gz
specs-b09de7472774dcaa8ee6eefcbd9200fdc9f86a5a.tar.xz
specs-b09de7472774dcaa8ee6eefcbd9200fdc9f86a5a.zip
+ python-howdoi and python-keep (dependency)
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python/python-howdoi.spec')
-rw-r--r--python/python-howdoi.spec68
1 files changed, 68 insertions, 0 deletions
diff --git a/python/python-howdoi.spec b/python/python-howdoi.spec
new file mode 100644
index 0000000..53feda0
--- /dev/null
+++ b/python/python-howdoi.spec
@@ -0,0 +1,68 @@
+%global srcname howdoi
+
+Name: python-%{srcname}
+Version: 2.0.16
+Release: 1%{?dist}
+Summary: Instant coding answers via the command line
+
+License: MIT
+URL: https://github.com/gleitz/howdoi
+# pypi archive does not contain test data
+# Source0: {pypi_source}
+Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
+# keep only tests that can run offline
+Patch0: %{srcname}-2.0.16-offline_tests.patch
+
+BuildArch: noarch
+
+%global _description %{expand:
+Sherlock, your neighborhood command-line sloth sleuth.
+
+Are you a hack programmer? Do you find yourself constantly Googling for how to
+do basic programming tasks?
+
+Suppose you want to know how to format a date in bash. Why open your browser and
+read through blogs (risking major distraction) when you can simply stay in the
+console and ask howdoi:
+
+ $ howdoi format date bash
+ > DATE=`date +%Y-%m-%d`}
+
+%description %_description
+
+%package -n python3-%{srcname}
+Summary: %{summary}
+BuildRequires: python3-devel
+BuildRequires: python3-pytest
+BuildRequires: python3-setuptools
+BuildRequires: python3dist(appdirs)
+BuildRequires: python3dist(cachelib)
+BuildRequires: python3dist(keep)
+BuildRequires: python3dist(pygments)
+BuildRequires: python3dist(pyquery)
+
+%description -n python3-%{srcname} %_description
+
+%prep
+%autosetup -n %{srcname}-%{version} -p1
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+%pytest -v
+
+%files -n python3-%{srcname}
+%license LICENSE.txt
+%doc CHANGES.txt README.rst
+%{python3_sitelib}/%{srcname}-*.egg-info/
+%{python3_sitelib}/%{srcname}/
+%{_bindir}/%{srcname}
+
+
+%changelog
+* Tue Jun 29 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.0.16-1
+- Initial package