%global vagrant_plugin_name vagrant-rsync-back Name: %{vagrant_plugin_name} Version: 0.0.1 Release: 1%{?dist} Summary: Rsync in reverse to pull files from your Vagrant rsynced folders License: MIT URL: https://github.com/smerrill/vagrant-rsync-back Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem Requires: vagrant BuildRequires: vagrant BuildArch: noarch Provides: vagrant(%{vagrant_plugin_name}) = %{version} %description Rsync in reverse to pull files from your Vagrant rsynced folders. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %if 0%{?rhel} <= 7 gem unpack %{SOURCE0} gem specification %{SOURCE0} -l --ruby > %{gem_name}-%{version}.gemspec %endif %setup -q -D -n %{vagrant_plugin_name}-%{version} %build gem build ../%{vagrant_plugin_name}-%{version}.gemspec %vagrant_plugin_install %install mkdir -p %{buildroot}%{vagrant_plugin_dir} cp -a .%{vagrant_plugin_dir}/* \ %{buildroot}%{vagrant_plugin_dir}/ %files %dir %{vagrant_plugin_instdir} %license %{vagrant_plugin_instdir}/LICENSE %{vagrant_plugin_libdir} %exclude %{vagrant_plugin_cache} %exclude %{vagrant_plugin_instdir}/.* %{vagrant_plugin_spec} %{vagrant_plugin_instdir}/locales %files doc %if ! 0%{?rhel} <= 7 %doc %{vagrant_plugin_docdir} %endif %{vagrant_plugin_instdir}/example %{vagrant_plugin_instdir}/Rakefile %{vagrant_plugin_instdir}/Gemfile %{vagrant_plugin_instdir}/%{vagrant_plugin_name}.gemspec %doc %{vagrant_plugin_instdir}/README.md %doc %{vagrant_plugin_instdir}/CHANGELOG.md %changelog * Wed Nov 13 2019 Pavel Valena - 0.0.1-1 - Initial package