diff --git a/vagrant.spec b/vagrant.spec index 2e92750..f079e58 100644 --- a/vagrant.spec +++ b/vagrant.spec @@ -78,7 +78,7 @@ BuildRequires: rubygem(thor) BuildRequires: rubygem(webmock) BuildRequires: rubygem(fake_ftp) BuildRequires: pkgconfig(bash-completion) -%if ! %{without help2man} +%if %{with help2man} BuildRequires: help2man %endif BuildRequires: %{_bindir}/ssh @@ -194,7 +194,7 @@ install -d -m 755 %{buildroot}%{vagrant_plugin_conf_dir} touch %{buildroot}%{vagrant_plugin_conf} ln -s -t %{buildroot}%{vagrant_embedded_dir}/ %{vagrant_plugin_conf} -%if ! %{without help2man} +%if %{with help2man} # Turn `vagrant --help` into man page. export GEM_PATH="%{gem_dir}:%{buildroot}/usr/share/vagrant/gems" # Needed to display help page without a warning. @@ -346,6 +346,9 @@ end %dir %{bashcompletion_dir} %{bashcompletion_dir}/%{name} %{_rpmconfigdir}/macros.d/macros.%{name} +%if %{with help2man} +%{_mandir}/man1/%{name}.1* +%endif %files doc %doc %{vagrant_plugin_instdir}/RELEASE.md @@ -354,11 +357,10 @@ end %{vagrant_plugin_instdir}/Rakefile %{vagrant_plugin_instdir}/tasks %{vagrant_plugin_instdir}/vagrant-spec.config.example.rb -%if ! %{without help2man} -%{_mandir}/man1/%{name}.1* -%endif %changelog +- Move man pages to main package + * Wed Aug 14 2019 Pavel Valena - 2.2.5-1 - Update to Vagrant 2.2.5.