Skip to content

Commit 1197d32

Browse files
committed
Preparing 2.1-0rc1
1 parent 7293b37 commit 1197d32

File tree

3 files changed

+48
-41
lines changed

3 files changed

+48
-41
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818

1919
# Process this file with autoconf to produce a configure script.
20-
AC_INIT(csync2, 2.0, csync2@lists.linbit.com)
20+
AC_INIT(csync2, 2.1-0rc1, csync2@lists.linbit.com)
2121
AM_INIT_AUTOMAKE
2222

2323
AC_CONFIG_SRCDIR(csync2.c)

csync2.spec

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
1-
# csync2 - cluster synchronization tool, 2nd generation
2-
# Copyright (C) 2004 - 2015 LINBIT Information Technologies GmbH
3-
# http://www.linbit.com; see also AUTHORS
41
#
5-
# This program is free software; you can redistribute it and/or modify
6-
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation; either version 2 of the License, or
8-
# (at your option) any later version.
2+
# spec file for package csync2
93
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU General Public License for more details.
4+
# Copyright 2004-2020 LINBIT, Vienna, Austria
145
#
15-
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6+
# SPDX-License-Identifier: GPL-2.0-or-later
187

19-
#
20-
# spec file for package csync2 (Version 2.0)
21-
#
8+
Summary: Cluster synchronization tool
9+
License: GPL-2.0-or-later
10+
Group: Productivity/Clustering/HA
2211

23-
# norootforbuild
24-
# neededforbuild openssl openssl-devel
12+
Name: csync2
13+
Version: 2.1
14+
Release: 0rc1
15+
URL: https://github.com/LINBIT/csync2#readme
16+
Source0: %{name}-%{version}-%{release}.tar.gz
2517

26-
BuildRequires: sqlite-devel sqlite librsync gnutls-devel librsync-devel
18+
BuildRequires: autoconf
19+
BuildRequires: automake
20+
BuildRequires: bison
21+
BuildRequires: flex
22+
BuildRequires: libgnutls-devel
23+
BuildRequires: librsync-devel
24+
BuildRequires: hostname
25+
# openssl required at build time due to rpmlint checks which run postinstall script which uses openssl
26+
BuildRequires: openssl
27+
BuildRequires: pkgconfig
28+
BuildRequires: sqlite3-devel
29+
Requires: openssl
30+
Requires: sqlite3
31+
%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7
32+
BuildRequires: systemd
33+
%endif
2734

28-
Name: csync2
29-
License: GPL
30-
Group: System/Monitoring
31-
Requires: sqlite openssl librsync
32-
Autoreqprov: on
33-
Version: 2.0
34-
Release: 1
35-
Source0: csync2-%{version}.tar.gz
36-
URL: https://github.com/LINBIT/csync2#readme
37-
BuildRoot: %{_tmppath}/%{name}-%{version}-build
38-
Summary: Cluster sync tool
35+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
3936

4037
%description
4138
Csync2 is a cluster synchronization tool. It can be used to keep files on
@@ -50,29 +47,30 @@ It is expedient for HA-clusters, HPC-clusters, COWs and server farms.
5047
%build
5148
export CFLAGS="$RPM_OPT_FLAGS -I/usr/kerberos/include"
5249
if ! [ -f configure ]; then ./autogen.sh; fi
53-
%configure --enable-mysql --enable-postgres --enable-sqlite3
50+
%configure --enable-mysql --enable-postgres --enable-sqlite3 \
51+
--sysconfdir=%{_sysconfdir}/csync2 --docdir=%{_docdir}/%{name}
5452

55-
make all
53+
make %{?_smp_mflags}
5654

5755
%install
58-
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
59-
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
60-
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/csync2
61-
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
62-
6356
%makeinstall
6457

65-
install -m 644 csync2.xinetd $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/csync2
66-
install -m 644 doc/csync2.adoc $RPM_BUILD_ROOT%{_docdir}/csync2/csync2.adoc
58+
mkdir -p %{buildroot}%{_localstatedir}/lib/csync2
59+
install -m 644 doc/csync2.adoc %{buildroot}%{_docdir}/csync2/csync2.adoc
60+
install -m 644 doc/csync2-quickstart.adoc %{buildroot}%{_docdir}/csync2/csync2-quickstart.adoc
6761

6862
%clean
6963
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
7064
make clean
7165

66+
%pre
67+
%service_add_pre csync2.socket
68+
7269
%post
7370
if ! grep -q "^csync2" %{_sysconfdir}/services ; then
7471
echo "csync2 30865/tcp" >>%{_sysconfdir}/services
7572
fi
73+
%service_add_post csync2.socket
7674

7775
%files
7876
%defattr(-,root,root)
@@ -88,5 +86,8 @@ fi
8886
%config(noreplace) %{_sysconfdir}/csync2.cfg
8987

9088
%changelog
89+
* Fri Sep 18 2020 Lars Ellenberg <lars.ellenberg@linbit.com> - 2.1-1
90+
- New upstream release
91+
9192
* Tue Jan 27 2015 Lars Ellenberg <lars.ellenberg@linbit.com> - 2.0-1
9293
- New upstream release

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
csync2 (2.1~0rc1) unstable; urgency=low
2+
3+
* Preparing new Upstream Version.
4+
5+
-- Lars Ellenberg <lars.ellenberg@linbit.com> Fri, 18 Sep 2020 14:39:57 +0200
6+
17
csync2 (2.0-1) unstable; urgency=low
28

39
* Preparing new Upstream Version

0 commit comments

Comments
 (0)