nvme-cli/nvme-cli.spec
Johannes Thumshirn f760a2e618 Accepting request 424189 from home:morbidrsa:branches:Base:System
- Don't map controller registers in 'list' command (boo#986891)
  + remove-version-from-list.patch

OBS-URL: https://build.opensuse.org/request/show/424189
OBS-URL: https://build.opensuse.org/package/show/Base:System/nvme-cli?expand=0&rev=16
2016-09-01 17:28:36 +00:00

57 lines
1.8 KiB
RPMSpec

#
# spec file for package nvme-cli
#
# 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
Version: 0.8
Release: 0
Summary: Core nvme tools
License: GPL-2.0
Group: Hardware/Other
Url: https://github.com/linux-nvme/nvme-cli
Source: https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
Patch0: remove-version-from-list.patch
BuildRequires: pkgconfig(libudev)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390x
%description
NVMe is a fast, scalable, direct attached storage interface. The nvme
cli rpm installs core management tools with minimal dependencies.
%prep
%setup -q
%patch0 -p1
%build
echo %{version} > version
make CFLAGS="%{optflags}" PREFIX=%{_prefix} %{?_smp_mflags}
%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