nvme-cli/nvme-cli.spec

66 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nvme-cli
#
# Copyright (c) 2017 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 490163 from home:morbidrsa - Update to version v1.2 (FATE#322735 ,bsc#1033410): * Include endian.h for byte/host order functions * nvme-cli: Add nvme hostnqn generation option * nvme.spec/debian: Auto generate host nqn as part of install * Documentation: Add entry for gen-hostnqn * Regenerate Documentation * Fix read/write man pages * get-features: Don't try to read the data buffer for sel == 3 * Documentation: fix location of device reset * Regen documentation * Remove debian/ directory * Remove pyc files generated by 'make test' * Moving the bash completion files to the standard * lightnvm: default to -1 on lun begin and end * nvme-cli: fabrics: Fix to pass "host_traddr" to the kernel driver. * nvme-cli: id-ctrl: Fix memory leak for JSON. * nvme-cli: id-ns: Fix memory leak for JSON. * nvme-cli: error-log: Fix memory leak for JSON. * nvme-cli: resv-report: Fix memory leak. * nvme-cli: smart-log: Fix memory leak for JSON. * nvme-cli: fw-log: Fix memory leak for JSON. * nvme-cli: json_add_smart_log(): Fix memory leak for JSON. * nvme-cli: smart-log: Allow negative values for temp sensors. * Don't print unimplemented sensor * Build without uuid * get-ns-id: Exit when no device provided. * nvme-cli: id-ctrl: Add vendor fields in JSON id-ctrl. * nvme-cli: nvme.c: Allow plug-ins to access to output formats and helper. * nvme-cli: Western Digital/HGST plug-in. * nvme-cli: Western Digital/HGST plug-in documentation. OBS-URL: https://build.opensuse.org/request/show/490163 OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=22
2017-04-24 09:45:15 +02:00
Version: 1.2
Release: 0
Summary: Core nvme 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: xmlto
BuildRequires: pkgconfig(libudev)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
Patch1: 0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch
Patch2: add-missing-nvme_id_crtl-fileds.patch
Patch3: 0003-nvme-cli-show-more-fields-for-id-ctrl.patch
Patch4: 0004-nvme-cli-id-ctrl-display-additional-fields.patch
%description
NVMe is a fast, scalable, direct attached storage interface. The nvme
cli rpm installs core management tools with minimal dependencies.
%prep
%setup -q -n %{name}-v%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -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 completions/bash-nvme-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/nvme
%files
%defattr(-,root,root)
%doc README.md LICENSE
%{_sbindir}/nvme
%{_mandir}/man1/nvme*.1*
%dir %{_sysconfdir}/bash_completion.d/
%{_sysconfdir}/bash_completion.d/nvme
%changelog