]> git.pld-linux.org Git - packages/ccs.git/blobdiff - ccs.spec
- up to 2.03.11, deprecation note
[packages/ccs.git] / ccs.spec
index 89e7dc10501098133d3fa224ec708ad0598d4bef..0d5a8d7830fbdd0dec2aa4bf5418951fbbce7a46 100644 (file)
--- a/ccs.spec
+++ b/ccs.spec
@@ -1,18 +1,22 @@
+# NOTE: obsoleted by -ccs* subpackages from cluster.spec (3.x)
 Summary:       Cluster configuration system to manage the cluster config file
-Summary(pl):   System konfiguracji klastra do zarz±dzania jego plikiem konfiguracyjnym
+Summary(pl.UTF-8):     System konfiguracji klastra do zarządzania jego plikiem konfiguracyjnym
 Name:          ccs
-Version:       1.01.00
+Version:       2.03.11
 Release:       1
 License:       GPL v2
 Group:         Applications/System
 Source0:       ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
-# Source0-md5: e98551b02ee8ed46ae0ab8fca193d751
+# Source0-md5: 712b9f583472d1de614641bc0f4a0aaf
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
+Patch0:                cluster-kernel.patch
 URL:           http://sources.redhat.com/cluster/ccs/
+BuildRequires: cman-devel >= 2
 BuildRequires: libxml2-devel >= 2.0
-BuildRequires: magma-devel >= 1.0
-BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -20,44 +24,49 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Cluster configuration system to manage the cluster config file.
 
-%description -l pl
-System konfiguracji klastra do zarz±dzania jego plikiem
+%description -l pl.UTF-8
+System konfiguracji klastra do zarządzania jego plikiem
 konfiguracyjnym.
 
 %package devel
 Summary:       Header files and static library for ccs
-Summary(pl):   Pliki nag³ówkowe i biblioteka statyczna ccs
+Summary(pl.UTF-8):     Pliki nagłówkowe i biblioteka statyczna ccs
 Group:         Development/Libraries
 # doesn't require base
 
 %description devel
 Header files and static library for ccs.
 
-%description devel -l pl
-Pliki nag³ówkowe i biblioteka statyczna ccs.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i biblioteka statyczna ccs.
 
 %prep
 %setup -q -n cluster-%{version}
-cd %{name}
-%{__perl} -pi -e 's/-O2/%{rpmcflags}/' {ccs_tool,ccs_test,lib,daemon}/Makefile
+%patch0 -p1
 
 %build
-cd %{name}
 ./configure \
+       --cc="%{__cc}" \
+       --cflags="%{rpmcflags} -Wall" \
+       --ldflags="%{rpmldflags}" \
        --incdir=%{_includedir} \
+       --ncursesincdir=%{_includedir}/ncurses \
        --libdir=%{_libdir} \
+       --libexecdir=%{_libdir} \
        --mandir=%{_mandir} \
        --prefix=%{_prefix} \
-       --sbindir=%{_sbindir}
-%{__make} \
-       CC="%{__cc}"
+       --sbindir=%{_sbindir} \
+       --without_gfs \
+       --without_gfs2 \
+       --without_gnbd \
+       --without_kernel_modules
+%{__make} -C %{name}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd %{name}
 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
-%{__make} install \
+%{__make} -C %{name} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster
@@ -71,30 +80,26 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-        /etc/rc.d/init.d/%{name} restart 1>&2
-else
-        echo "Type \"/etc/rc.d/init.d/%{name} start\" to start %{name}" 1>&2
-fi
+%service %{name} restart
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/%{name} ]; then
-                /etc/rc.d/init.d/%{name} stop >&2
-        fi
-        /sbin/chkconfig --del %{name}
+       %service %{name} stop
+       /sbin/chkconfig --del %{name}
 fi
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/ccs_test
+%attr(755,root,root) %{_sbindir}/ccs_tool
+%attr(755,root,root) %{_sbindir}/ccsd
 %dir %{_sysconfdir}/cluster
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cluster/cluster.xml
 %{_mandir}/man5/cluster.conf.5*
 %{_mandir}/man7/ccs.7*
 %{_mandir}/man8/ccs*.8*
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
-%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.092551 seconds and 4 git commands to generate.