]> git.pld-linux.org Git - packages/csync2.git/blame - csync2.spec
- Up to 2.0.
[packages/csync2.git] / csync2.spec
CommitLineData
5b28d328 1Summary: Cluster sync tool
b391c563 2Summary(pl.UTF-8): Narzędzie do synchronizacji klastra
5b28d328 3Name: csync2
6b41a577
LM
4Version: 2.0
5Release: 1
36368c7b 6License: GPL v2+
5b28d328 7Group: Daemons
492ff691 8Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
6b41a577 9# Source0-md5: 4e189ff02af441e588ceaa7791732162
d2d621ce
PG
10Source1: %{name}.init
11Source2: %{name}.inet
12Source3: %{name}.sysconfig
492ff691 13URL: http://oss.linbit.com/csync2/
5b28d328 14BuildRequires: bison
15BuildRequires: flex
937b5387 16BuildRequires: gnutls-devel
5b28d328 17BuildRequires: librsync-devel
18BuildRequires: openssl-devel
19BuildRequires: sqlite-devel
84c5ea66 20Requires: setup > 2.4.10-4
5b28d328 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
b102ec5d
PG
23%define _sysconfdir /etc/%{name}
24
5b28d328 25%description
26Csync2 is a cluster synchronization tool. It can be used to keep files
27on multiple hosts in a cluster in sync. Csync2 can handle complex
28setups with much more than just 2 hosts, handle file deletions and can
29detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
30and server farms.
31
5a18bca3
JR
32%description -l pl.UTF-8
33Csync2 to narzędzie do synchronizacji klastra. Może być używane do
34utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
35w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
36obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
37klastrów HA, HPC, COW oraz farm serwerów.
5899c1d9 38
d2d621ce
PG
39%package -n csync2-inetd
40Summary: Files necessary to run csync2 in inetd service mode
41Summary(pl.UTF-8): Pliki niezbędne do uruchomienia csync2 w trybie usługi inetd
42Group: Networking/Daemons
43Requires: %{name} = %{version}-%{release}
44Requires: rc-inetd
45Provides: csyncd
46Provides: csyncd-inetd
47Obsoletes: csyncd
48Obsoletes: csync2-standalone
49Obsoletes: csyncd-standalone
50
51%description -n csync2-inetd
52Csync2 is a cluster synchronization tool. It can be used to keep files
53on multiple hosts in a cluster in sync. Csync2 can handle complex
54setups with much more than just 2 hosts, handle file deletions and can
55detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
56and server farms.
57
58%description -n csync2-inetd -l pl.UTF-8
59Csync2 to narzędzie do synchronizacji klastra. Może być używane do
60utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
61w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
62obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
63klastrów HA, HPC, COW oraz farm serwerów.
64
65%package -n csync2-standalone
66Summary: Files necessary to run csync2 in standalone daemon mode
67Summary(pl.UTF-8): Pliki niezbędne do uruchomienia csync2 w trybie samodzielnego serwera
68Group: Networking/Daemons
69Requires(post,preun): /sbin/chkconfig
70Requires: %{name} = %{version}-%{release}
71Provides: csyncd
72Provides: csyncd-standalone
73Obsoletes: csyncd
74Obsoletes: csync2-inetd
75Obsoletes: csyncd-inetd
76
77%description -n csync2-standalone
78Csync2 is a cluster synchronization tool. It can be used to keep files
79on multiple hosts in a cluster in sync. Csync2 can handle complex
80setups with much more than just 2 hosts, handle file deletions and can
81detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
82and server farms.
83
84%description -n csync2-standalone -l pl.UTF-8
85Csync2 to narzędzie do synchronizacji klastra. Może być używane do
86utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
87w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
88obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
89klastrów HA, HPC, COW oraz farm serwerów.
90
5b28d328 91%prep
92%setup -q
93
94%build
83edf1a1
MK
95%configure \
96 --disable-gnutls
937b5387 97%{__make}
5b28d328 98
99%install
100rm -rf $RPM_BUILD_ROOT
d2d621ce 101install -d $RPM_BUILD_ROOT{%{_var}/lib/csync2,/etc/{sysconfig/rc-inetd,rc.d/init.d}}
5b28d328 102
66e3dbf6
PG
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
d2d621ce
PG
106install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
107install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/%{name}
108install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
109
5b28d328 110%clean
111rm -rf $RPM_BUILD_ROOT
112
d2d621ce
PG
113%post -n csync2-inetd
114%service -q rc-inetd reload
115
116%postun -n csync2-inetd
117if [ "$1" = "0" ]; then
118 %service -q rc-inetd reload
119fi
120
121%post -n csync2-standalone
122/sbin/chkconfig --add csync2
123%service csync2 restart "csync2 server"
124
125%preun -n csync2-standalone
126if [ "$1" = "0" ]; then
127 %service csync2 stop
128 /sbin/chkconfig --del csync2
129fi
130
5b28d328 131%files
132%defattr(644,root,root,755)
6b41a577 133%doc AUTHORS ChangeLog README csync2.xinetd doc/csync2_paper.pdf
b102ec5d 134%dir %{_sysconfdir}
06ec8dbf 135%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csync2.cfg
5b28d328 136%attr(755,root,root) %{_sbindir}/csync2
66e3dbf6 137%attr(755,root,root) %{_sbindir}/csync2-compare
5b28d328 138%dir %{_var}/lib/csync2
06ec8dbf 139%{_mandir}/man1/*.1*
d2d621ce
PG
140
141%files -n csync2-inetd
142%defattr(644,root,root,755)
143%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/%{name}
144
145%files -n csync2-standalone
146%defattr(644,root,root,755)
147%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
148%attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.129059 seconds and 4 git commands to generate.