2016-02-11 14:11:43 +01:00
|
|
|
#
|
2016-02-19 10:15:02 +01:00
|
|
|
# spec file for package nvme-cli
|
2016-02-11 14:11:43 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 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
|
2016-08-22 16:07:32 +02:00
|
|
|
Version: 0.8
|
2016-02-11 14:11:43 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Core nvme tools
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: Hardware/Other
|
|
|
|
Url: https://github.com/linux-nvme/nvme-cli
|
2016-02-19 10:15:02 +01:00
|
|
|
Source: https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
|
2016-09-01 19:28:36 +02:00
|
|
|
Patch0: remove-version-from-list.patch
|
2016-02-19 10:15:02 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2016-02-11 14:11:43 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-04-14 09:24:40 +02:00
|
|
|
ExcludeArch: s390x
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
NVMe is a fast, scalable, direct attached storage interface. The nvme
|
|
|
|
cli rpm installs core management tools with minimal dependencies.
|
|
|
|
|
|
|
|
%prep
|
2016-06-01 12:30:51 +02:00
|
|
|
%setup -q
|
2016-09-01 19:28:36 +02:00
|
|
|
%patch0 -p1
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%build
|
2016-02-19 10:15:02 +01:00
|
|
|
echo %{version} > version
|
|
|
|
make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags}
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install-bin install-man %{?_smp_mflags}
|
2016-02-19 10:15:02 +01:00
|
|
|
install -m 644 -D completions/bash-nvme-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/nvme
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_sbindir}/nvme
|
|
|
|
%{_mandir}/man1/nvme*.1*
|
2016-02-19 10:15:02 +01:00
|
|
|
%dir %{_sysconfdir}/bash_completion.d/
|
|
|
|
%{_sysconfdir}/bash_completion.d/nvme
|
2016-02-11 14:11:43 +01:00
|
|
|
|
|
|
|
%changelog
|