|
|
854f8b4 |
%vagrant_embedded_dir %{_datadir}/%{name}
|
|
|
854f8b4 |
%vagrant_dir %{vagrant_embedded_dir}/gems/gems/%{name}-%{version}
|
|
|
e30c952 |
|
|
|
a0e92dc |
# Common locations for Vagrant plugin gems
|
|
|
854f8b4 |
%vagrant_plugin_dir %{vagrant_embedded_dir}/gems
|
|
|
ebe4767 |
%vagrant_plugin_instdir %{vagrant_plugin_dir}/gems/%{vagrant_plugin_name}-%{version}%{?prerelease}
|
|
|
96d7878 |
# We are not prepared for platform dependent vagrant plugins yet.
|
|
|
a0e92dc |
# %%vagrant_plugin_extdir %%{_libdir}/%%{name}/gems/ruby/%%{vagrant_plugin_name}-%%{version}
|
|
|
a0e92dc |
%vagrant_plugin_libdir %{vagrant_plugin_instdir}/lib
|
|
|
ebe4767 |
%vagrant_plugin_cache %{vagrant_plugin_dir}/cache/%{vagrant_plugin_name}-%{version}%{?prerelease}.gem
|
|
|
ebe4767 |
%vagrant_plugin_spec %{vagrant_plugin_dir}/specifications/%{vagrant_plugin_name}-%{version}%{?prerelease}.gemspec
|
|
|
ebe4767 |
%vagrant_plugin_docdir %{vagrant_plugin_dir}/doc/%{vagrant_plugin_name}-%{version}%{?prerelease}
|
|
|
126c957 |
|
|
|
854f8b4 |
# Plugin configuration file location.
|
|
|
854f8b4 |
%vagrant_plugin_conf_dir %{_sharedstatedir}/%{name}
|
|
|
33dd917 |
# TODO: Drop the link and keep the file in %%vagrant_embedded_dir.
|
|
|
33dd917 |
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/SKJVY6KZYP24B4KOXLX3BBI5DWSJUEK5/
|
|
|
33dd917 |
%vagrant_plugin_conf_link %{vagrant_embedded_dir}/plugins.json
|
|
|
854f8b4 |
%vagrant_plugin_conf %{vagrant_plugin_conf_dir}/plugins.json
|
|
|
854f8b4 |
|
|
|
979a3eb |
# %vagrant_plugin_install - Install vagrant_plugin into appropriate directory.
|
|
|
979a3eb |
#
|
|
|
979a3eb |
# Usage: %vagrant_plugin_install [options]
|
|
|
979a3eb |
#
|
|
|
979a3eb |
# -n <gem_file> Overrides gem file name for installation.
|
|
|
979a3eb |
# -d <install_dir> Set installation directory.
|
|
|
979a3eb |
#
|
|
|
a0e92dc |
%vagrant_plugin_install(d:n:) \
|
|
|
a0e92dc |
mkdir -p %{-d*}%{!?-d:.%{vagrant_plugin_dir}} \
|
|
|
126c957 |
\
|
|
|
979a3eb |
CONFIGURE_ARGS="--with-cflags='%{optflags}' --with-cxxflags='%{optflags}' $CONFIGURE_ARGS" \\\
|
|
|
126c957 |
gem install \\\
|
|
|
126c957 |
-V \\\
|
|
|
126c957 |
--local \\\
|
|
|
b2e9d7d |
--no-user-install \\\
|
|
|
33745c5 |
--install-dir %{-d*}%{!?-d:.%{vagrant_plugin_dir}} \\\
|
|
|
33745c5 |
--bindir .%{_bindir} \\\
|
|
|
33745c5 |
--ignore-dependencies \\\
|
|
|
126c957 |
--force \\\
|
|
|
126c957 |
--document=ri,rdoc \\\
|
|
|
126c957 |
--backtrace \\\
|
|
|
ebe4767 |
%{-n*}%{!?-n:%{vagrant_plugin_name}-%{version}%{?prerelease}.gem} \
|
|
|
126c957 |
%{nil}
|