nvme-cli/nvme-cli.spec

70 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nvme-cli
#
Accepting request 563245 from home:morbidrsa - Update to version v1.5 (FATE#322735): * Remove upstreamed patches: - 0001-nvme-Introduce-new-list-subsys-command.patch - 0009-fabrics-also-set-queue_size-and-nr_io_queues-on-conn.patch * fabrics: also set queue_size and nr_io_queues on connect-all connects * nvme-cli: add duplicate_connect parameter support * nvme-cli : wdc-plugin Add support for WDC SN100 and SN200 devices. * Add AEN decoder helper to get-log * Regen documentation * Add Nix(OS) install instructions to the README * Fix the Markdown code for the Alpine install instructions * nvme-cli: make address print format more human-readable * intel-nvme: Fix compiler errors and warnings * Include sizing data in json output that's already included in the non-json results. * Cleanup variable definitions * Add command effects log page * Increase default format timeout * Revert "nvme-cli: add duplicate_connect parameter support" * nvme-cli: add duplicate_connect parameter support * nvme-cli: fix wrong bitmask in number of rpmb units. * nvme-cli: make command description const * nvme/id-ns: do not try to get namespace id from non-block device. * Fix typo in previous commit * Fix long suffix parse on 32-bit machines * Nitpicked a printing alignment issue with the id-ns vendor specific field * Avoid unnecessary abbreviation. * nvme/flush: explicitely close file descriptor * Fix memory leak * Add 'DEAC' support to write-zeroes command * Rebuild documentation OBS-URL: https://build.opensuse.org/request/show/563245 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=48
2018-01-10 11:31:09 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nvme-cli
Accepting request 642268 from home:morbidrsa - Update to version v1.6 (FATE#326139, FATE#326434, FATE#326558): * Release 1.6 * lightnvm: fix type coercion * fix reservation report 0's based dword count * nvme.c, list_ns: use le32_to_cpu in display * nvme-cli: adjust memset size for data buffer in submit_io * fabrics: omit newline character when reading nvme host nqn * fabrics: fail early if argconfig_parse failed * nvme-cli: print firmware activation notices support bit to id_ctrl * nvme-cli: add support of RAE * Add a single get-property command for NVMeOF. * nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance * nvme-cli: add support for DLFEAT * intel: fix latency stats printing * Update doc * nvme-cli: add changed-ns-list-log documentation * nvme-cli: add changed log ns support * NVMe-CLI Fix id-ns fpi field when Human Readable option selected. * Fix format specifier for 32-bit * Fix json output of 128-bit numbers * Replace host-gen telemetry short-option 'h' with 'g' * Add man pages for new device self test commands * Updating version to 1.1 * nvme-cli: Implement printing get NOPSC feature * nvme-cli: Implement printing the get Keep Alive Timer feature * nvme-cli: Implement printing the get host controlled thermal management feature. * nvme-cli: Implement printing the get timestamp feature. * Adding ppc big endian support * Revert "nvme-cli: Wait for device file if not present after successful add_ctrl" * Revert "nvme-cli: Add ioctl retry support for "connect-all"" OBS-URL: https://build.opensuse.org/request/show/642268 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=59
2018-10-17 15:52:08 +02:00
Version: 1.6
Release: 0
Summary: NVM Express user space tools
License: GPL-2.0-only
Group: Hardware/Other
Url: https://github.com/linux-nvme/nvme-cli
Accepting request 642268 from home:morbidrsa - Update to version v1.6 (FATE#326139, FATE#326434, FATE#326558): * Release 1.6 * lightnvm: fix type coercion * fix reservation report 0's based dword count * nvme.c, list_ns: use le32_to_cpu in display * nvme-cli: adjust memset size for data buffer in submit_io * fabrics: omit newline character when reading nvme host nqn * fabrics: fail early if argconfig_parse failed * nvme-cli: print firmware activation notices support bit to id_ctrl * nvme-cli: add support of RAE * Add a single get-property command for NVMeOF. * nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance * nvme-cli: add support for DLFEAT * intel: fix latency stats printing * Update doc * nvme-cli: add changed-ns-list-log documentation * nvme-cli: add changed log ns support * NVMe-CLI Fix id-ns fpi field when Human Readable option selected. * Fix format specifier for 32-bit * Fix json output of 128-bit numbers * Replace host-gen telemetry short-option 'h' with 'g' * Add man pages for new device self test commands * Updating version to 1.1 * nvme-cli: Implement printing get NOPSC feature * nvme-cli: Implement printing the get Keep Alive Timer feature * nvme-cli: Implement printing the get host controlled thermal management feature. * nvme-cli: Implement printing the get timestamp feature. * Adding ppc big endian support * Revert "nvme-cli: Wait for device file if not present after successful add_ctrl" * Revert "nvme-cli: Add ioctl retry support for "connect-all"" OBS-URL: https://build.opensuse.org/request/show/642268 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=59
2018-10-17 15:52:08 +02:00
Source: %{name}-%{version}.tar.gz
BuildRequires: asciidoc
BuildRequires: libuuid-devel
BuildRequires: xmlto
BuildRequires: pkgconfig(libudev)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
NVM Express (NVMe) is a direct attached storage interface. The
nvme-cli package contains core management tools with minimal
dependencies.
%prep
Accepting request 642268 from home:morbidrsa - Update to version v1.6 (FATE#326139, FATE#326434, FATE#326558): * Release 1.6 * lightnvm: fix type coercion * fix reservation report 0's based dword count * nvme.c, list_ns: use le32_to_cpu in display * nvme-cli: adjust memset size for data buffer in submit_io * fabrics: omit newline character when reading nvme host nqn * fabrics: fail early if argconfig_parse failed * nvme-cli: print firmware activation notices support bit to id_ctrl * nvme-cli: add support of RAE * Add a single get-property command for NVMeOF. * nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance * nvme-cli: add support for DLFEAT * intel: fix latency stats printing * Update doc * nvme-cli: add changed-ns-list-log documentation * nvme-cli: add changed log ns support * NVMe-CLI Fix id-ns fpi field when Human Readable option selected. * Fix format specifier for 32-bit * Fix json output of 128-bit numbers * Replace host-gen telemetry short-option 'h' with 'g' * Add man pages for new device self test commands * Updating version to 1.1 * nvme-cli: Implement printing get NOPSC feature * nvme-cli: Implement printing the get Keep Alive Timer feature * nvme-cli: Implement printing the get host controlled thermal management feature. * nvme-cli: Implement printing the get timestamp feature. * Adding ppc big endian support * Revert "nvme-cli: Wait for device file if not present after successful add_ctrl" * Revert "nvme-cli: Add ioctl retry support for "connect-all"" OBS-URL: https://build.opensuse.org/request/show/642268 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=59
2018-10-17 15:52:08 +02:00
%setup -q -n %{name}-%{version}
%build
echo %{version} > version
make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags} all
%install
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man %{?_smp_mflags}
install -m 644 -D /dev/null %{buildroot}%{_sysconfdir}/nvme/hostnqn
install -m 644 -D completions/bash-nvme-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/nvme
%post
if [ ! -e %{_sysconfdir}/nvme/hostnqn ]; then
%{_sbindir}/nvme gen-hostnqn > %{_sysconfdir}/nvme/hostnqn
fi
if [ ! -e %{_sysconfdir}/nvme/hostid ]; then
%{_bindir}/uuidgen > %{_sysconfdir}/nvme/hostid
fi
%files
%defattr(-,root,root)
%doc README.md LICENSE
%{_sbindir}/nvme
%{_mandir}/man1/nvme*.1*
%dir %{_sysconfdir}/bash_completion.d/
%{_sysconfdir}/bash_completion.d/nvme
%dir %{_sysconfdir}/nvme/
%ghost %{_sysconfdir}/nvme/hostnqn
%ghost %{_sysconfdir}/nvme/hostid
%changelog