SPECS: cman.spec - up to 2.00.00; bcond libonly

zbyniu zbyniu at pld-linux.org
Mon Apr 2 20:14:34 CEST 2007


Author: zbyniu                       Date: Mon Apr  2 18:14:34 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 2.00.00; bcond libonly

---- Files affected:
SPECS:
   cman.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/cman.spec
diff -u SPECS/cman.spec:1.13 SPECS/cman.spec:1.14
--- SPECS/cman.spec:1.13	Mon Feb 12 22:23:51 2007
+++ SPECS/cman.spec	Mon Apr  2 20:14:29 2007
@@ -1,15 +1,20 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with     libonly		# build package only with lib (needed bootstrap with ccs)
+#
 Summary:	General-purpose symmetric cluster manager
 Summary(pl.UTF-8):	Zarządca symetrycznych klastrów ogólnego przeznaczenia
 Name:		cman
-Version:	1.03.00
+Version:	2.00.00
 Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
-# Source0-md5:	8eea23df70d2007c4fb8c234cfea49cf
+# Source0-md5:	2ef3f4ba9d3c87b50adfc9b406171085
 URL:		http://sources.redhat.com/cluster/cman/
-BuildRequires:	ccs-devel
+%{!?with_libonly:BuildRequires:	ccs-devel}
+BuildRequires:	openais-devel
 BuildRequires:	perl-base
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -63,9 +68,6 @@
 
 %prep
 %setup -q -n cluster-%{version}
-install -d %{name}/include/cluster
-ln -s . %{name}/include/cluster/cluster
-install %{name}-kernel/src/cnxman-socket.h %{name}/include/cluster
 
 cd %{name}
 %{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
@@ -74,12 +76,13 @@
 %build
 cd %{name}
 ./configure \
+	--ccsincdir="$PWD/../ccs/lib" \
 	--incdir=%{_includedir} \
 	--libdir=%{_libdir} \
 	--mandir=%{_mandir} \
 	--prefix=%{_prefix} \
 	--sbindir=%{_sbindir}
-%{__make} \
+%{__make} %{?with_libonly:-C lib} \
 	CC="%{__cc}" \
 	incdir=`pwd`/include
 
@@ -87,12 +90,9 @@
 rm -rf $RPM_BUILD_ROOT
 cd %{name}
 
-%{__make} install \
+%{__make} %{?with_libonly:-C lib} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_includedir}/cluster
-install include/cluster/cnxman-socket.h $RPM_BUILD_ROOT%{_includedir}/cluster
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -101,8 +101,9 @@
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/*
+%{!?with_libonly:%attr(755,root,root) %{_sbindir}/*}
 %attr(755,root,root) %{_libdir}/libcman.so.*.*
+%if %{without libonly}
 %{_mandir}/man5/cman.5*
 %{_mandir}/man5/qdisk.5*
 %{_mandir}/man8/cman_tool.8*
@@ -110,13 +111,11 @@
 %{_mandir}/man8/qdiskd.8*
 #%attr(754,root,root) /etc/rc.d/init.d/cman
 #%attr(754,root,root) /etc/rc.d/init.d/qdiskd
+%endif
 
 %files devel
 %defattr(644,root,root,755)
-# XXX dir shared with dml-devel
-%dir %{_includedir}/cluster
 %{_includedir}/*.h
-%{_includedir}/cluster/*.h
 %attr(755,root,root) %{_libdir}/libcman.so
 
 %files static
@@ -129,6 +128,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2007/04/02 18:14:29  zbyniu
+- up to 2.00.00; bcond libonly
+
 Revision 1.13  2007/02/12 21:23:51  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cman.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list