targetcli/targetcli.spec

62 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-02-14 15:57:09 +08:00
Name: targetcli
License: ASL 2.0
Summary: Generic SCSI target CLI shell
2021-12-29 16:35:19 +08:00
Version: 2.1.54
2024-04-03 15:43:02 +08:00
Release: 2
2020-02-14 15:57:09 +08:00
URL: https://github.com/open-iscsi/targetcli-fb
2021-12-29 16:35:19 +08:00
Source: https://github.com/open-iscsi/targetcli-fb/archive/v%{version}/targetcli-fb-%{version}.tar.gz
2024-04-03 15:43:02 +08:00
Patch01: Fix-changing-savedir-directory-mode.patch
2020-02-14 15:57:09 +08:00
BuildArch: noarch
2021-12-29 16:35:19 +08:00
BuildRequires: python3-devel python3-setuptools systemd
Requires: python3-rtslib target-restore python3-configshell python3-six python3-dbus python3-gobject-base
2020-02-14 15:57:09 +08:00
%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
2024-04-03 15:43:02 +08:00
%autosetup -n targetcli-fb-%{version} -p1
2020-02-14 15:57:09 +08:00
%build
2021-12-29 16:35:19 +08:00
%py3_build
2020-02-14 15:57:09 +08:00
%install
2021-12-29 16:35:19 +08:00
%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}/
2020-02-14 15:57:09 +08:00
%files
2021-12-29 16:35:19 +08:00
%doc README.md
%license COPYING
%{python3_sitelib}/targetcli*
2020-02-14 15:57:09 +08:00
%{_bindir}/targetcli
2021-12-29 16:35:19 +08:00
%{_bindir}/targetclid
%{_unitdir}/*
2020-02-14 15:57:09 +08:00
%dir %{_sysconfdir}/target
%dir %{_sysconfdir}/target/backup
%files help
2021-12-29 16:35:19 +08:00
%{_mandir}/man8/targetcli*.8*
2020-02-14 15:57:09 +08:00
%changelog
2024-04-03 15:43:02 +08:00
* Sun Apr 7 2024 yanshuai <yanshuai@kylinos.cn> - 2.1.54-2
- Fix changing savedir directory mode
2021-12-29 16:35:19 +08:00
* 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
2020-02-14 15:57:09 +08:00
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 2.1.fb48-9
- Package int