66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
Name: targetcli
|
|
License: ASL 2.0
|
|
Summary: Generic SCSI target CLI shell
|
|
Version: 2.1.54
|
|
Release: 3
|
|
URL: https://github.com/open-iscsi/targetcli-fb
|
|
Source: https://github.com/open-iscsi/targetcli-fb/archive/v%{version}/targetcli-fb-%{version}.tar.gz
|
|
Patch01: Fix-changing-savedir-directory-mode.patch
|
|
Patch02: Avoild-print-error-stack.patch
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel python3-setuptools systemd
|
|
Requires: python3-rtslib target-restore python3-configshell python3-six python3-dbus python3-gobject-base
|
|
|
|
%description
|
|
Targetcli is an administration tool for managing storage targets
|
|
using the kernel LIO core target and compatible target fabric modules.
|
|
|
|
%package help
|
|
Summary: Help document for the %{name} package
|
|
|
|
%description help
|
|
Help document for the %{name} package.
|
|
|
|
%prep
|
|
%autosetup -n targetcli-fb-%{version} -p1
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
|
|
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
install -m 644 targetcli*.8 %{buildroot}%{_mandir}/man8/
|
|
mkdir -p %{buildroot}%{_unitdir}/
|
|
install -m 644 systemd/* %{buildroot}%{_unitdir}/
|
|
|
|
%files
|
|
%doc README.md
|
|
%license COPYING
|
|
%{python3_sitelib}/targetcli*
|
|
%{_bindir}/targetcli
|
|
%{_bindir}/targetclid
|
|
%{_unitdir}/*
|
|
%dir %{_sysconfdir}/target
|
|
%dir %{_sysconfdir}/target/backup
|
|
|
|
%files help
|
|
%{_mandir}/man8/targetcli*.8*
|
|
|
|
%changelog
|
|
* Mon Apr 8 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.54-3
|
|
- avoild Ctrl+C print error stack
|
|
|
|
* Sun Apr 7 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.54-2
|
|
- Fix changing savedir directory mode
|
|
|
|
* Wed Dec 29 2021 wulei <wulei80@huawei.com> - 2.1.54-1
|
|
- Package update
|
|
|
|
* Wed Jul 15 2020 wangyue <wangyue92@huawei.com> - 2.1.fb48-10
|
|
- fix unexpected error raised when adding luns
|
|
|
|
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 2.1.fb48-9
|
|
- Package int
|