Blame nvme-cli.spec

Andy Lutomirski 3b78aa
#%%global commit0 bdbb4da0979fbdc079cf98410cdb31cf799e83b3
Andy Lutomirski 3b78aa
#%%global shortcommit0 %%(c=%%{commit0}; echo ${c:0:7})
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
Name:           nvme-cli
Andy Lutomirski c2c6e3
Version:        1.11.1
Fedora Release Engineering 28caa9
Release:        2%{?dist}
Andy Lutomirski ec8e84
Summary:        NVMe management command line interface
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
License:        GPLv2+
Andy Lutomirski ec8e84
URL:            https://github.com/linux-nvme/nvme-cli
Andy Lutomirski 3b78aa
#Source0:        https://github.com/linux-nvme/%%{name}/archive/%%{commit0}.tar.gz
Andy Lutomirski e4e76e
Source0:        https://github.com/linux-nvme/%{name}/archive/v%{version}.tar.gz
Andy Lutomirski ec8e84
Andy Lutomirski 3b78aa
BuildRequires:  libuuid-devel
Andy Lutomirski 3b78aa
BuildRequires:  gcc
Andy Lutomirski 7f24a4
BuildRequires:  systemd-devel
Andy Lutomirski 6e21ba
Andy Lutomirski ec8e84
%description
Andy Lutomirski ec8e84
nvme-cli provides NVM-Express user space tooling for Linux.
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
%prep
Andy Lutomirski 3b78aa
#%%setup -qn %%{name}-%%{commit0}
Andy Lutomirski 3b78aa
%setup -q
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
%build
Andy Lutomirski 3b78aa
Andy Lutomirski d93a03
# CFLAGS on the command line breaks the build.  It works okay as an
Andy Lutomirski d93a03
# environment variable, though.  See:
Andy Lutomirski d93a03
# https://github.com/linux-nvme/nvme-cli/pull/480
Andy Lutomirski d93a03
CFLAGS="%{optflags}" make PREFIX=/usr LDFLAGS="%{__global_ldflags}" %{?_smp_mflags}
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
%install
Andy Lutomirski 2c04c5
%make_install PREFIX=/usr UDEVDIR="%{_udevrulesdir}/.." SYSTEMDDIR="%{_unitdir}/.."
Andy Lutomirski 07cbe4
mkdir -p %{buildroot}%{_sysconfdir}/nvme
Andy Lutomirski b308a8
Andy Lutomirski b308a8
# hostid and hostnqn are supposed to be unique per machine.  We obviously
Andy Lutomirski b308a8
# can't package them.
Andy Lutomirski 2c04c5
rm -f %{buildroot}%{_sysconfdir}/nvme/hostid
Andy Lutomirski 2c04c5
rm -f %{buildroot}%{_sysconfdir}/nvme/hostnqn
Andy Lutomirski ec8e84
Andy Lutomirski b308a8
# Do not install the dracut rule yet.  See rhbz 1742764
Andy Lutomirski b308a8
rm -f %{buildroot}/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
Andy Lutomirski b308a8
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
%files
Andy Lutomirski ec8e84
%license LICENSE
Andy Lutomirski ec8e84
%doc README.md
Andy Lutomirski ec8e84
%{_sbindir}/nvme
Andy Lutomirski ec8e84
%{_mandir}/man1/nvme*.gz
Andy Lutomirski 3b78aa
%{_datadir}/bash-completion/completions/nvme
Andy Lutomirski 12288a
%{_datadir}/zsh/site-functions/_nvme
Andy Lutomirski 07cbe4
%dir %{_sysconfdir}/nvme
Andy Lutomirski 2c04c5
%{_sysconfdir}/nvme/discovery.conf
Andy Lutomirski 2c04c5
%{_unitdir}/nvmefc-boot-connections.service
Andy Lutomirski c2c6e3
%{_unitdir}/nvmf-autoconnect.service
Andy Lutomirski 2c04c5
%{_unitdir}/nvmf-connect.target
Andy Lutomirski 2c04c5
%{_unitdir}/nvmf-connect@.service
Andy Lutomirski 2c04c5
%{_udevrulesdir}/70-nvmf-autoconnect.rules
Andy Lutomirski ffab03
%{_udevrulesdir}/71-nvmf-iopolicy-netapp.rules
Andy Lutomirski b308a8
# Do not install the dracut rule yet.  See rhbz 1742764
Andy Lutomirski b308a8
# /usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
%changelog
Fedora Release Engineering 28caa9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
Fedora Release Engineering 28caa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Fedora Release Engineering 28caa9
Andy Lutomirski c2c6e3
* Sat Apr 25 2020 luto@kernel.org - 1.11.1-1
Andy Lutomirski c2c6e3
- Update to 1.11
Andy Lutomirski c2c6e3
Andy Lutomirski ffab03
* Thu Mar 19 2020 luto@kernel.org - 1.10.1-1
Andy Lutomirski ffab03
- Update to 1.10.1
Andy Lutomirski ffab03
Fedora Release Engineering 90ab3b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-2
Fedora Release Engineering 90ab3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Fedora Release Engineering 90ab3b
Andy Lutomirski 2c04c5
* Wed Oct 02 2019 luto@kernel.org - 1.9-1
Andy Lutomirski 2c04c5
- Update to 1.9
Andy Lutomirski b308a8
- Certain fabric functionality may not work yet due to missing dracut
Andy Lutomirski b308a8
  support and missing hostid and hostnqn configuration.
