Accepting request 619800 from home:mschnitzer:ruby
- add ruby 2.6 support OBS-URL: https://build.opensuse.org/request/show/619800 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=30
This commit is contained in:
parent
6c3d082bd4
commit
8f8a5a20e0
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 29 14:00:54 UTC 2018 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- add ruby 2.6 support
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 15 17:19:13 UTC 2018 - mrueckert@suse.de
|
Fri Jun 15 17:19:13 UTC 2018 - mrueckert@suse.de
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
%bcond_with ruby23
|
%bcond_with ruby23
|
||||||
%bcond_with ruby24
|
%bcond_with ruby24
|
||||||
%bcond_with ruby25
|
%bcond_with ruby25
|
||||||
|
%bcond_with ruby26
|
||||||
%bcond_with rubinius25
|
%bcond_with rubinius25
|
||||||
|
|
||||||
Name: rubygem-gem2rpm
|
Name: rubygem-gem2rpm
|
||||||
@ -580,6 +581,62 @@ fi
|
|||||||
%doc %{_libdir}/ruby/gems/2.5.0/doc/gem2rpm-%{version}
|
%doc %{_libdir}/ruby/gems/2.5.0/doc/gem2rpm-%{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with ruby26}
|
||||||
|
%package -n ruby2.6-rubygem-gem2rpm
|
||||||
|
Summary: Generate rpm specfiles from gems
|
||||||
|
Group: Development/Languages/Ruby
|
||||||
|
PreReq: update-alternatives
|
||||||
|
|
||||||
|
%description -n ruby2.6-rubygem-gem2rpm
|
||||||
|
Generate source rpms and rpm spec files from a Ruby Gem.
|
||||||
|
The spec file tries to follow the gem as closely as possible
|
||||||
|
|
||||||
|
%package -n ruby2.6-rubygem-gem2rpm-doc
|
||||||
|
Summary: RDoc documentation for %{mod_name}
|
||||||
|
Group: Development/Languages/Ruby
|
||||||
|
Requires: ruby2.6-rubygem-gem2rpm = %{version}
|
||||||
|
|
||||||
|
%description -n ruby2.6-rubygem-gem2rpm-doc
|
||||||
|
Documentation generated at gem installation time.
|
||||||
|
Usually in RDoc and RI formats.
|
||||||
|
|
||||||
|
|
||||||
|
%post -n ruby2.6-rubygem-gem2rpm
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
%{_bindir}/gem2rpm gem2rpm %{_bindir}/gem2rpm.ruby2.6-%{version} %{mod_weight}
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
%{_bindir}/gem2rpm-%{version} gem2rpm-%{version} %{_bindir}/gem2rpm.ruby2.6-%{version} %{mod_weight}
|
||||||
|
/usr/sbin/update-alternatives --install \
|
||||||
|
%{_bindir}/gem2rpm.ruby2.6 gem2rpm.ruby2.6 %{_bindir}/gem2rpm.ruby2.6-%{version} %{mod_weight}
|
||||||
|
|
||||||
|
%preun -n ruby2.6-rubygem-gem2rpm
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
/usr/sbin/update-alternatives --remove gem2rpm %{_bindir}/gem2rpm.ruby2.6-%{version}
|
||||||
|
/usr/sbin/update-alternatives --remove gem2rpm-%{version} %{_bindir}/gem2rpm.ruby2.6-%{version}
|
||||||
|
/usr/sbin/update-alternatives --remove gem2rpm.ruby2.6 %{_bindir}/gem2rpm.ruby2.6-%{version}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files -n ruby2.6-rubygem-gem2rpm
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_docdir}/ruby2.6-rubygem-gem2rpm
|
||||||
|
#{_bindir}/gem2rpm-opensuse
|
||||||
|
%{_bindir}/gem2rpm.ruby2.6-%{version}
|
||||||
|
%ghost %{_bindir}/gem2rpm.ruby2.6
|
||||||
|
%ghost %{_bindir}/gem2rpm-%{version}
|
||||||
|
%ghost %{_bindir}/gem2rpm
|
||||||
|
%ghost %{_sysconfdir}/alternatives/gem2rpm
|
||||||
|
%ghost %{_sysconfdir}/alternatives/gem2rpm.ruby2.6
|
||||||
|
%ghost %{_sysconfdir}/alternatives/gem2rpm-%{version}
|
||||||
|
# cache file
|
||||||
|
%{_libdir}/ruby/gems/2.6.0/cache/gem2rpm-%{version}.gem
|
||||||
|
%{_libdir}/ruby/gems/2.6.0/gems/gem2rpm-%{version}
|
||||||
|
%{_libdir}/ruby/gems/2.6.0/specifications/gem2rpm-%{version}.gemspec
|
||||||
|
|
||||||
|
%files -n ruby2.6-rubygem-gem2rpm-doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc %{_libdir}/ruby/gems/2.6.0/doc/gem2rpm-%{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with rubinius25}
|
%if %{with rubinius25}
|
||||||
%package -n rbx2.5-rubygem-gem2rpm
|
%package -n rbx2.5-rubygem-gem2rpm
|
||||||
# MANUAL
|
# MANUAL
|
||||||
|
Loading…
Reference in New Issue
Block a user