2016-02-11 14:11:43 +01:00
|
|
|
#
|
2016-02-22 08:57:54 +01:00
|
|
|
# spec file for package nvme-cli
|
2016-02-11 14:11:43 +01:00
|
|
|
#
|
2017-03-12 20:03:07 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-11 14:11:43 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2016-02-16 09:18:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2016-02-11 14:11:43 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: nvme-cli
|
2017-04-26 21:43:27 +02:00
|
|
|
Version: 1.2
|
2016-02-11 14:11:43 +01:00
|
|
|
Release: 0
|
2016-02-16 09:18:26 +01:00
|
|
|
Summary: Core nvme tools
|
|
|
|
License: GPL-2.0
|
2016-02-11 14:11:43 +01:00
|
|
|
Group: Hardware/Other
|
2016-02-16 09:18:26 +01:00
|
|
|
Url: https://github.com/linux-nvme/nvme-cli
|
2017-03-12 20:03:07 +01:00
|
|
|
Source: %{name}-v%{version}.tar.gz
|
2016-02-22 08:57:54 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2016-02-16 09:18:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-16 14:45:13 +02:00
|
|
|
Patch0: 0001-fabrics-add-option-to-override-drivers-queue-depth.patch
|
|
|
|
Patch1: 0002-fabrics-add-option-to-override-drivers-queue-depth-a.patch
|
2017-06-15 11:25:06 +02:00
|
|
|
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
|
2022-09-21 13:43:51 +02:00
|
|
|
|
2016-02-11 14:11:43 +01:00
|
|
|
%description
|
2016-02-16 09:18:26 +01:00
|
|
|
NVMe is a fast, scalable, direct attached storage interface. The nvme
|
|
|
|
cli rpm installs core management tools with minimal dependencies.
|
2022-01-17 10:11:39 +01:00
|
|
|
|
2016-02-11 14:11:43 +01:00
|
|
|
%prep
|
2017-03-12 20:03:07 +01:00
|
|
|
%setup -q -n %{name}-v%{version}
|
2017-05-16 14:45:13 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2017-06-15 11:25:06 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%build
|
2016-02-22 08:57:54 +01:00
|
|
|
echo %{version} > version
|
|
|
|
make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags}
|
2023-10-04 17:20:00 +02:00
|
|
|
|
2016-02-11 14:11:43 +01:00
|
|
|
%install
|
2016-02-16 09:18:26 +01:00
|
|
|
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man %{?_smp_mflags}
|
2016-02-22 08:57:54 +01:00
|
|
|
install -m 644 -D completions/bash-nvme-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/nvme
|
2022-03-22 15:12:54 +01:00
|
|
|
|
2016-02-11 14:11:43 +01:00
|
|
|
%files
|
2016-02-16 09:18:26 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md LICENSE
|
2016-02-11 14:11:43 +01:00
|
|
|
%{_sbindir}/nvme
|
2016-02-16 09:18:26 +01:00
|
|
|
%{_mandir}/man1/nvme*.1*
|
2016-02-22 08:57:54 +01:00
|
|
|
%dir %{_sysconfdir}/bash_completion.d/
|
|
|
|
%{_sysconfdir}/bash_completion.d/nvme
|
2022-01-17 10:11:39 +01:00
|
|
|
|
2016-02-11 14:11:43 +01:00
|
|
|
%changelog
|