2012-08-24 19:49:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package withlock
|
|
|
|
#
|
2022-07-08 14:00:11 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-08-24 19:49:33 +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.
|
|
|
|
|
2020-08-31 14:31:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-08-24 19:49:33 +00:00
|
|
|
#
|
|
|
|
|
2014-02-11 09:25:51 +00:00
|
|
|
|
2012-08-24 19:49:33 +00:00
|
|
|
Name: withlock
|
2019-10-20 07:48:05 +00:00
|
|
|
Version: 0.5
|
2014-02-11 09:25:51 +00:00
|
|
|
Release: 0
|
2012-08-24 19:49:33 +00:00
|
|
|
Summary: A locking wrapper script
|
2014-02-11 09:25:51 +00:00
|
|
|
License: Apache-2.0
|
2012-08-24 19:49:33 +00:00
|
|
|
Group: System/Management
|
2020-08-31 14:31:31 +00:00
|
|
|
URL: https://github.com/poeml/withlock
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2019-10-20 07:48:05 +00:00
|
|
|
Patch0: fix-use-python3.patch
|
2023-01-02 08:57:55 +00:00
|
|
|
Patch1: withlock-0.5-fixboo864785.patch
|
2019-10-20 07:48:05 +00:00
|
|
|
Requires: python3
|
2012-08-24 19:49:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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 a cleanup, as after a reboot. Thus, the wrapper is safe and easy
|
|
|
|
to use, and much better than implementing half-hearted locking within scripts.
|
|
|
|
|
|
|
|
%prep
|
2019-10-20 07:48:05 +00:00
|
|
|
%autosetup -p1
|
2014-08-15 11:48:58 +00:00
|
|
|
|
2012-08-24 19:49:33 +00:00
|
|
|
%build
|
2019-10-20 07:48:05 +00:00
|
|
|
# nop
|
2012-08-24 19:49:33 +00:00
|
|
|
|
2019-10-20 07:48:05 +00:00
|
|
|
%install
|
|
|
|
install -D -m 0755 -t %{buildroot}%{_bindir}/ %{name}
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_mandir}/man1/ %{name}.1
|
2012-08-24 19:49:33 +00:00
|
|
|
|
|
|
|
%files
|
2019-10-20 07:48:05 +00:00
|
|
|
%license LICENSE-2.0.txt
|
|
|
|
%doc README.md withlock.1.html
|
2012-08-24 19:49:33 +00:00
|
|
|
%{_bindir}/%{name}
|
2019-10-20 07:48:05 +00:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2012-08-24 19:49:33 +00:00
|
|
|
|
|
|
|
%changelog
|