]> git.pld-linux.org Git - packages/ccs.git/blob - ccs.spec
- up to 2.03.11, deprecation note
[packages/ccs.git] / ccs.spec
1 # NOTE: obsoleted by -ccs* subpackages from cluster.spec (3.x)
2 Summary:        Cluster configuration system to manage the cluster config file
3 Summary(pl.UTF-8):      System konfiguracji klastra do zarządzania jego plikiem konfiguracyjnym
4 Name:           ccs
5 Version:        2.03.11
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
10 # Source0-md5:  712b9f583472d1de614641bc0f4a0aaf
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 Patch0:         cluster-kernel.patch
14 URL:            http://sources.redhat.com/cluster/ccs/
15 BuildRequires:  cman-devel >= 2
16 BuildRequires:  libxml2-devel >= 2.0
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Requires(post,preun):   /sbin/chkconfig
19 Requires:       rc-scripts
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sbindir        /sbin
23
24 %description
25 Cluster configuration system to manage the cluster config file.
26
27 %description -l pl.UTF-8
28 System konfiguracji klastra do zarządzania jego plikiem
29 konfiguracyjnym.
30
31 %package devel
32 Summary:        Header files and static library for ccs
33 Summary(pl.UTF-8):      Pliki nagłówkowe i biblioteka statyczna ccs
34 Group:          Development/Libraries
35 # doesn't require base
36
37 %description devel
38 Header files and static library for ccs.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe i biblioteka statyczna ccs.
42
43 %prep
44 %setup -q -n cluster-%{version}
45 %patch0 -p1
46
47 %build
48 ./configure \
49         --cc="%{__cc}" \
50         --cflags="%{rpmcflags} -Wall" \
51         --ldflags="%{rpmldflags}" \
52         --incdir=%{_includedir} \
53         --ncursesincdir=%{_includedir}/ncurses \
54         --libdir=%{_libdir} \
55         --libexecdir=%{_libdir} \
56         --mandir=%{_mandir} \
57         --prefix=%{_prefix} \
58         --sbindir=%{_sbindir} \
59         --without_gfs \
60         --without_gfs2 \
61         --without_gnbd \
62         --without_kernel_modules
63 %{__make} -C %{name}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
68
69 %{__make} -C %{name} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster
73 touch $RPM_BUILD_ROOT%{_sysconfdir}/cluster/cluster.xml
74
75 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
76 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post
82 /sbin/chkconfig --add %{name}
83 %service %{name} restart
84
85 %preun
86 if [ "$1" = "0" ]; then
87         %service %{name} stop
88         /sbin/chkconfig --del %{name}
89 fi
90
91 %files
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_sbindir}/ccs_test
94 %attr(755,root,root) %{_sbindir}/ccs_tool
95 %attr(755,root,root) %{_sbindir}/ccsd
96 %dir %{_sysconfdir}/cluster
97 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cluster/cluster.xml
98 %{_mandir}/man5/cluster.conf.5*
99 %{_mandir}/man7/ccs.7*
100 %{_mandir}/man8/ccs*.8*
101 %attr(754,root,root) /etc/rc.d/init.d/%{name}
102 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
103
104 %files devel
105 %defattr(644,root,root,755)
106 %{_includedir}/ccs.h
107 %{_libdir}/libccs.a
This page took 0.077204 seconds and 3 git commands to generate.