Blob Blame History Raw
Name:           withlock
Version:        0.3
Release:        1%{?dist}
Summary:        Locking wrapper script

Group:          Applications/System
License:        ASL 2.0
URL:            https://code.google.com/p/withlock/
Source0:        http://mirrorbrain.org/files/releases/%{name}-%{version}.tar.gz
# Use /usr/bin/python2 not /usr/bin/python, it's not agnostic
Patch0:         withlock-0.3-python2.patch
BuildArch:      noarch
Requires:       python2

%description
withlock is a locking wrapper script to make sure that some program
isn't run more than once. It is ideal to prevent periodic jobs spawned
by cron from stacking up.

The locks created are valid only while the wrapper is running, and
thus will never require additional cleanup, even after a reboot. This
makes the wrapper safe and easy to use, and much better than
implementing half-hearted locking within scripts.

%prep
%setup -q
%patch0 -p1

%build
# No build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir}
install -m 0755 withlock %{buildroot}%{_bindir}

%files
%{_bindir}/withlock

%changelog
* Wed Apr 22 2015 Adam Williamson <awilliam@redhat.com> - 0.3-1
- initial package