import stratis-cli-3.2.0-1.el9

This commit is contained in:
CentOS Sources 2022-11-15 01:39:49 -05:00 committed by Stepan Oksanichenko
parent caa3d2c014
commit 5219bb7b87
4 changed files with 29 additions and 17 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/stratis-cli-2.4.3.tar.gz SOURCES/stratis-cli-3.2.0.tar.gz

View File

@ -1 +1 @@
e2408e519dc9e1e339c5d3ba6f9435cfe55bae84 SOURCES/stratis-cli-2.4.3.tar.gz ced5473a45c0652b59f85c06023af3d6689a3053 SOURCES/stratis-cli-3.2.0.tar.gz

View File

@ -1,11 +0,0 @@
--- setup.py.orig 2021-07-19 10:27:56.107557330 -0400
+++ setup.py 2021-07-19 10:29:17.047557330 -0400
@@ -50,8 +50,6 @@ setuptools.setup(
"dbus-python-client-gen>=0.7",
"justbytes>=0.14",
"python-dateutil",
- "semantic_version",
- "wcwidth",
],
package_dir={"": "src"},
packages=setuptools.find_packages("src"),

View File

@ -1,25 +1,29 @@
Name: stratis-cli Name: stratis-cli
Version: 2.4.3 Version: 3.2.0
Release: 2%{?dist} Release: 1%{?dist}
Summary: Command-line tool for interacting with the Stratis daemon Summary: Command-line tool for interacting with the Stratis daemon
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/stratis-storage/stratis-cli URL: https://github.com/stratis-storage/stratis-cli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: remove-semantic_version-and-wcwidth-deps.patch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: %{_bindir}/a2x BuildRequires: %{_bindir}/a2x
%if 0%{?rhel} && !0%{?eln}
Requires: platform-python Requires: platform-python
%else
%endif
# It runs without, but totally useless # It runs without, but totally useless
Requires: stratisd >= 2.4 Requires: (stratisd >= 3.1.0 with stratisd < 4.0.0)
# stratisd only available on certain arches # stratisd only available on certain arches
ExclusiveArch: %{rust_arches} noarch ExclusiveArch: %{rust_arches} noarch
%if 0%{?rhel} && !0%{?eln}
ExcludeArch: i686 ExcludeArch: i686
%endif
BuildArch: noarch BuildArch: noarch
%description %description
@ -36,10 +40,15 @@ a2x -f manpage docs/stratis.txt
%install %install
%py3_install %py3_install
# Do not install tab-completion files for RHEL
%if !0%{?rhel}
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \ %{__install} -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
shell-completion/bash/stratis shell-completion/bash/stratis
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \ %{__install} -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \
shell-completion/zsh/_stratis shell-completion/zsh/_stratis
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_completions.d \
shell-completion/fish/stratis.fish
%endif
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratis.8 %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratis.8
%files %files
@ -47,16 +56,30 @@ a2x -f manpage docs/stratis.txt
%doc README.rst %doc README.rst
%{_bindir}/stratis %{_bindir}/stratis
%{_mandir}/man8/stratis.8* %{_mandir}/man8/stratis.8*
%if !0%{?rhel}
%dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions %dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/stratis %{_datadir}/bash-completion/completions/stratis
%dir %{_datadir}/zsh %dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions %dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_stratis %{_datadir}/zsh/site-functions/_stratis
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/stratis.fish
%endif
%{python3_sitelib}/stratis_cli/ %{python3_sitelib}/stratis_cli/
%{python3_sitelib}/stratis_cli-*.egg-info/ %{python3_sitelib}/stratis_cli-*.egg-info/
%changelog %changelog
* Fri Jul 08 2022 Bryan Gurney <bgurney@redhat.com> - 3.2.0-1
- Add the ability to stop and start pools
- Resolves: rhbz#2105061
* Tue May 31 2022 Bryan Gurney <bgurney@redhat.com> - 3.1.0-1
- Update to 3.1.0
- Resolves: rhbz#2039946
- Revise stratis-cli.spec file to unified format
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.3-2 * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.3-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688