Blame SPECS/nvme-stas.spec

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