Sisyphus repository
Last update: 22 september 2018 | SRPMs: 18657 | Visits: 12255571
en ru br
ALT Linux repos

Group :: System/Configuration/Hardware
RPM: nvme

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define git 9c0660a

Name: nvme
Version: 1.5
Release: alt1.g%git
Summary: Core nvme tools
License: GPL
Group: System/Configuration/Hardware
Source: nvme-%version.tar
Provides: nvme-cli
BuildRequires: libuuid-devel
Requires(post): util-linux

NVMe is a fast, scalable, direct attached storage interface. The nvme
cli rpm installs core management tools with minimal dependencies.


subst 's,$(NVME_VERSION),%version-g%{git},' Makefile
CFLAGS="%optflags" \

%make install DESTDIR=%buildroot PREFIX=/usr
mkdir -p %buildroot%_sysconfdir/{bash_completion.d,%name}
mv %buildroot%_datadir/bash_completion.d/nvme %buildroot%_sysconfdir/bash_completion.d/
touch %buildroot%_sysconfdir/%name/{hostnqn,hostid}

%doc *.md LICENSE
%dir %_sysconfdir/%name
%ghost %attr(644,root,root) %config(missingok) %verify(not md5 mtime size) %_sysconfdir/%name/host*

if [ $1 = 1 ]; then # 1 : This package is being installed for the first time
               uuidgen > /etc/nvme/hostid
nvme gen-hostnqn > /etc/nvme/hostnqn


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin