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