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