]>
Commit | Line | Data |
---|---|---|
75697d9a JK |
1 | # |
2 | # TODO: | |
3 | # - split into subpackages | |
dba9a42a | 4 | %include /usr/lib/rpm/macros.perl |
75697d9a | 5 | Summary: Reusable cluster fencing scripts |
dba9a42a | 6 | Summary(pl.UTF-8): Skrypty barier klastrowych wielokrotnego użytku |
75697d9a | 7 | Name: fence-agents |
106ac479 | 8 | Version: 4.0.21 |
75697d9a | 9 | Release: 1 |
cda7e7a8 | 10 | License: GPL v2+ (libraries), LGPL v2.1+ (applications) |
75697d9a | 11 | Group: Daemons |
75697d9a | 12 | Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.xz |
106ac479 | 13 | # Source0-md5: ed5376de5956fd507624ce752e06c0bd |
efe332c8 | 14 | Patch0: %{name}-check.patch |
dba9a42a JB |
15 | URL: https://fedorahosted.org/cluster/wiki/HomePage |
16 | BuildRequires: autoconf >= 2.63 | |
75697d9a | 17 | BuildRequires: automake |
dba9a42a JB |
18 | BuildRequires: libtool >= 2:2.2.6 |
19 | BuildRequires: perl-Net-Telnet | |
cda7e7a8 | 20 | BuildRequires: pkgconfig |
1b6fdf0b | 21 | BuildRequires: python-pexpect |
75697d9a | 22 | BuildRequires: python-pycurl |
106ac479 | 23 | BuildRequires: python-requests |
75697d9a | 24 | BuildRequires: python-suds |
dba9a42a JB |
25 | BuildRequires: rpm-perlprov |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
6e7db17e JB |
28 | # /usr/bin/gnutls-cli tool |
29 | Requires: gnutls | |
4192c203 JB |
30 | # XXX: is it proper dependency for cluster 4? |
31 | Requires: resource-agents >= 3.9 | |
6e7db17e JB |
32 | # /usr/bin/amttool |
33 | Suggests: amtterm | |
106ac479 JB |
34 | # /usr/sbin/corosync-cmapctl tool |
35 | Suggests: corosync | |
6e7db17e JB |
36 | # /usr/bin/ipmitool |
37 | Suggests: ipmitool | |
106ac479 JB |
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 | |
75697d9a JK |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | Scripts providing fencing facilities for cluster nodes. | |
54 | ||
dba9a42a JB |
55 | %description -l pl.UTF-8 |
56 | Skrypty zapewniające funkcjonalność barier dla węzłów klastra. | |
57 | ||
75697d9a JK |
58 | %prep |
59 | %setup -q | |
efe332c8 | 60 | %patch0 -p1 |
75697d9a JK |
61 | |
62 | %build | |
63 | %{__libtoolize} | |
106ac479 | 64 | %{__aclocal} -I make |
75697d9a JK |
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 | ||
dba9a42a | 79 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
75697d9a JK |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
cda7e7a8 | 86 | %doc ChangeLog doc/{COPYRIGHT,README.licence} |
75697d9a | 87 | %attr(755,root,root) %{_sbindir}/fence_* |
4192c203 | 88 | %attr(755,root,root) %{_libexecdir}/fence_kdump_send |
75697d9a | 89 | %{_datadir}/fence |
8dbd0ae3 | 90 | %attr(755,root,root) %{_datadir}/cluster/fence_scsi_check |
75697d9a JK |
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 | |
106ac479 | 96 | %{_datadir}/cluster/relaxng/fence2wiki.xsl |
efe332c8 | 97 | %{_datadir}/cluster/relaxng/metadata.rng |
dba9a42a | 98 | %{_mandir}/man8/fence_*.8* |