blob: 53feda02332cb8bea82fa42d03e332deef62459c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
|