2008-11-07 03:29:35 +00:00
|
|
|
#
|
2013-09-25 12:30:18 +00:00
|
|
|
# spec file for package csync
|
2008-11-07 03:29:35 +00:00
|
|
|
#
|
2021-03-15 09:10:39 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2008-11-07 03:29:35 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-10-31 08:45:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-11-07 03:29:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: csync
|
2013-09-25 12:30:18 +00:00
|
|
|
Version: 0.50.0
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: A user level bidirectional client only file synchronizer
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2021-03-15 09:10:39 +00:00
|
|
|
URL: https://www.csync.org/
|
2008-11-07 03:29:35 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2010-02-04 10:44:42 +00:00
|
|
|
Source1: baselibs.conf
|
2013-09-25 12:30:18 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fix-cmake-on-pre-12.patch
|
|
|
|
|
Patch0: fix-cmake-on-pre-12.patch
|
2015-06-29 15:04:53 +00:00
|
|
|
Patch1: csync_log.h.patch
|
2018-10-31 08:45:36 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fix-missing-const.patch
|
|
|
|
|
Patch2: fix-missing-const.patch
|
2020-10-27 12:26:02 +00:00
|
|
|
# PATCH-FIX-OPENSUSE csync-libssh.patch -- Detect newer libssh versions; hacked patch
|
|
|
|
|
Patch3: csync-libssh.patch
|
2021-03-15 09:10:39 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libsmbclient-devel
|
|
|
|
|
BuildRequires: libssh-devel
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildRequires: sqlite3-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
%endif
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
csync is an implementation of a file synchronizer which provides the
|
|
|
|
|
feature of roaming home directories for Linux clients. csync makes use
|
|
|
|
|
of libsmbclient in Samba/Windows environments.
|
|
|
|
|
|
|
|
|
|
%package -n libcsync0
|
|
|
|
|
Summary: A user level bidirectional client only file synchronizer
|
2018-10-31 08:45:36 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: System/Libraries
|
2009-05-28 02:50:33 +00:00
|
|
|
%if 0%{?suse_version} > 1030
|
2009-01-25 00:16:01 +00:00
|
|
|
Recommends: libcsync-plugin-sftp
|
2021-03-15 09:10:39 +00:00
|
|
|
Recommends: libcsync-plugin-smb
|
2009-05-28 02:50:33 +00:00
|
|
|
%endif
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%description -n libcsync0
|
|
|
|
|
csync is an implementation of a file synchronizer which provides the
|
|
|
|
|
feature of roaming home directories for Linux clients. csync makes use
|
|
|
|
|
of libsmbclient in Samba/Windows environments.
|
|
|
|
|
|
|
|
|
|
%package -n libcsync-plugin-smb
|
|
|
|
|
Summary: SMB plugin for csync
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: System/Libraries
|
2009-01-08 17:09:32 +00:00
|
|
|
Requires: libcsync0 = %{version}
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%description -n libcsync-plugin-smb
|
|
|
|
|
This plug-in allows applications using csync to synchronize with a
|
|
|
|
|
Samba or Windows server.
|
|
|
|
|
|
|
|
|
|
%package -n libcsync-plugin-sftp
|
|
|
|
|
Summary: A user level bidirectional client only file synchronizer
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2009-01-08 17:09:32 +00:00
|
|
|
Requires: libcsync0 = %{version}
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%description -n libcsync-plugin-sftp
|
|
|
|
|
csync is an implementation of a file synchronizer which provides the
|
|
|
|
|
feature of roaming home directories for Linux clients. csync makes use
|
|
|
|
|
of libsmbclient in Samba/Windows environments.
|
|
|
|
|
|
2013-09-25 12:30:18 +00:00
|
|
|
%if 0%{?suse_version} >= 1200
|
|
|
|
|
%package -n libcsync-plugin-owncloud
|
|
|
|
|
Summary: Owncloud plugin for csync
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2013-09-25 12:30:18 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
BuildRequires: libneon-devel
|
2021-03-15 09:10:39 +00:00
|
|
|
Requires: libcsync0 = %{version}
|
2013-09-25 12:30:18 +00:00
|
|
|
|
|
|
|
|
%description -n libcsync-plugin-owncloud
|
|
|
|
|
This plug-in allows applications using csync to synchronize with Owncloud.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n libcsync-devel
|
2008-11-07 03:29:35 +00:00
|
|
|
Summary: Development files for csync
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: libcsync0 = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libcsync-devel
|
|
|
|
|
The libcsync-devel package contains the static libraries and header
|
|
|
|
|
files needed for development with csync.
|
|
|
|
|
|
|
|
|
|
%package -n libcsync-devel-doc
|
|
|
|
|
Summary: Developer documentation for csync
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
|
|
|
|
|
%description -n libcsync-devel-doc
|
|
|
|
|
The libcsync-devel-doc package provides documentation for csync
|
|
|
|
|
development.
|
|
|
|
|
|
|
|
|
|
%package -n libcsync-doc
|
|
|
|
|
Summary: User documentation for csync
|
2018-10-31 08:45:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2008-11-07 03:29:35 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
|
|
|
|
|
%description -n libcsync-doc
|
|
|
|
|
The libcsync-doc package provides user documentation for csync.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2013-09-25 12:30:18 +00:00
|
|
|
%if 0%{?suse_version} < 1200
|
2024-02-28 07:33:52 +00:00
|
|
|
%patch -P 0 -p1
|
2013-09-25 12:30:18 +00:00
|
|
|
%endif
|
2024-02-28 07:33:52 +00:00
|
|
|
%patch -P 1 -p1
|
|
|
|
|
%patch -P 2 -p1
|
2020-10-27 12:26:02 +00:00
|
|
|
if [ -f %{_includedir}/libssh/libssh_version.h ]; then
|
2024-02-28 07:33:52 +00:00
|
|
|
%patch -P 3 -p1
|
2020-10-27 12:26:02 +00:00
|
|
|
fi
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
if test ! -e "build"; then
|
2021-03-15 09:10:39 +00:00
|
|
|
mkdir build
|
2008-11-07 03:29:35 +00:00
|
|
|
fi
|
|
|
|
|
pushd build
|
2021-04-19 07:09:54 +00:00
|
|
|
export LDFLAGS="-pie"
|
2021-03-15 09:10:39 +00:00
|
|
|
# FIXME: you should use the %%cmake macros
|
2008-11-07 03:29:35 +00:00
|
|
|
cmake \
|
2009-05-28 02:50:33 +00:00
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%{optflags}" \
|
2008-11-07 03:29:35 +00:00
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2009-05-28 02:50:33 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2008-11-07 03:29:35 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
|
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
|
2021-03-15 09:10:39 +00:00
|
|
|
%if "%{_lib}" == "lib64"
|
2008-11-07 03:29:35 +00:00
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
|
%endif
|
|
|
|
|
%{_builddir}/%{name}-%{version}
|
2021-03-15 09:10:39 +00:00
|
|
|
%make_build
|
|
|
|
|
%make_build doc
|
2015-03-18 12:51:01 +00:00
|
|
|
popd
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
pushd build
|
|
|
|
|
%if 0%{?suse_version}
|
2021-03-15 09:10:39 +00:00
|
|
|
%make_install
|
2008-11-07 03:29:35 +00:00
|
|
|
%else
|
2021-03-15 09:10:39 +00:00
|
|
|
%make_install
|
2008-11-07 03:29:35 +00:00
|
|
|
%endif
|
2015-03-18 12:51:01 +00:00
|
|
|
popd
|
2008-11-07 03:29:35 +00:00
|
|
|
|
2020-10-27 12:26:02 +00:00
|
|
|
%post -n libcsync0 -p /sbin/ldconfig
|
|
|
|
|
%postun -n libcsync0 -p /sbin/ldconfig
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/csync
|
|
|
|
|
%{_mandir}/man?/csync.*
|
|
|
|
|
|
|
|
|
|
%files -n libcsync0
|
2021-03-15 09:10:39 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS INSTALL README
|
2008-11-07 03:29:35 +00:00
|
|
|
%dir %{_sysconfdir}/csync
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/csync/csync.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/csync/csync_exclude.conf
|
|
|
|
|
%{_libdir}/libcsync.so.*
|
2009-01-08 17:09:32 +00:00
|
|
|
%dir %{_libdir}/csync-0
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%files -n libcsync-plugin-smb
|
2009-01-08 17:09:32 +00:00
|
|
|
%{_libdir}/csync-0/csync_smb.so
|
2008-11-07 03:29:35 +00:00
|
|
|
|
|
|
|
|
%files -n libcsync-plugin-sftp
|
2009-01-08 17:09:32 +00:00
|
|
|
%{_libdir}/csync-0/csync_sftp.so
|
2008-11-07 03:29:35 +00:00
|
|
|
|
2013-09-25 12:30:18 +00:00
|
|
|
%if 0%{?suse_version} >= 1200
|
|
|
|
|
%files -n libcsync-plugin-owncloud
|
|
|
|
|
%{_libdir}/csync-0/csync_owncloud.so
|
|
|
|
|
%endif
|
|
|
|
|
|
2008-11-07 03:29:35 +00:00
|
|
|
%files -n libcsync-devel
|
|
|
|
|
%{_includedir}/csync
|
|
|
|
|
%{_libdir}/libcsync.so
|
|
|
|
|
|
|
|
|
|
%files -n libcsync-devel-doc
|
|
|
|
|
%doc build/doc/html
|
|
|
|
|
|
|
|
|
|
%files -n libcsync-doc
|
|
|
|
|
%{_datadir}/doc/csync
|
|
|
|
|
|
|
|
|
|
%changelog
|