File cluster.spec of Package cluster2 (Revision 24)
Currently displaying revision 24, show latest
x
1
#!BuildIgnore: post-build-checks
2
Name: cluster
3
Version: 2.03.11
4
Release: 13
5
License: GPL
6
Group: System
7
Summary: Redhat Cluster Suite
8
Url: http://sources.redhat.com/cluster/wiki/
9
Source0: %{name}-%{version}.tar.bz2
10
Source1: %{name}-rpmlintrc
11
Patch0: cluster-cman-init.patch
12
PAtch1: cluster-gfs2-init.patch
13
Patch2: cluster-gfs-init.patch
14
Patch3: cluster-qdiskd-init.patch
15
Patch4: cluster-rgmanager-init.patch
16
Patch5: cluster-scsi_reserve.patch
17
18
BuildRoot: %{_tmppath}/%{name}-%{version}-build
19
Requires: kernel >= 2.6.27 openais sysconfig >= 0.71.11
20
BuildRequires: kernel-source
21
BuildRequires: ncurses-devel readline-devel slang-devel libxml2-devel
22
BuildRequires: libopenais-devel libvirt-devel
23
BuildRequires: udev net-snmp-devel net-snmp
24
BuildRequires: mozilla-xulrunner181-devel
25
BuildRequires: libvolume_id-devel
26
Provides: cman
27
28
%description
29
30
%package devel
31
Provides: cman-devel
32
Summary: Redhat Cluster Suite development files
33
Group: Development/Libraries
34
35
%description devel
36
37
38
%package -n gfs2-utils
39
Group: System/Filesystems
40
Summary: GFS2 utilities
41
42
%description -n gfs2-utils
43
44
%package -n gfs-utils
45
Group: System/Filesystems
46
Summary: GFS utilities
47
48
%description -n gfs-utils
49
50
%package -n gnbd-utils
51
Group: System/Filesystems
52
Summary: Global network blockdevice utils
53
54
%description -n gnbd-utils
55
56
%prep
57
%setup
58
%patch0
59
%patch1
60
%patch2
61
%patch3
62
%patch4
63
%patch5
64
65
./configure \
66
--prefix=%{_prefix} \
67
--libdir=%{_libdir} \
68
--incdir=%{_includedir} \
69
--without_kernel_modules
70
71
%build
72
%__make
73
74
%install
75
%__make DESTDIR=%{buildroot} install
76
mkdir -p %{buildroot}/%{_docdir}
77
mkdir -p %{buildroot}%{_sysconfdir}/cluster
78
mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}/%{_docdir}/
79
80
# no install-strip target
81
for file in %{buildroot}%{_sbindir}/* ; do
82
strip $file
83
done
84
for file in %{buildroot}/sbin/* ; do
85
strip $file
86
done
87
88
%clean
89
rm -rf %{buildroot}
90
91
%post -p /sbin/ldconfig
92
93
%postun -p /sbin/ldconfig
94
95
96
%files
97
%defattr(-,root,root)
98
%dir %{_sysconfdir}/cluster
99
%{_sysconfdir}/udev/rules.d/*.rules
100
%{_sbindir}/ccs*
101
%{_sbindir}/clu*
102
%{_sbindir}/cman_tool
103
%{_sbindir}/dlm*
104
%{_sbindir}/group*
105
%{_sbindir}/fence*
106
%{_sbindir}/mkqdisk
107
%{_sbindir}/qdiskd
108
%{_sbindir}/rg_test
109
%{_datadir}/%{name}
110
%{_datadir}/fence/*
111
%{_datadir}/snmp/mibs/powernet369.mib
112
%{_mandir}/man3/dlm_*.3*
113
%{_mandir}/man3/libdlm.3*
114
%{_mandir}/man5/cluster.conf.5*
115
%{_mandir}/man5/cman.5*
116
%{_mandir}/man5/qdisk.5*
117
%{_mandir}/man7/ccs.7*
118
%{_mandir}/man8/ccs*.8*
119
%{_mandir}/man8/clu*.8*
120
%{_mandir}/man8/cman_tool.8*
121
%{_mandir}/man8/dlm_*.8*
122
%{_mandir}/man8/group*.8*
123
%{_mandir}/man8/fence*.8*
124
%{_mandir}/man8/mkqdisk.8*
125
%{_mandir}/man8/qdiskd.8*
126
%{_docdir}/%{name}
127
%{_libdir}/*.so.2.3
128
/usr/libexec/lcrso/service_cman.lcrso
129
%{_sysconfdir}/init.d/cman
130
%{_sysconfdir}/init.d/qdiskd
131
%{_sysconfdir}/init.d/rgmanager
132
%{_sysconfdir}/init.d/scsi_reserve
133
134
%files devel
135
%defattr(-,root,root)
136
%{_includedir}/*.h
137
%{_libdir}/*.a
138
%{_libdir}/*.so
139
%{_libdir}/*.so.2
140
141
%files -n gfs2-utils
142
%defattr(-,root,root)
143
%{_sbindir}/gfs2_*
144
%{_sbindir}/mkfs.gfs2
145
%{_sbindir}/fsck.gfs2
146
%{_mandir}/man8/gfs2*.8*
147
%{_mandir}/man8/mkfs.gfs2.8*
148
/sbin/mount.gfs2
149
/sbin/umount.gfs2
150
%{_sysconfdir}/init.d/gfs2
151
152
%files -n gfs-utils
153
%defattr(-,root,root)
154
%{_sbindir}/gfs_*
155
%{_sbindir}/mkfs.gfs
156
%{_sbindir}/fsck.gfs
157
%{_mandir}/man8/gfs.8*
158
%{_mandir}/man8/gfs_*.8*
159
/sbin/mount.gfs
160
/sbin/umount.gfs
161
%{_sysconfdir}/init.d/gfs
162
163
%files -n gnbd-utils
164
%defattr(-,root,root)
165
%{_sbindir}/gnbd_*
166
%{_mandir}/man8/gnbd*.8*
167
168
%changelog
169
* Mon Mar 30 2009 Carsten Schoene <cs@linux-administrator.com> - 2.03.11-13
170
- build for SLE_11
171
- add scsi_reserve patch
172
- strip binarys
173
- add rpmlintrc
174
175
* Wed Feb 18 2009 Carsten Schoene <cs@linux-administrator.com>
176
- update to new release 2.03.11
177
178
* Thu Dec 11 2008 Carsten Schoene <cs@linux-administrator.com>
179
- initial package of redhat cluster suite for SLE_10
180