summaryrefslogtreecommitdiffstats
path: root/python/python-keep.spec
blob: bed2412ea023e3249088cf062353d6fae1e0ac1e (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
69
70
%global srcname keep

# no tests currently defined
%bcond_with tests

Name:           python-%{srcname}
Version:        2.10.1
Release:        1%{?dist}
Summary:        A Meta CLI toolkit

License:        MIT
URL:            https://github.com/orkohunter/keep
# pypi archive does not contain license text
# Source0:        {pypi_source}
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch

%global _description %{expand:
Personal shell command keeper and snippets manager

## Features
- Save a new command with a brief description
- Search the saved commands using powerful patterns
- Save the commands as a secret GitHub gist
- Use `keep push` and `keep pull` to sync the commands between GitHub
  gist and other computers.

**ProTip : Save the commands you usually forget in ssh sessions and sync
it with your local machine.**}

%description %_description

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
%if %{with tests}
BuildRequires:  python3-pytest
%endif
BuildRequires:  python3-setuptools
BuildRequires:  python3dist(click)
BuildRequires:  python3dist(pygithub)
BuildRequires:  python3dist(terminaltables)

%description -n python3-%{srcname} %_description

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%pytest -v
%endif

%files -n python3-%{srcname}
%license LICENSE.md
%doc README.md tutorial.md
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%{_bindir}/%{srcname}

%changelog
* Tue Jun 29 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.10.1-1
- Initial package