Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37402386
en ru br
ALT Linux repos
S:0.4.5-alt4

Group :: File tools
RPM: clsync

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Original author: Enrique Martinez <enmaca at hotmail.com>
# For other authors see git log
# license: GPL-3+

%global _unpackaged_files_terminate_build 1
%ifarch aarch64 armh %mips
%def_disable seccomp
%else
%def_enable seccomp
%endif

# clsync handles IPO including LTO on its own,

# interference is not welcome
%define optflags_lto %nil

Name: clsync
Version: 0.4.5
Release: alt4

Summary: Live sync tool based on inotify
License: GPLv3+
Group: File tools

Url: https://github.com/clsync/clsync
Source0: %name-%version.tar

BuildRequires: glib2-devel libcap-devel libcgroup-devel
BuildRequires: doxygen graphviz

%define common_descr \
Live sync tool based on inotify, written in GNU C \
Clsync recursively watches for source directory and executes external \
program to sync the changes. Clsync is adapted to use together with rsync. \
This utility is much more lightweight than competitors and supports such\
features as separate queue for big files, regex file filter, \
multi-threading.

%description
%common_descr

%package devel
Summary: Development files for clsync
Group: Development/C
Requires: clsync = %EVR

%description devel
%common_descr

This package provides clsync development files.

%package -n libclsync
Summary: Control and monitoring library for clsync
Group: Development/C

%description -n libclsync
%common_descr

This package provides libclsync control and monitoring interface library.

%package -n libclsync-devel
Summary: Development files for the control and monitoring library for clsync
Group: Development/C
Requires: libclsync = %EVR

%description -n libclsync-devel
%common_descr

This package provides development files for the libclsync control and
monitoring interface library.

%package -n libclsync-devel-static
Summary: Static development files for the control and monitoring library for clsync
Group: Development/C
Requires: libclsync = %EVR

%description -n libclsync-devel-static
%common_descr

This package provides static development files for the libclsync control and
monitoring interface library.

%package examples
Summary: Examples for clsync
Group: Documentation
Buildarch: noarch

%description examples
%common_descr

This package provides config and usage examples for clsync.

%package apidocs
Summary: API documentation for clsync
Group: Development/Documentation
Buildarch: noarch

%description apidocs
%common_descr

This package provides doxygen API documentation for clsync.


%prep
%setup

%build
%autoreconf
%configure \
--enable-socket-library \
--enable-clsync \
--disable-debug \
--enable-paranoid=1 \
--without-bsm \
--without-kqueue \
--enable-capabilities \
--disable-cluster \
--enable-socket \
--enable-highload-locks \
--enable-lto \
--enable-unshare \
%{subst_enable seccomp} \
--with-libcgroup \
--without-gio \
--with-inotify=native \
--without-mhash
%make_build
doxygen .doxygen

%install
%makeinstall_std

install -Dpm755 alt/%name.init %buildroot%_initdir/%name
install -Dpm644 alt/%name.sysconf %buildroot%_sysconfdir/sysconfig/%name
install -Dpm644 alt/%name.conf %buildroot%_sysconfdir/%name/%name.conf
install -Dpm644 "examples/%name at .service" %buildroot%_unitdir/%name at .service

mv doc/doxygen/html %buildroot%_docdir/%name/

%post
%post_service %name

%preun
%preun_service %name

%files
%_bindir/*
%doc %_docdir/%name
%exclude %_docdir/%name/examples
%exclude %_docdir/%name/html
%_man1dir/%name.1*
%_sysconfdir/sysconfig/%name
%config(noreplace) %_sysconfdir/%name/%name.conf
%_initdir/%name
%_unitdir/%name at .service

%files devel
%_includedir/%name/

%files -n libclsync
%_libdir/lib%name.so.0*

%files -n libclsync-devel
%_includedir/lib%name/
%_libdir/lib%name.so
%_pkgconfigdir/lib%name.pc

%files -n libclsync-devel-static
%_libdir/lib%name.a

%files examples
%_docdir/%name/examples

%files apidocs
%_docdir/%name/html

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin