diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-29 17:51:40 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-29 17:53:45 -0700 |
| commit | b09de7472774dcaa8ee6eefcbd9200fdc9f86a5a (patch) | |
| tree | 3b243bc3f97126a1437daa7033f632173a35d4a1 /python/python-keep.spec | |
| parent | 5b1333c4638ddee87cb63ff5a272a040586aa7f0 (diff) | |
| download | specs-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-keep.spec')
| -rw-r--r-- | python/python-keep.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/python/python-keep.spec b/python/python-keep.spec new file mode 100644 index 0000000..bed2412 --- /dev/null +++ b/python/python-keep.spec @@ -0,0 +1,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 |
