From 27fd6949fc696ec69c5b8ce9bead8d588c71c2ce27534f7bada68793a5a033d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 11 Feb 2014 09:25:51 +0000 Subject: [PATCH] Accepting request 221721 from home:poeml - withlock is now distributed as a tarball, which is generally easier for packaging on some platforms (at least Solaris). The only other change: updated copyright year. OBS-URL: https://build.opensuse.org/request/show/221721 OBS-URL: https://build.opensuse.org/package/show/Base:System/withlock?expand=0&rev=4 --- withlock-0.2.tar.gz | 3 +++ withlock.changes | 7 +++++++ withlock.spec | 14 ++++++++------ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 withlock-0.2.tar.gz diff --git a/withlock-0.2.tar.gz b/withlock-0.2.tar.gz new file mode 100644 index 0000000..466f47c --- /dev/null +++ b/withlock-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9395ecbed705b17db4472b884aa31c28dd14d9727733c9cabe4678483a758cde +size 2336 diff --git a/withlock.changes b/withlock.changes index ba7562e..0543320 100644 --- a/withlock.changes +++ b/withlock.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 10 21:49:18 UTC 2014 - poeml@cmdline.net + +- withlock is now distributed as a tarball, which is generally + easier for packaging on some platforms (at least Solaris). The + only other change: updated copyright year. + ------------------------------------------------------------------- Mon Aug 27 09:07:26 UTC 2012 - cfarrell@suse.com diff --git a/withlock.spec b/withlock.spec index b61d7a5..72da357 100644 --- a/withlock.spec +++ b/withlock.spec @@ -1,7 +1,7 @@ # # spec file for package withlock # -# Copyright (c) 2009-2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,15 +15,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: withlock Version: 0.2 -Release: 1 -License: Apache-2.0 +Release: 0 Summary: A locking wrapper script -Url: http://code.google.com/p/withlock/ +License: Apache-2.0 Group: System/Management +Url: http://code.google.com/p/withlock/ Requires: python -Source0: %{name} +Source0: http://mirrorbrain.org/files/releases/%{name}-%{version}.tar.gz Source1: %name-README.SuSE BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -38,11 +39,12 @@ 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 +%setup # %build # %install -install -Dm755 %{SOURCE0} %{buildroot}%{_bindir}/%{name} +install -Dm755 withlock %{buildroot}%{_bindir}/%{name} install -Dm644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}/README.SuSE sed -i "s|/usr/bin/env python|%{_bindir}/python|g" %{buildroot}%{_bindir}/%{name}