-
Notifications
You must be signed in to change notification settings - Fork 13
/
nvme-stas.spec.in
100 lines (83 loc) · 2.36 KB
/
nvme-stas.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Name: nvme-stas
Summary: NVMe STorage Appliance Services
Version: @VERSION@
Release: 1%{?dist}
License: @LICENSE@
URL: https://github.com/linux-nvme/nvme-stas
BuildArch: noarch
BuildRequires: meson
BuildRequires: glib2-devel
#BuildRequires: libnvme-devel
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
#BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros
BuildRequires: python3
#BuildRequires: python3-devel
#BuildRequires: python3-pyflakes
#BuildRequires: python3-pylint
#BuildRequires: pylint
#BuildRequires: python3-libnvme
#BuildRequires: python3-dasbus
#BuildRequires: python3-pyudev
#BuildRequires: python3-systemd
#BuildRequires: python3-gobject-devel
BuildRequires: python3-lxml
Requires: avahi
Requires: python3-libnvme
Requires: python3-dasbus
Requires: python3-pyudev
Requires: python3-systemd
Requires: python3-gobject
%description
nvme-stas is a Central Discovery Controller (CDC) client for Linux. It
handles Asynchronous Event Notifications (AEN), Automated NVMe subsystem
connection controls, Error handling and reporting, and Automatic (zeroconf)
and Manual configuration. nvme-stas is composed of two daemons:
stafd (STorage Appliance Finder) and stacd (STorage Appliance Connector).
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%meson --wrap-mode=nodownload -Dman=true -Dhtml=true
%meson_build
%install
%meson_install
%check
%meson_test
%define services stacd.service stafd.service
%pre
%service_add_pre %services
%post
%service_add_post %services
%preun
%service_del_preun %services
%postun
%service_del_postun %services
%files
%license LICENSE
%doc README.md
%dir %{_sysconfdir}/stas
%config(noreplace) %{_sysconfdir}/stas/stacd.conf
%config(noreplace) %{_sysconfdir}/stas/stafd.conf
%{_sysconfdir}/stas/sys.conf.doc
%{_datadir}/dbus-1/system.d/org.nvmexpress.*.conf
%{_bindir}/stacctl
%{_bindir}/stafctl
%{_bindir}/stasadm
%{_sbindir}/stacd
%{_sbindir}/stafd
%{_unitdir}/stacd.service
%{_unitdir}/stafd.service
%{_unitdir}/stas-config.target
%{_unitdir}/[email protected]
%dir %{python3_sitelib}/staslib
%{python3_sitelib}/staslib/*
%doc %{_pkgdocdir}
%{_mandir}/man1/sta*.1*
%{_mandir}/man5/*.5*
%{_mandir}/man7/nvme*.7*
%{_mandir}/man8/sta*.8*
%changelog
* Wed May 18 2022 Martin Belanger <[email protected]> - Release 1.1
* Thu Mar 24 2022 Martin Belanger <[email protected]> - Release 1.0-rc4
-