Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
cluster-glue
cluster-glue.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cluster-glue.spec of Package cluster-glue
# # spec file for package cluster-glue (Version 0.9) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define uid 90 %define gname haclient %define uname hacluster %define nogroup nobody %define nogroup nogroup Name: cluster-glue Summary: Reusable cluster components Version: 0.9 Release: 1 License: GPL v2 or later ; LGPL v2.1 or later Url: http://www.linux-ha.org Group: Productivity/Clustering/HA Source: cluster-glue.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: on BuildRequires: autoconf automake e2fsprogs-devel glib2-devel libtool libxml2-devel pkgconfig python-devel BuildRequires: libcurl-devel libnet net-snmp-devel # OpenIPMI-devel openhpi-devel Requires(pre): /usr/sbin/groupadd /usr/bin/getent /usr/sbin/useradd %description A collection of common tools derived from the Heartbeat project that are useful for writing cluster managers such as Pacemaker. Provides a local resource manager that understands the OCF and LSB standards, and an interface to common STONITH devices. %package -n libglue1 License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later Summary: The Pacemaker scalable High-Availability cluster resource manager Group: Productivity/Clustering/HA Requires: %{name} = %{version}-%{release} %description -n libglue1 A collection of libraries that are useful for writing cluster managers such as Pacemaker. %package -n libglue-devel License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later Summary: The Pacemaker scalable High-Availability cluster resource manager Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} Requires: libglue1 = %{version}-%{release} %description -n libglue-devel Headers and shared libraries for a useful for writing cluster managers such as Pacemaker. %prep ########################################################### %setup -n cluster-glue -q ########################################################### %build CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" export CFLAGS ./autogen.sh %configure --enable-fatal-warnings=no --with-daemon-group=%{gname} --with-daemon-user=%{uname} --docdir=%{_docdir} export MAKE="make %{?jobs:-j%jobs}" make %{?jobs:-j%jobs} ########################################################### %install ########################################################### make DESTDIR=$RPM_BUILD_ROOT install # Dont package static libs or compiled python find $RPM_BUILD_ROOT -name '*.a' -type f -print0 | xargs -0 rm -f find $RPM_BUILD_ROOT -name '*.la' -type f -print0 | xargs -0 rm -f find $RPM_BUILD_ROOT -name '*.pyc' -type f -print0 | xargs -0 rm -f find $RPM_BUILD_ROOT -name '*.pyo' -type f -print0 | xargs -0 rm -f ########################################################### %clean ########################################################### if [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] then rm -rf $RPM_BUILD_ROOT fi rm -rf $RPM_BUILD_DIR/cluster-glue ########################################################### %pre if getent group %{gname} >/dev/null then : OK group haclient already present else /usr/sbin/groupadd -o -r -g %{uid} %{gname} 2>/dev/null || : fi if getent passwd %{uname} >/dev/null then : OK hacluster user already present else /usr/sbin/useradd -r -g %{gname} -c "heartbeat processes" \ -d %{_var}/lib/heartbeat/cores/%{uname} -o -u %{uid} \ %{uname} 2>/dev/null || : fi %post -n libglue1 /sbin/ldconfig %postun -n libglue1 /sbin/ldconfig %files ########################################################### %defattr(-,root,root) %dir %{_libdir}/heartbeat %dir %{_var}/lib/heartbeat %dir %{_var}/lib/heartbeat/cores %dir %attr (0700, root, root) %{_var}/lib/heartbeat/cores/root %dir %attr (0700, nobody, %{nogroup}) %{_var}/lib/heartbeat/cores/nobody %dir %attr (0700, %{uname}, %{gname}) %{_var}/lib/heartbeat/cores/%{uname} %dir %{_libdir}/heartbeat/plugins %dir %{_libdir}/heartbeat/plugins/RAExec %dir %{_libdir}/heartbeat/plugins/InterfaceMgr %dir %{_libdir}/stonith %dir %{_libdir}/stonith/plugins %dir %{_libdir}/stonith/plugins/stonith2 %{_sbindir}/ha_logger %{_sbindir}/lrmadmin %{_sbindir}/meatclient %{_sbindir}/stonith %doc %{_docdir}/stonith %doc %{_mandir}/man8/* %doc %{_mandir}/man1/* %doc AUTHORS %doc COPYING %{_libdir}/heartbeat/lrmd %{_libdir}/heartbeat/ha_logd %{_libdir}/heartbeat/plugins/RAExec/*.so %{_libdir}/heartbeat/plugins/InterfaceMgr/*.so %{_libdir}/stonith/plugins/external %{_libdir}/stonith/plugins/stonith2/*.so %{_libdir}/stonith/plugins/stonith2/*.py %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper %files -n libglue1 %defattr(-,root,root) %{_libdir}/lib*.so.* %doc AUTHORS %doc COPYING.LIB %files -n libglue-devel %defattr(-,root,root) %dir %{_libdir}/glue %dir %{_libdir}/glue/plugins %dir %{_libdir}/glue/plugins/test %dir %{_libdir}/heartbeat %dir %{_datadir}/glue %{_libdir}/lib*.so %{_libdir}/heartbeat/ipctest %{_libdir}/heartbeat/ipctransientclient %{_libdir}/heartbeat/ipctransientserver %{_libdir}/heartbeat/transient-test.sh %{_libdir}/heartbeat/base64_md5_test %{_libdir}/heartbeat/logtest %{_includedir}/clplumbing %{_includedir}/heartbeat %{_includedir}/stonith %{_includedir}/pils %{_datadir}/glue/lrmtest %{_libdir}/glue/plugins/test/test.so %doc AUTHORS %doc COPYING %doc COPYING.LIB %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor