]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - split into subpackages | |
4 | %include /usr/lib/rpm/macros.perl | |
5 | Summary: Reusable cluster fencing scripts | |
6 | Summary(pl.UTF-8): Skrypty barier klastrowych wielokrotnego użytku | |
7 | Name: fence-agents | |
8 | Version: 4.0.21 | |
9 | Release: 1 | |
10 | License: GPL v2+ (libraries), LGPL v2.1+ (applications) | |
11 | Group: Daemons | |
12 | Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: ed5376de5956fd507624ce752e06c0bd | |
14 | Patch0: %{name}-check.patch | |
15 | URL: https://fedorahosted.org/cluster/wiki/HomePage | |
16 | BuildRequires: autoconf >= 2.63 | |
17 | BuildRequires: automake | |
18 | BuildRequires: libtool >= 2:2.2.6 | |
19 | BuildRequires: perl-Net-Telnet | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: python-pexpect | |
22 | BuildRequires: python-pycurl | |
23 | BuildRequires: python-requests | |
24 | BuildRequires: python-suds | |
25 | BuildRequires: rpm-perlprov | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | # /usr/bin/gnutls-cli tool | |
29 | Requires: gnutls | |
30 | # XXX: is it proper dependency for cluster 4? | |
31 | Requires: resource-agents >= 3.9 | |
32 | # /usr/bin/amttool | |
33 | Suggests: amtterm | |
34 | # /usr/sbin/corosync-cmapctl tool | |
35 | Suggests: corosync | |
36 | # /usr/bin/ipmitool | |
37 | Suggests: ipmitool | |
38 | # /sbin/vgs | |
39 | Suggests: lvm2 | |
40 | # /sbin/mpathpersist | |
41 | Suggests: multipath-tools | |
42 | # /usr/bin/snmpget, /usr/bin/snmpset, /usr/bin/snmpwalk | |
43 | Suggests: net-snmp-tools | |
44 | Suggests: openssh-clients | |
45 | # /usr/bin/sg_persist, /usr/bin/sg_turs | |
46 | Suggests: sg3_utils | |
47 | Suggests: sudo | |
48 | Suggests: telnet | |
49 | # /usr/bin/nova - seems not used | |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | Scripts providing fencing facilities for cluster nodes. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Skrypty zapewniające funkcjonalność barier dla węzłów klastra. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | %patch0 -p1 | |
61 | ||
62 | %build | |
63 | %{__libtoolize} | |
64 | %{__aclocal} -I make | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure | |
69 | ||
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | rmdir $RPM_BUILD_ROOT/var/run/cluster | |
78 | ||
79 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc ChangeLog doc/{COPYRIGHT,README.licence} | |
87 | %attr(755,root,root) %{_sbindir}/fence_* | |
88 | %attr(755,root,root) %{_libexecdir}/fence_kdump_send | |
89 | %{_datadir}/fence | |
90 | %attr(755,root,root) %{_datadir}/cluster/fence_scsi_check | |
91 | %dir %{_datadir}/cluster/relaxng | |
92 | %{_datadir}/cluster/relaxng/fence.rng.head | |
93 | %{_datadir}/cluster/relaxng/fence.rng.tail | |
94 | %{_datadir}/cluster/relaxng/fence2man.xsl | |
95 | %{_datadir}/cluster/relaxng/fence2rng.xsl | |
96 | %{_datadir}/cluster/relaxng/fence2wiki.xsl | |
97 | %{_datadir}/cluster/relaxng/metadata.rng | |
98 | %{_mandir}/man8/fence_*.8* |