]>
Commit | Line | Data |
---|---|---|
6badcd29 ER |
1 | |
2 | %define subver rc2 | |
3 | %define rel 0.1 | |
4 | Summary: Reusable cluster components | |
5 | Name: cluster-glue | |
6 | Version: 1.0.2 | |
7 | Release: 0.%{subver}.%{rel} | |
8 | License: GPLv2+ and LGPLv2+ | |
9 | Group: Base | |
10 | URL: http://www.clusterlabs.org | |
11 | Source0: http://www.linux-ha.org/w/images/3/3d/Cluster-glue-%{version}-%{subver}.tar.bz2 | |
12 | # Source0-md5: 1f83b6bd83d9cae5310c32d14fecf2fd | |
13 | BuildRequires: OpenIPMI-devel | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: bzip2-devel | |
17 | BuildRequires: curl-devel | |
18 | #BuildRequires: docbook-dtds | |
19 | BuildRequires: docbook-style-xsl | |
20 | BuildRequires: glib2-devel | |
21 | BuildRequires: libltdl-devel | |
22 | BuildRequires: libnet-devel | |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: libtool | |
25 | BuildRequires: libuuid-devel | |
26 | BuildRequires: libxml2-devel | |
27 | BuildRequires: libxslt | |
28 | BuildRequires: net-snmp-devel >= 5.4 | |
29 | BuildRequires: openhpi-devel | |
30 | BuildRequires: openssl-devel | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: python-devel | |
33 | BuildRequires: which | |
34 | Requires: perl-TimeDate | |
35 | # Directives to allow upgrade from combined heartbeat packages | |
36 | Provides: heartbeat-pils = 3.0.0-1 | |
37 | Provides: heartbeat-stonith = 3.0.0-1 | |
38 | Obsoletes: heartbeat-common | |
39 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
40 | Obsoletes: heartbeat-stonith < 3.0.0-1 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | A collection of common tools that are useful for writing cluster | |
45 | managers such as Pacemaker. Provides a local resource manager that | |
46 | understands the OCF and LSB standards, and an interface to common | |
47 | STONITH devices. | |
48 | ||
49 | %package libs | |
50 | Summary: Reusable cluster libraries | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Obsoletes: libheartbeat2 | |
54 | ||
55 | %description libs | |
56 | A collection of libraries that are useful for writing cluster managers | |
57 | such as Pacemaker. | |
58 | ||
59 | %package libs-devel | |
60 | Summary: Headers and libraries for writing cluster managers | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: %{name}-libs = %{version}-%{release} | |
64 | Obsoletes: libheartbeat-devel | |
65 | ||
66 | %description libs-devel | |
67 | Headers and shared libraries for a useful for writing cluster managers | |
68 | such as Pacemaker. | |
69 | ||
70 | %prep | |
71 | %setup -q -n %{name}-%{version}-%{subver} | |
72 | ||
73 | %build | |
74 | %{__libtoolize} | |
75 | %{__aclocal} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %{__autoconf} | |
79 | %{__make} | |
80 | %configure \ | |
81 | --enable-fatal-warnings=yes \ | |
82 | --with-daemon-group=haclient \ | |
83 | --with-daemon-user=hacluster\ | |
84 | --docdir=%{_docdir}/%{name}-%{version} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | ## tree fix up | |
92 | # Dont package static libs | |
93 | find $RPM_BUILD_ROOT -name '*.a' -exec rm {} \; | |
94 | find $RPM_BUILD_ROOT -name '*.la' -exec rm {} \; | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post libs -p /sbin/ldconfig | |
100 | %postun libs -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) |