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