File inosync.spec of Package inosync

# vim: set sw=4 ts=4 et nu:
# norootforbuild

Name:               inosync
Version:            0.2.3
%define tag 58cd94c
Release:            0
Summary:            Inotify Sync Daemon
Source:             http://download.github.com/hollow-inosync-v0.2.3-0-g%{tag}.tar.gz
URL:                http://github.com/hollow/inosync
Group:              Productivity/Networking/Other
License:            BSD3c
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
Requires:           rsync
Requires:           python-pyinotify
Requires:           python
BuildRequires:      python python-devel
BuildRequires:      python-pyinotify
BuildArch:          noarch

%description
System administrators have relied on cron+rsync for years to constantly
synchronize files and directories to remote machines. However, this technique
has a huge disadvantage for content distribution with near real-time
requirements, e.g. podcasts and blogging.

It is not feasible to let authors wait for their content to get synchronized
every x hours with regard to the enormous pace of articles and podcasts
nowadays.

The inosync daemon leverages the inotify service available in recent linux
kernels to monitor and synchronize changes within directories to remote nodes.

%prep
%setup -q -n "hollow-inosync-%{tag}"

%build

%install
%__install -D -m0755 inosync.py "%{buildroot}%{_bindir}/inosync"

%__install -d "%{buildroot}%{_sysconfdir}/inosync"

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc LICENSE README.rst
%doc sample_config.py
%dir %{_sysconfdir}/inosync
%{_bindir}/inosync

openSUSE Build Service is sponsored by