|
|
0315b3 |
#%global commit0 bdbb4da0979fbdc079cf98410cdb31cf799e83b3
|
|
|
0315b3 |
#%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
0315b3 |
|
|
|
0315b3 |
Name: nvme-cli
|
|
|
35866d |
Version: 1.8.1
|
|
|
35866d |
Release: 3%{?dist}
|
|
|
0315b3 |
Summary: NVMe management command line interface
|
|
|
0315b3 |
|
|
|
0315b3 |
License: GPLv2+
|
|
|
0315b3 |
URL: https://github.com/linux-nvme/nvme-cli
|
|
|
0315b3 |
#Source0: https://github.com/linux-nvme/%{name}/archive/%{commit0}.tar.gz
|
|
|
0315b3 |
Source0: https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
|
|
|
0315b3 |
|
|
|
35866d |
Patch0: nvme-cli-fix-typo-removing-dup-are-patch
|
|
|
35866d |
Patch1: nvme-cli-regen-docs-patch
|
|
|
35866d |
Patch2: nvme-ioctl-fix-double-free-in-a-loop-of-get-property-patch
|
|
|
35866d |
Patch3: nvme-ioctl-fix-wrong-ret-case-of-get-prop-patch
|
|
|
3d9256 |
|
|
|
0729fa |
BuildRequires: libuuid-devel
|
|
|
10d9c6 |
BuildRequires: gcc
|
|
|
0315b3 |
|
|
|
0315b3 |
%description
|
|
|
0315b3 |
nvme-cli provides NVM-Express user space tooling for Linux.
|
|
|
0315b3 |
|
|
|
0315b3 |
%prep
|
|
|
0315b3 |
#%setup -qn %{name}-%{commit0}
|
|
|
0315b3 |
%setup
|
|
|
3d9256 |
%patch0 -p1
|
|
|
3d9256 |
%patch1 -p1
|
|
|
3d9256 |
%patch2 -p1
|
|
|
3d9256 |
%patch3 -p1
|
|
|
0315b3 |
|
|
|
0315b3 |
%build
|
|
|
35866d |
# NB: the -I. part works around a bug fixed up stream by commit 254bcd6b2343
|
|
|
35866d |
# ("Fix CFLAGS parameter"). Rather than patching the fix in, I just added
|
|
|
35866d |
# an extra -I. In the next release, we should be able to drop this hack.
|
|
|
35866d |
make PREFIX=/usr CFLAGS="%{optflags} -std=c99 -I." LDFLAGS="%{__global_ldflags}" %{?_smp_mflags}
|
|
|
0315b3 |
|
|
|
0315b3 |
|
|
|
0315b3 |
%install
|
|
|
0315b3 |
%make_install PREFIX=/usr
|
|
|
35866d |
mkdir -p %{buildroot}%{_sysconfdir}/nvme
|
|
|
0315b3 |
|
|
|
0315b3 |
|
|
|
0315b3 |
%files
|
|
|
0315b3 |
%license LICENSE
|
|
|
0315b3 |
%doc README.md
|
|
|
0315b3 |
%{_sbindir}/nvme
|
|
|
0315b3 |
%{_mandir}/man1/nvme*.gz
|
|
|
35866d |
%{_datadir}/bash-completion/completions/nvme
|
|
|
35866d |
%{_datadir}/zsh/site-functions/_nvme
|
|
|
35866d |
%dir %{_sysconfdir}/nvme
|
|
|
0315b3 |
|
|
|
3d9256 |
%clean
|
|
|
3d9256 |
rm -rf $RPM_BUILD_ROOT
|
|
|
3d9256 |
|
|
|
3d9256 |
%post
|
|
|
3d9256 |
if [ $1 = 1 ]; then # 1 : This package is being installed for the first time
|
|
|
3d9256 |
if [ ! -f /etc/nvme/hostnqn ]; then
|
|
|
3d9256 |
install -D /dev/null /etc/nvme/hostnqn
|
|
|
3d9256 |
echo $(nvme gen-hostnqn) > /etc/nvme/hostnqn
|
|
|
3d9256 |
chmod 644 /etc/nvme/hostnqn
|
|
|
3d9256 |
fi
|
|
|
3d9256 |
if [ ! -f /etc/nvme/hostid ]; then
|
|
|
3d9256 |
uuidgen > /etc/nvme/hostid
|
|
|
3d9256 |
fi
|
|
|
3d9256 |
fi
|
|
|
3d9256 |
|
|
|
3d9256 |
%preun
|
|
|
3d9256 |
if [ -d /etc/nvme ]; then
|
|
|
3d9256 |
rm -f /etc/nvme/hostnqn
|
|
|
3d9256 |
rm -f /etc/nvme/hostid
|
|
|
3d9256 |
if [ ! -n "`ls -A /etc/nvme`" ]; then
|
|
|
3d9256 |
rm -rf /etc/nvme
|
|
|
3d9256 |
fi
|
|
|
3d9256 |
fi
|
|
|
0315b3 |
|
|
|
0315b3 |
%changelog
|
|
|
35866d |
* Tue May 08 2019 dmilburn@redhat.com - 1.8.1-3
|
|
|
35866d |
- Fix show_regs over RDMA with get_prop fix.
|
|
|
35866d |
|
|
|
35866d |
* Mon Apr 29 2019 dmilburn@redhat.com - 1.8.1-2
|
|
|
35866d |
- Fix show_regs with upstream ioctl fix.
|
|
|
35866d |
|
|
|
35866d |
* Mon Apr 15 2019 luto@kernel.org - 1.8.1-1
|
|
|
35866d |
- Update to 1.8.1-1.
|
|
|
35866d |
- Remove a build hack.
|
|
|
35866d |
|
|
|
35866d |
* Sun Feb 24 2019 luto@kernel.org - 1.7-2
|
|
|
35866d |
- Create /etc/nvme
|
|
|
35866d |
|
|
|
35866d |
* Sun Feb 24 2019 luto@kernel.org - 1.7-1
|
|
|
35866d |
- Bump to 1.7
|
|
|
35866d |
- Clean up some trivial rpmlint complaints
|
|
|
35866d |
|
|
|
3d9256 |
* Tue Oct 16 2018 dmilburn@redhat.com - 1.6-2
|
|
|
3d9256 |
- Pull in upstream fixes
|
|
|
3d9256 |
|
|
|
10d9c6 |
* Tue Jul 24 2018 luto@kernel.org - 1.6-1
|
|
|
10d9c6 |
- Update to 1.6
|
|
|
10d9c6 |
|
|
|
10d9c6 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-5
|
|
|
10d9c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
10d9c6 |
|
|
|
10d9c6 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
|
|
|
10d9c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
10d9c6 |
|
|
|
fdae88 |
* Wed Nov 22 2017 luto@kernel.org - 1.4-1
|
|
|
fdae88 |
- Update to 1.4
|
|
|
fdae88 |
|
|
|
fdae88 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
|
|
|
fdae88 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
fdae88 |
|
|
|
fdae88 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
|
|
|
fdae88 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
fdae88 |
|
|
|
0729fa |
* Mon May 22 2017 luto@kernel.org - 1.3-1
|
|
|
0729fa |
- Update to 1.3
|
|
|
0729fa |
|
|
|
0729fa |
* Wed Apr 19 2017 luto@kernel.org - 1.2-2
|
|
|
0729fa |
- Update to 1.2
|
|
|
0729fa |
- 1.2-1 never existed
|
|
|
0729fa |
|
|
|
0729fa |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
|
|
0729fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0729fa |
|
|
|
0729fa |
* Wed Feb 01 2017 luto@kernel.org - 1.1-1
|
|
|
0729fa |
- Update to 1.1
|
|
|
0729fa |
|
|
|
0729fa |
* Sun Nov 20 2016 luto@kernel.org - 1.0-1
|
|
|
0729fa |
- Update to 1.0
|
|
|
0729fa |
|
|
|
0729fa |
* Mon Oct 31 2016 luto@kernel.org - 0.9-1
|
|
|
0729fa |
- Update to 0.9
|
|
|
0729fa |
|
|
|
0729fa |
* Thu Jun 30 2016 luto@kernel.org - 0.8-1
|
|
|
0729fa |
- Update to 0.8
|
|
|
0729fa |
|
|
|
0315b3 |
* Tue May 31 2016 luto@kernel.org - 0.7-1
|
|
|
0315b3 |
- Update to 0.7
|
|
|
0315b3 |
|
|
|
0315b3 |
* Fri Mar 18 2016 luto@kernel.org - 0.5-1
|
|
|
0315b3 |
- Update to 0.5
|
|
|
0315b3 |
|
|
|
0315b3 |
* Sun Mar 06 2016 luto@kernel.org - 0.4-1
|
|
|
0315b3 |
- Update to 0.4
|
|
|
0315b3 |
|
|
|
0315b3 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3.20160112gitbdbb4da
|
|
|
0315b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0315b3 |
|
|
|
0315b3 |
* Wed Jan 20 2016 luto@kernel.org - 0.2-2.20160112gitbdbb4da
|
|
|
0315b3 |
- Update to new upstream commit, fixing #49. "nvme list" now works.
|
|
|
0315b3 |
|
|
|
0315b3 |
* Wed Jan 13 2016 luto@kernel.org - 0.2-1.20160112gitde3e0f1
|
|
|
0315b3 |
- Initial import.
|