# Generated from vagrant-sshfs-1.1.0.gem by gem2rpm -*- rpm-spec -*- %global vagrant_plugin_name vagrant-guest-cygwin %{?scl:%scl_package %{vagrant_plugin_name}} %{!?scl:%global pkg_name %{name}} Name: %{?scl_prefix}%{vagrant_plugin_name} Version: 0.1.1 Release: 2%{?dist} Summary: Vagrant plugin for cygwin guest support License: MIT URL: https://github.com/zzambers/%{vagrant_plugin_name} Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem %{?scl:Requires: %scl_runtime} Requires: %{?scl_prefix}vagrant >= 1.9.1 BuildRequires: %{?scl_prefix_ruby}ruby(release) BuildRequires: %{?scl_prefix}vagrant >= 1.9.1 BuildRequires: %{?scl_prefix_ruby}rubygems-devel BuildRequires: %{?scl_prefix_ruby}rubygem(rdoc) BuildArch: noarch Provides: %{?scl_prefix}vagrant(%{vagrant_plugin_name}) = %{version} %description This is plugin for vagrant which adds support for cygwin guests. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %{?scl:scl enable %{scl} - << \EOFSCL} gem unpack %{SOURCE0} %{?scl:EOFSCL} %{?scl:scl enable %{scl} - << \EOFSCL} gem spec --local --ruby %{SOURCE0} > %{vagrant_plugin_name}-%{version}.gemspec %{?scl:EOFSCL} %setup -q -D -T -n %{vagrant_plugin_name}-%{version} %build %{?scl:scl enable %{scl} - << \EOFSCL} gem build ../%{vagrant_plugin_name}-%{version}.gemspec %{?scl:EOFSCL} %{?scl:scl enable %{scl} - << \EOFSCL} %vagrant_plugin_install %{?scl:EOFSCL} %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} # %%{vagrant_plugin_instdir}/locales %exclude %{vagrant_plugin_cache} %{vagrant_plugin_spec} # Ingore some files that probbaly shouldn't be in the gem %exclude %{vagrant_plugin_instdir}/.gitignore # %exclude %%{vagrant_plugin_instdir}/test # %exclude %%{vagrant_plugin_instdir}/features # %exclude %%{vagrant_plugin_instdir}/build.sh %posttrans export GEM_PATH="%{gem_dir}:%{vagrant_embedded_dir}/gems" %{?scl:scl enable %{scl} - << \EOFSCL} %vagrant_plugin_register %{vagrant_plugin_name} %{?scl:EOFSCL} %preun export GEM_PATH="%{gem_dir}:%{vagrant_embedded_dir}/gems" %{?scl:scl enable %{scl} - << \EOFSCL} %vagrant_plugin_unregister %{vagrant_plugin_name} %{?scl:EOFSCL} %files doc %license %{vagrant_plugin_instdir}/LICENSE %doc %{vagrant_plugin_docdir} %{vagrant_plugin_instdir}/Gemfile %doc %{vagrant_plugin_instdir}/README.md # %%doc %%{vagrant_plugin_instdir}/RELEASE.txt %{vagrant_plugin_instdir}/Rakefile %{vagrant_plugin_instdir}/vagrant-guest-cygwin.gemspec %changelog * Thu Mar 24 2022 Zdeněk Žamberský - 0.1.1-2 - Made rhel-7 scl compatible * Thu Mar 24 2022 Zdeněk Žamberský - 0.1.1 - Updated to 0.1.1 * Thu Mar 24 2022 Zdeněk Žamberský - 0.1.0 - Initial commit