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