]> git.pld-linux.org Git - packages/ccs.git/blob - ccs.spec
- updated BRs, use optflags
[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:        0.24
5 Release:        0.1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://people.redhat.com/cfeist/cluster/tgz/%{name}-%{version}.tar.gz
9 # Source0-md5:  1df515f83510b4f5d9c0c5f70e8503cf
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
39
40 %{__perl} -pi -e 's/-O2/%{rpmcflags}/' {ccs_tool,ccs_test,lib,daemon}/Makefile
41
42 %build
43 ./configure \
44         --incdir=%{_includedir} \
45         --libdir=%{_libdir} \
46         --mandir=%{_mandir} \
47         --prefix=%{_prefix} \
48         --sbindir=%{_sbindir}
49 %{__make} \
50         CC="%{__cc}"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster
59 touch $RPM_BUILD_ROOT%{_sysconfdir}/cluster/cluster.xml
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_sbindir}/*
67 %dir %{_sysconfdir}/cluster
68 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cluster/cluster.xml
69 %{_mandir}/man5/cluster.conf.5*
70 %{_mandir}/man7/ccs.7*
71 %{_mandir}/man8/ccs*.8*
72 #%attr(754,root,root) /etc/rc.d/init.d/ccsd
73
74 %files devel
75 %defattr(644,root,root,755)
76 %{_includedir}/ccs.h
77 %{_libdir}/libccs.a
This page took 0.058025 seconds and 4 git commands to generate.