initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-11-03 11:16:52 +01:00
parent 34c541fa74
commit 6533f55113
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
3 changed files with 61 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/stratis-cli-1.0.0.tar.gz

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (stratis-cli-1.0.0.tar.gz) = 05e3be882f4387b281f9104ec11066482b4ad67e4a0e000bd54d912b378a3c86f18e4bf552321e1d2230a8c5a47ce04d605f63b9a4108889a77a78964d638b36

59
stratis-cli.spec Normal file
View File

@ -0,0 +1,59 @@
%{?python_enable_dependency_generator}
# https://pagure.io/koji/issue/659
%global debug_package %{nil}
Name: stratis-cli
Version: 1.0.0
Release: 1%{?dist}
Summary: Command-line tool for interacting with the Stratis daemon
License: ASL 2.0
URL: https://github.com/stratis-storage/stratis-cli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: %{_bindir}/a2x
# It runs without, but totally useless
Requires: (stratisd >= 1.0 with stratisd < 2.0)
# stratisd only available on certain arches
ExclusiveArch: %{rust_arches}
%description
stratis provides a command-line interface (CLI) for
interacting with the Stratis daemon, stratisd. stratis
interacts with stratisd via D-Bus.
%prep
%autosetup
%build
%py3_build
a2x -f manpage docs/stratis.txt
%install
%py3_install
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
shell-completion/bash/stratis
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \
shell-completion/zsh/_stratis
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratis.8
%files
%license LICENSE
%doc README.rst
%{_bindir}/stratis
%{_mandir}/man8/stratis.8*
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/stratis
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_stratis
%{python3_sitelib}/stratis_cli/
%{python3_sitelib}/stratis_cli-*.egg-info/
%changelog
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-1
- Initial package