# # author: Enrique Martinez # license: GPL-3+ # Summary: Live sync tool based on inotify Name: clsync Version: 0.4.1 Release: 1%{?dist} License: GPL-3+ Group: Applications/System URL: https://github.com/xaionaro/clsync Source0: clsync-%{version}.tar.gz Source1: clsync.init BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: glib2-devel BuildRequires: autoconf %description 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. %package devel Summary: Development Files for clsync Group: Applications/System Requires: clsync = %{version}-%{release} %description devel 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. %prep %setup %build autoreconf -if %configure make %install make install DESTDIR=%{buildroot} install -D -p -m 0750 %{SOURCE1} %{buildroot}/etc/init.d/clsync mkdir -p %{buildroot}/etc/clsync/rules mkdir -p %{buildroot}/var/tmp/clsync/from mkdir -p %{buildroot}/var/tmp/clsync/to mkdir -p %{buildroot}/var/run/clsync cat > %{buildroot}/etc/clsync/clsync.conf < %{buildroot}/etc/clsync/rules/default < - First build for Fedora