|
|
8b0ac9 |
# RHEL 8 compatibility
|
|
|
8b0ac9 |
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
Name: nvme-stas
|
|
|
8b0ac9 |
Summary: NVMe STorage Appliance Services
|
|
|
6ac808 |
Version: 2.1.1
|
|
|
6ac808 |
Release: 1%{?dist}
|
|
|
8b0ac9 |
License: ASL 2.0
|
|
|
8b0ac9 |
URL: https://github.com/linux-nvme/nvme-stas
|
|
|
8b0ac9 |
Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
BuildArch: noarch
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
BuildRequires: meson >= 0.57.0
|
|
|
8b0ac9 |
BuildRequires: glib2-devel
|
|
|
6ac808 |
BuildRequires: libnvme-devel >= 1.2
|
|
|
8b0ac9 |
BuildRequires: libxslt
|
|
|
8b0ac9 |
BuildRequires: docbook-style-xsl
|
|
|
8b0ac9 |
BuildRequires: systemd-devel
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
BuildRequires: python3-devel
|
|
|
8b0ac9 |
#BuildRequires: python3-pyflakes
|
|
|
8b0ac9 |
#BuildRequires: python3-pylint
|
|
|
8b0ac9 |
#BuildRequires: pylint
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
BuildRequires: python3-libnvme
|
|
|
8b0ac9 |
BuildRequires: python3-dasbus
|
|
|
8b0ac9 |
BuildRequires: python3-pyudev
|
|
|
8b0ac9 |
BuildRequires: python3-systemd
|
|
|
8b0ac9 |
BuildRequires: python3-gobject-devel
|
|
|
8b0ac9 |
BuildRequires: python3-lxml
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
Requires: avahi
|
|
|
6ac808 |
Requires: python3-libnvme >= 1.2
|
|
|
8b0ac9 |
Requires: python3-dasbus
|
|
|
8b0ac9 |
Requires: python3-pyudev
|
|
|
8b0ac9 |
Requires: python3-systemd
|
|
|
8b0ac9 |
Requires: python3-gobject
|
|
|
8b0ac9 |
Requires: python3-lxml
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%description
|
|
|
8b0ac9 |
nvme-stas is a Central Discovery Controller (CDC) client for Linux. It
|
|
|
8b0ac9 |
handles Asynchronous Event Notifications (AEN), Automated NVMe subsystem
|
|
|
8b0ac9 |
connection controls, Error handling and reporting, and Automatic (zeroconf)
|
|
|
8b0ac9 |
and Manual configuration. nvme-stas is composed of two daemons:
|
|
|
8b0ac9 |
stafd (STorage Appliance Finder) and stacd (STorage Appliance Connector).
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%prep
|
|
|
8b0ac9 |
%autosetup -p1 -n %{name}-%{version_no_tilde}
|
|
|
6ac808 |
sed -i meson.build -e "s/subdir('test')//"
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%build
|
|
|
8b0ac9 |
%meson -Dman=true -Dhtml=true
|
|
|
8b0ac9 |
%meson_build
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%install
|
|
|
8b0ac9 |
%meson_install
|
|
|
8b0ac9 |
mv %{buildroot}/%{_sysconfdir}/stas/sys.conf.doc %{buildroot}/%{_sysconfdir}/stas/sys.conf
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%post
|
|
|
8b0ac9 |
%systemd_post stacd.service
|
|
|
8b0ac9 |
%systemd_post stafd.service
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%preun
|
|
|
8b0ac9 |
%systemd_preun stacd.service
|
|
|
8b0ac9 |
%systemd_preun stafd.service
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%postun
|
|
|
8b0ac9 |
%systemd_postun_with_restart stacd.service
|
|
|
8b0ac9 |
%systemd_postun_with_restart stafd.service
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%files
|
|
|
8b0ac9 |
%license LICENSE
|
|
|
8b0ac9 |
%doc README.md
|
|
|
8b0ac9 |
%dir %{_sysconfdir}/stas
|
|
|
8b0ac9 |
%config(noreplace) %{_sysconfdir}/stas/stacd.conf
|
|
|
8b0ac9 |
%config(noreplace) %{_sysconfdir}/stas/stafd.conf
|
|
|
8b0ac9 |
%config(noreplace) %{_sysconfdir}/stas/sys.conf
|
|
|
8b0ac9 |
%{_datadir}/dbus-1/system.d/org.nvmexpress.*.conf
|
|
|
8b0ac9 |
%{_bindir}/stacctl
|
|
|
8b0ac9 |
%{_bindir}/stafctl
|
|
|
8b0ac9 |
%{_bindir}/stasadm
|
|
|
8b0ac9 |
%{_sbindir}/stacd
|
|
|
8b0ac9 |
%{_sbindir}/stafd
|
|
|
8b0ac9 |
%{_unitdir}/stacd.service
|
|
|
8b0ac9 |
%{_unitdir}/stafd.service
|
|
|
8b0ac9 |
%{_unitdir}/stas-config.target
|
|
|
8b0ac9 |
%{_unitdir}/stas-config@.service
|
|
|
8b0ac9 |
%dir %{python3_sitelib}/staslib
|
|
|
8b0ac9 |
%{python3_sitelib}/staslib/*
|
|
|
8b0ac9 |
%doc %{_pkgdocdir}/html
|
|
|
8b0ac9 |
%{_mandir}/man1/sta*.1*
|
|
|
8b0ac9 |
%{_mandir}/man5/*.5*
|
|
|
8b0ac9 |
%{_mandir}/man7/nvme*.7*
|
|
|
8b0ac9 |
%{_mandir}/man8/sta*.8*
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
%changelog
|
|
|
6ac808 |
* Fri Jan 13 2023 John Meneghini <jmeneghi@redhat.com> - 2.1.1-1
|
|
|
6ac808 |
- Update to the v2.1.1 package
|
|
|
6ac808 |
|
|
|
6ac808 |
* Tue Nov 08 2022 Maurizio Lombardi <mlombard@redhat.com> - 2.0-1
|
|
|
6ac808 |
- Update to the latest v2.0 package
|
|
|
6ac808 |
|
|
|
8b0ac9 |
* Thu Aug 04 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.1.6-3
|
|
|
8b0ac9 |
- Sync with the official 1.1.6 version
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Wed Jul 27 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.1.6-2
|
|
|
8b0ac9 |
- Rebuild for CentOS Stream
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Wed Jul 20 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.1.6-1
|
|
|
8b0ac9 |
- Update to version 1.1.6
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Mon Jun 27 2022 Maurizio Lombardi <mlombard@redhat.com> - 1.1.4-1
|
|
|
8b0ac9 |
- Update to version 1.1.4
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Wed Apr 20 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0-1
|
|
|
8b0ac9 |
- Upstream v1.0 official release
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Tue Apr 05 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc7-1
|
|
|
8b0ac9 |
- Upstream v1.0 Release Candidate 7
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Fri Mar 25 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc5-1
|
|
|
8b0ac9 |
- Upstream v1.0 Release Candidate 5
|
|
|
8b0ac9 |
|
|
|
8b0ac9 |
* Mon Mar 07 2022 Tomas Bzatek <tbzatek@redhat.com> - 1.0~rc3-1
|
|
|
8b0ac9 |
- Upstream v1.0 Release Candidate 3
|