8 Commits

Author SHA256 Message Date
7f9becb95d Accepting request 1324213 from network:ha-clustering:Factory
- (jsc#PED-14855) Fix packages for Immutable Mode - csync2
- Strip binary.

OBS-URL: https://build.opensuse.org/request/show/1324213
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/csync2?expand=0&rev=25
2025-12-22 21:52:32 +00:00
22ccd68435 Fix the spec
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=67
2025-12-22 17:30:42 +00:00
0146bfe0e5 Fix tmp configuration file
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=66
2025-12-22 16:45:54 +00:00
f02e4c1755 - Strip binary.
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=65
2025-12-22 16:29:00 +00:00
41063b1943 Fix spec
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=64
2025-12-22 16:24:26 +00:00
b815256850 Fix spec
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=63
2025-12-22 14:40:17 +00:00
71455c5557 Add missed file
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=62
2025-12-22 14:36:24 +00:00
6678d2e62e - (jsc#PED-14855) Fix packages for Immutable Mode - csync2
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=61
2025-12-22 14:35:42 +00:00
3 changed files with 18 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 22 14:35:07 UTC 2025 - Peter Varkoly <varkoly@suse.com>
- (jsc#PED-14855) Fix packages for Immutable Mode - csync2
- Strip binary.
-------------------------------------------------------------------
Wed Apr 7 19:21:54 UTC 2021 - Peter Varkoly <varkoly@suse.com>

1
csync2.conf Normal file
View File

@@ -0,0 +1 @@
d /var/lib/csync2 0755 root root -

View File

@@ -1,7 +1,7 @@
#
# spec file for package csync2
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,10 +23,10 @@ Summary: Cluster synchronization tool
License: GPL-2.0-or-later
Group: Productivity/Clustering/HA
URL: http://oss.linbit.com/csync2/
#Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.bz2
Source1: csync2-README.quickstart
Source2: csync2-rm-ssl-cert
Source3: csync2.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@@ -61,20 +61,26 @@ autoreconf -fvi
--docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%check
make check
%install
%make_install
mkdir -p %{buildroot}%{_localstatedir}/lib/csync2
install -p -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README.quickstart
install -p -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/csync2-rm-ssl-cert
mkdir -p %{buildroot}%_tmpfilesdir/
install -p -m 644 %{SOURCE3} %{buildroot}%_tmpfilesdir/
mkdir -p %{buildroot}%{_unitdir}
# 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
/usr/bin/strip %{buildroot}%{_sbindir}/%{name}
%pre
%service_add_pre csync2.socket csync2@.service
%post
%tmpfiles_create %_tmpfilesdir/csync2.conf
%service_add_post csync2.socket csync2@.service
umask 077
if [ ! -f %{_sysconfdir}/csync2/csync2_ssl_key.pem ]; then
@@ -111,14 +117,15 @@ fi
%{_sbindir}/csync2-compare
%{_unitdir}/csync2.socket
%{_unitdir}/csync2@.service
%dir %{_localstatedir}/lib/csync2/
# Using docdir here ensures correct doc file tagging
%{_docdir}/%{name}
%dir %{_sysconfdir}/csync2/
%config(noreplace) %{_sysconfdir}/csync2/csync2.cfg
%ghost %config %{_sysconfdir}/csync2/csync2_ssl_key.pem
%ghost %config %{_sysconfdir}/csync2/csync2_ssl_cert.pem
%ghost %dir %attr(0755,root,root) /var/lib/csync2
%{_sbindir}/csync2-rm-ssl-cert
%{_mandir}/man1/csync2.1*
%_tmpfilesdir/%{name}.conf
%changelog