%?python_enable_dependency_generator Name: stratis-cli Version: 0.0.5 Release: 3%{?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 # stratisd only available on certain arches ExclusiveArch: %{rust_arches} noarch BuildArch: noarch %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 \ etc/bash_completion.d/stratis %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratis.8 %files %license LICENSE %doc README.rst %{_bindir}/stratis %{_mandir}/man8/stratis.8* %{_datadir}/bash-completion/completions/stratis %{python3_sitelib}/stratis_cli/ %{python3_sitelib}/stratis_cli-*.egg-info/ %changelog * Fri Jan 19 2018 Igor Gnatenko - 0.0.5-3 - Enable usage of dependency generator * Mon Jan 08 2018 Igor Gnatenko - 0.0.5-2 - Include manpage * Mon Jan 08 2018 Igor Gnatenko - 0.0.5-1 - Initial package