File vagrant-none-communicator.spec of Package vagrant-none-communicator
#
# spec file for package vagrant-none-communicator
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#
#
%global vagrant_plugin_name vagrant-none-communicator
%define mod_name %{vagrant_plugin_name}
%define mod_full_name %{vagrant_plugin_name}-%{version}
Name: %{vagrant_plugin_name}
Version: 0.1.0
Release: 0
Summary: Vagrant communicator plugin for not communicating with guests
License: MIT
URL: https://github.com/soapy1/%{name}
Source: https://github.com/soapy1/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{ruby} >= 2.5
BuildRequires: ruby-macros >= 5
BuildRequires: vagrant
Requires: vagrant
BuildArch: noarch
%description
This is a Vagrant communicator plugin that does not communicate
with the guest. Instead, it replaces all the communicator
functions with no op's. This might be useful if you have a non
standard type guest that does not support common communicator
formats such as ssh or winrm.
%package -n %{name}-doc
Summary: Documentation for %{vagrant_plugin_name}
Group: Documentation/HTML
%description -n %{name}-doc
This package contains the documentation for the %{vagrant_plugin_name} plugin.
%prep
%autosetup
# since we don't have the full git repo we can't use `git ls-files`
sed -i 's/git ls-files -z/find . -type f -print0/' %{vagrant_plugin_name}.gemspec
mv -v %{vagrant_plugin_name}.gemspec %{mod_full_name}.gemspec
%build
%{gem_build}
%install
%vagrant_plugin_install -n %{mod_full_name}.gem
for i in .github .gitignore Gemfile Rakefile LICENSE.txt CHANGELOG.md README.md; do
rm -rf %{buildroot}%{vagrant_plugin_instdir}/$i
done
%files
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{vagrant_plugin_instdir}
%{vagrant_plugin_cache}
%{vagrant_plugin_spec}
%files -n %{name}-doc
%doc %{vagrant_plugin_docdir}
%changelog