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