]> git.pld-linux.org Git - packages/ccs.git/blob - ccs.spec
- new
[packages/ccs.git] / ccs.spec
1 Summary:        Cluster configuration system to manage the cluster config file
2 Summary(pl):    System konfiguracji klastra do zarz±dzania jego plikiem konfiguracyjnym
3 Name:           ccs
4 Version:        1.01.00
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
9 # Source0-md5:  e98551b02ee8ed46ae0ab8fca193d751
10 URL:            http://sources.redhat.com/cluster/ccs/
11 BuildRequires:  libxml2-devel >= 2.0
12 BuildRequires:  magma-devel >= 1.0
13 BuildRequires:  perl-base
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _sbindir        /sbin
17
18 %description
19 Cluster configuration system to manage the cluster config file.
20
21 %description -l pl
22 System konfiguracji klastra do zarz±dzania jego plikiem
23 konfiguracyjnym.
24
25 %package devel
26 Summary:        Header files and static library for ccs
27 Summary(pl):    Pliki nag³ówkowe i biblioteka statyczna ccs
28 Group:          Development/Libraries
29 # doesn't require base
30
31 %description devel
32 Header files and static library for ccs.
33
34 %description devel -l pl
35 Pliki nag³ówkowe i biblioteka statyczna ccs.
36
37 %prep
38 %setup -q -n cluster-%{version}
39 cd %{name}
40 %{__perl} -pi -e 's/-O2/%{rpmcflags}/' {ccs_tool,ccs_test,lib,daemon}/Makefile
41
42 %build
43 cd %{name}
44 ./configure \
45         --incdir=%{_includedir} \
46         --libdir=%{_libdir} \
47         --mandir=%{_mandir} \
48         --prefix=%{_prefix} \
49         --sbindir=%{_sbindir}
50 %{__make} \
51         CC="%{__cc}"
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 cd %{name}
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster
61 touch $RPM_BUILD_ROOT%{_sysconfdir}/cluster/cluster.xml
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_sbindir}/*
69 %dir %{_sysconfdir}/cluster
70 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cluster/cluster.xml
71 %{_mandir}/man5/cluster.conf.5*
72 %{_mandir}/man7/ccs.7*
73 %{_mandir}/man8/ccs*.8*
74 #%attr(754,root,root) /etc/rc.d/init.d/ccsd
75
76 %files devel
77 %defattr(644,root,root,755)
78 %{_includedir}/ccs.h
79 %{_libdir}/libccs.a
This page took 0.049478 seconds and 3 git commands to generate.