From c8c9dd1c1de162298d0ad523cfa3455378a4291a1dcc9d7c852ef598432950c3 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Tue, 31 Jul 2018 15:16:39 +0000 Subject: [PATCH] Accepting request 625014 from home:okurz:branches:Cloud:Tools Add package installation and post-install self-test OBS-URL: https://build.opensuse.org/request/show/625014 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=46 --- cf-cli-test.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ cf-cli.changes | 5 +++++ cf-cli.spec | 3 ++- 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 cf-cli-test.spec diff --git a/cf-cli-test.spec b/cf-cli-test.spec new file mode 100644 index 0000000..b213025 --- /dev/null +++ b/cf-cli-test.spec @@ -0,0 +1,44 @@ +# +# spec file for package cf-cli-test +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define short_name cf-cli +Name: %{short_name}-test +Version: 6.37.0 +Release: 0 +Summary: Test package for Cloud Foundry command line client +License: Apache-2.0 +BuildRequires: %{short_name} == %{version} + +%description +. + +%prep +# workaround to prevent post/install failing assuming this file for whatever +# reason +touch %{_sourcedir}/%{short_name} + +%build +# call one of the components but not openqa itself which would need a valid +# configuration +cf --help + +%install +# disable debug packages in package test to prevent error about missing files +%define debug_package %{nil} + +%changelog diff --git a/cf-cli.changes b/cf-cli.changes index 26021ac..f510441 100644 --- a/cf-cli.changes +++ b/cf-cli.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jul 14 07:00:45 UTC 2018 - okurz@suse.com + +- Add package installation and post-install self-test + ------------------------------------------------------------------- Tue May 29 21:51:23 UTC 2018 - thardeck@suse.com diff --git a/cf-cli.spec b/cf-cli.spec index 79e757d..b2d91e6 100644 --- a/cf-cli.spec +++ b/cf-cli.spec @@ -23,7 +23,8 @@ %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} -Name: cf-cli +%define short_name cf-cli +Name: %{short_name} Version: 6.37.0 Release: 0 Summary: Cloud Foundry command line client