Andy Lutomirski 2c04c5
Fedora Release Engineering 6087a4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
Fedora Release Engineering 6087a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Fedora Release Engineering 6087a4
Andy Lutomirski d93a03
* Mon Apr 15 2019 luto@kernel.org - 1.8.1-1
Andy Lutomirski d93a03
- Update to 1.8.1-1.
Andy Lutomirski d93a03
- Remove a build hack.
Andy Lutomirski d93a03
Andy Lutomirski 07cbe4
* Sun Feb 24 2019 luto@kernel.org - 1.7-2
Andy Lutomirski 07cbe4
- Create /etc/nvme
Andy Lutomirski 07cbe4
Andy Lutomirski 3b78aa
* Sun Feb 24 2019 luto@kernel.org - 1.7-1
Andy Lutomirski 3b78aa
- Bump to 1.7
Andy Lutomirski 3b78aa
- Clean up some trivial rpmlint complaints
Andy Lutomirski 3b78aa
Fedora Release Engineering 637080
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
Fedora Release Engineering 637080
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Fedora Release Engineering 637080
Andy Lutomirski 63300e
* Tue Jul 24 2018 luto@kernel.org - 1.6-1
Andy Lutomirski 63300e
- Update to 1.6
Andy Lutomirski 63300e
Fedora Release Engineering 89efd4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-5
Fedora Release Engineering 89efd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering 89efd4
Fedora Release Engineering 2b235a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
Fedora Release Engineering 2b235a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 2b235a
Andy Lutomirski 2ebfdd
* Wed Nov 22 2017 luto@kernel.org - 1.4-1
Andy Lutomirski 2ebfdd
- Update to 1.4
Andy Lutomirski 2ebfdd
Fedora Release Engineering ea3c20
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
Fedora Release Engineering ea3c20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering ea3c20
Fedora Release Engineering ace430
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2
Fedora Release Engineering ace430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering ace430
Andy Lutomirski a25eb8
* Mon May 22 2017 luto@kernel.org - 1.3-1
Andy Lutomirski a25eb8
- Update to 1.3
Andy Lutomirski a25eb8
Andy Lutomirski a25eb8
* Wed Apr 19 2017 luto@kernel.org - 1.2-2
Andy Lutomirski 6e21ba
- Update to 1.2
Andy Lutomirski a25eb8
- 1.2-1 never existed
Andy Lutomirski 6e21ba
Fedora Release Engineering 12e105
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
Fedora Release Engineering 12e105
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 12e105
Andy Lutomirski 903be2
* Wed Feb 01 2017 luto@kernel.org - 1.1-1
Andy Lutomirski 903be2
- Update to 1.1
Andy Lutomirski 903be2
Andy Lutomirski de28c0
* Sun Nov 20 2016 luto@kernel.org - 1.0-1
Andy Lutomirski de28c0
- Update to 1.0
Andy Lutomirski de28c0
Andy Lutomirski 0ff168
* Mon Oct 31 2016 luto@kernel.org - 0.9-1
Andy Lutomirski 0ff168
- Update to 0.9
Andy Lutomirski 0ff168
Andy Lutomirski 1fd710
* Thu Jun 30 2016 luto@kernel.org - 0.8-1
Andy Lutomirski 1fd710
- Update to 0.8
Andy Lutomirski 1fd710
Andy Lutomirski 8e1c0d
* Tue May 31 2016 luto@kernel.org - 0.7-1
Andy Lutomirski 8e1c0d
- Update to 0.7
Andy Lutomirski 8e1c0d
Andy Lutomirski 93dcb8
* Fri Mar 18 2016 luto@kernel.org - 0.5-1
Andy Lutomirski 93dcb8
- Update to 0.5
Andy Lutomirski 93dcb8
Andy Lutomirski e4e76e
* Sun Mar 06 2016 luto@kernel.org - 0.4-1
Andy Lutomirski e4e76e
- Update to 0.4
Andy Lutomirski e4e76e
Fedora Release Engineering b44adf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3.20160112gitbdbb4da
Fedora Release Engineering b44adf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Fedora Release Engineering b44adf
Andy Lutomirski ec8e84
* Wed Jan 20 2016 luto@kernel.org - 0.2-2.20160112gitbdbb4da
Andy Lutomirski ec8e84
- Update to new upstream commit, fixing #49.  "nvme list" now works.
Andy Lutomirski ec8e84
Andy Lutomirski ec8e84
* Wed Jan 13 2016 luto@kernel.org - 0.2-1.20160112gitde3e0f1
Andy Lutomirski ec8e84
- Initial import.