nvme-cli/nvme-cli.spec

74 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nvme-cli
#
Accepting request 563246 from Base:System - 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 (forwarded request 563245 from morbidrsa) OBS-URL: https://build.opensuse.org/request/show/563246 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nvme-cli?expand=0&rev=22
2018-01-10 23:38:04 +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 563246 from Base:System - 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 (forwarded request 563245 from morbidrsa) OBS-URL: https://build.opensuse.org/request/show/563246 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nvme-cli?expand=0&rev=22
2018-01-10 23:38:04 +01:00
Version: 1.5
Release: 0
Summary: NVM Express user space tools
License: GPL-2.0
Group: Hardware/Other
Url: https://github.com/linux-nvme/nvme-cli
Source: %{name}-v%{version}.tar.gz
BuildRequires: asciidoc
BuildRequires: libuuid-devel
BuildRequires: xmlto
BuildRequires: pkgconfig(libudev)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: 0001-nvme-cli-add-NetApp-plugin.patch
Patch2: 0002-nvme-cli-add-netapp-smdevices-man-page.patch
%description
NVM Express (NVMe) is a direct attached storage interface. The
nvme-cli package contains core management tools with minimal
dependencies.
%prep
%setup -q -n %{name}-v%{version}
%patch1 -p1
%patch2 -p1
%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