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