|
73 | 73 |
|
74 | 74 | %bcond_without gettext
|
75 | 75 |
|
| 76 | +%bcond_without prometheus_endpoint |
| 77 | + |
76 | 78 | %global baserelease 1
|
77 | 79 |
|
78 | 80 | %global samba_version {{ samba_rpm_version }}
|
@@ -207,6 +209,9 @@ BuildRequires: libaio-devel
|
207 | 209 | BuildRequires: libarchive-devel
|
208 | 210 | BuildRequires: libattr-devel
|
209 | 211 | BuildRequires: libcap-devel
|
| 212 | +%if %{with prometheus_endpoint} |
| 213 | +BuildRequires: libevent-devel |
| 214 | +%endif |
210 | 215 | BuildRequires: libicu-devel
|
211 | 216 | BuildRequires: libcmocka-devel
|
212 | 217 | BuildRequires: libtirpc-devel
|
@@ -1207,6 +1212,9 @@ export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
|
1207 | 1212 | %endif
|
1208 | 1213 | %if %{without gettext}
|
1209 | 1214 | --without-gettext \
|
| 1215 | +%endif |
| 1216 | +%if %{with prometheus_endpoint} |
| 1217 | + --with-prometheus-exporter \ |
1210 | 1218 | %endif
|
1211 | 1219 | --with-profiling-data \
|
1212 | 1220 | --with-systemd \
|
@@ -1698,6 +1706,10 @@ fi
|
1698 | 1706 | %exclude %{_mandir}/man8/vfs_ceph_snapshots.8*
|
1699 | 1707 | %endif
|
1700 | 1708 |
|
| 1709 | +%if %{without prometheus_endpoint} |
| 1710 | +%exclude %{_mandir}/man8/smb_prometheus_endpoint.8* |
| 1711 | +%endif |
| 1712 | + |
1701 | 1713 | %attr(775,root,printadmin) %dir /var/lib/samba/drivers
|
1702 | 1714 |
|
1703 | 1715 | ### CLIENT
|
|
1725 | 1737 | %{_bindir}/smbspool
|
1726 | 1738 | %{_bindir}/smbtar
|
1727 | 1739 | %{_bindir}/smbtree
|
| 1740 | +%if %{with prometheus_endpoint} |
| 1741 | +%{_sbindir}/smb_prometheus_endpoint |
| 1742 | +%endif |
1728 | 1743 | %{_bindir}/wspsearch
|
1729 | 1744 | %dir %{_libexecdir}/samba
|
1730 | 1745 | %ghost %{_libexecdir}/samba/cups_backend_smb
|
|
1752 | 1767 | %{_mandir}/man8/cifsdd.8.*
|
1753 | 1768 | %{_mandir}/man8/samba-regedit.8*
|
1754 | 1769 | %{_mandir}/man8/smbspool.8*
|
| 1770 | +%if %{with prometheus_endpoint} |
| 1771 | +%{_mandir}/man8/smb_prometheus_endpoint.8* |
| 1772 | +%endif |
1755 | 1773 |
|
1756 | 1774 | %{_bindir}/tdbbackup
|
1757 | 1775 | %{_bindir}/tdbdump
|
|
0 commit comments