|
|
79ce4c0 |
%global github_owner poeml
|
|
|
79ce4c0 |
%global github_name withlock
|
|
|
79ce4c0 |
%global github_commit 6ffda60e1c91c591ebab41e18a4c5f1e58980f4e
|
|
|
79ce4c0 |
|
|
|
2d6fb80 |
Name: withlock
|
|
|
79ce4c0 |
Version: 0.5
|
|
|
37d10db |
Release: 14%{?dist}
|
|
|
2d6fb80 |
Summary: Locking wrapper script
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
License: ASL 2.0
|
|
|
79ce4c0 |
URL: https://github.com/%{github_owner}/%{github_name}
|
|
|
79ce4c0 |
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{version}.tar.gz
|
|
|
79ce4c0 |
# Specify /usr/bin/python3 to ensure use of py3
|
|
|
79ce4c0 |
Patch0: withlock-0.5-python3.patch
|
|
|
2d6fb80 |
BuildArch: noarch
|
|
|
79ce4c0 |
BuildRequires: gzip
|
|
|
79ce4c0 |
Requires: python3
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%description
|
|
|
2d6fb80 |
withlock is a locking wrapper script to make sure that some program
|
|
|
2d6fb80 |
isn't run more than once. It is ideal to prevent periodic jobs spawned
|
|
|
2d6fb80 |
by cron from stacking up.
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
The locks created are valid only while the wrapper is running, and
|
|
|
2d6fb80 |
thus will never require additional cleanup, even after a reboot. This
|
|
|
2d6fb80 |
makes the wrapper safe and easy to use, and much better than
|
|
|
2d6fb80 |
implementing half-hearted locking within scripts.
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%prep
|
|
|
79ce4c0 |
%autosetup -p1 -n %{github_name}-%{github_commit}
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%build
|
|
|
2d6fb80 |
# No build
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%install
|
|
|
2d6fb80 |
rm -rf %{buildroot}
|
|
|
2d6fb80 |
install -d %{buildroot}%{_bindir}
|
|
|
79ce4c0 |
install -d %{buildroot}%{_mandir}/man1
|
|
|
2d6fb80 |
install -m 0755 withlock %{buildroot}%{_bindir}
|
|
|
79ce4c0 |
install -m 0644 withlock.1 %{buildroot}%{_mandir}/man1
|
|
|
79ce4c0 |
gzip %{buildroot}%{_mandir}/man1/withlock.1
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%files
|
|
|
79ce4c0 |
%license LICENSE-2.0.txt
|
|
|
79ce4c0 |
%doc README.md
|
|
|
2d6fb80 |
%{_bindir}/withlock
|
|
|
79ce4c0 |
%{_mandir}/man1/withlock.1*
|
|
|
2d6fb80 |
|
|
|
2d6fb80 |
%changelog
|
|
|
37d10db |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-14
|
|
|
37d10db |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
37d10db |
|
|
|
cd1df50 |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-13
|
|
|
cd1df50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
cd1df50 |
|
|
|
0d91cc1 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-12
|
|
|
0d91cc1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
0d91cc1 |
|
|
|
c154510 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-11
|
|
|
c154510 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c154510 |
|
|
|
c36628f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-10
|
|
|
c36628f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
c36628f |
|
|
|
f1f5bb9 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-9
|
|
|
f1f5bb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
f1f5bb9 |
|
|
|
7d3dde0 |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-8
|
|
|
7d3dde0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7d3dde0 |
|
|
|
8081fef |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-7
|
|
|
8081fef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8081fef |
|
|
|
d166aa3 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-6
|
|
|
d166aa3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
d166aa3 |
|
|
|
76773e1 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-5
|
|
|
76773e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
76773e1 |
|
|
|
86768cc |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-4
|
|
|
86768cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
86768cc |
|
|
|
694931f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
|
|
|
694931f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
694931f |
|
|
|
dcb9438 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.5-2
|
|
|
dcb9438 |
- Rebuild for Python 3.6
|
|
|
dcb9438 |
|
|
|
79ce4c0 |
* Fri May 20 2016 Adam Williamson <awilliam@redhat.com> - 0.5-1
|
|
|
79ce4c0 |
- update to 0.5
|
|
|
79ce4c0 |
- switch to python3
|
|
|
79ce4c0 |
- package license, README and manpage
|
|
|
79ce4c0 |
|
|
|
91b228c |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
|
|
|
91b228c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
91b228c |
|
|
|
2d6fb80 |
* Wed Apr 22 2015 Adam Williamson <awilliam@redhat.com> - 0.3-1
|
|
|
2d6fb80 |
- initial package
|