forked from pool/csync2
Accepting request 89351 from network:ha-clustering:Factory
Add csync2-rm-ssl-cert script, remove explicit lib requires (without the latter, csync2 doesn't run/install presumably due to lib version mismatch) OBS-URL: https://build.opensuse.org/request/show/89351 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/csync2?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
a8d2769fe0
commit
ce7ce5913e
21
csync2.spec
21
csync2.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package csync2 (Version 1.34)
|
||||
# spec file for package csync2
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,12 +20,13 @@ Summary: Cluster synchronization tool
|
||||
|
||||
Name: csync2
|
||||
Version: 1.34
|
||||
Release: 1
|
||||
Release: 2
|
||||
Group: Productivity/Clustering/HA
|
||||
License: GPLv2+ ; LGPLv2.1+
|
||||
Url: http://oss.linbit.com/csync2/
|
||||
Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
|
||||
Source1: csync2-README.quickstart
|
||||
Source2: csync2-rm-ssl-cert
|
||||
Patch0: csync2-fix-xinetd.patch
|
||||
Patch1: fix-missing-sentinels.diff
|
||||
%if 0%{?suse_version} > 1120
|
||||
@@ -34,7 +35,7 @@ BuildRequires: pkg-config
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(post): openssl
|
||||
Requires: xinetd libgnutls26 libgnutls-extra26 gnutls sqlite2 librsync libtasn1-3
|
||||
Requires: xinetd gnutls sqlite2
|
||||
BuildRequires: bison flex libgnutls-devel libgnutls-extra-devel librsync libtasn1-devel sqlite2-devel
|
||||
|
||||
%description
|
||||
@@ -44,12 +45,6 @@ setups with much more than just 2 hosts, handle file deletions and can
|
||||
detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
|
||||
and server farms.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Clifford Wolf <clifford@clifford.at>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .fix-xinetd
|
||||
@@ -64,17 +59,14 @@ install -p -m 644 %{SOURCE1} README.quickstart
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_var}/lib/csync2
|
||||
install -p -D -m 644 csync2.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/csync2
|
||||
install -p -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/csync2-rm-ssl-cert
|
||||
# We need these empty files to be able to %%ghost them
|
||||
touch %{buildroot}%{_sysconfdir}/csync2/csync2_ssl_key.pem
|
||||
touch %{buildroot}%{_sysconfdir}/csync2/csync2_ssl_cert.pem
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
umask 077
|
||||
if [ ! -f %{_sysconfdir}/csync2/csync2_ssl_key.pem ]; then
|
||||
@@ -112,6 +104,7 @@ fi
|
||||
%ghost %config %{_sysconfdir}/csync2/csync2_ssl_cert.pem
|
||||
%{_sbindir}/csync2
|
||||
%{_sbindir}/csync2-compare
|
||||
%{_sbindir}/csync2-rm-ssl-cert
|
||||
%{_mandir}/man1/csync2.1*
|
||||
%dir %{_var}/lib/csync2/
|
||||
|
||||
|
Reference in New Issue
Block a user