fix /usr/local/bin/ruby shebangs in gems [release 2.7.1-3mamba;Thu Jul 02 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:32:37 +01:00
parent bd007820e1
commit ab0ee40630

122
ruby.spec
View File

@ -3,32 +3,34 @@
Name: ruby Name: ruby
Epoch: 1 Epoch: 1
Version: 2.5.3 Version: 2.7.1
Release: 1mamba Release: 3mamba
Summary: An interpreted scripting language for quick and easy object-oriented programming Summary: An interpreted scripting language for quick and easy object-oriented programming
Group: Applications/Development Group: Applications/Development
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com> Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.ruby-lang.org URL: https://www.ruby-lang.org
Source0: https://cache.ruby-lang.org/pub/ruby/%{majorminor}/ruby-%{version}.tar.xz Source0: https://cache.ruby-lang.org/pub/ruby/%{majorminor}/ruby-%{version}.tar.xz
Patch: ruby-2.3.4-api_break_rb_thread_fd_close.patch Patch: ruby-2.3.4-api_break_rb_thread_fd_close.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libdb53-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: libgdbm-devel BuildRequires: libgdbm-devel
BuildRequires: libgmp-devel BuildRequires: libgmp-devel
BuildRequires: libncurses-devel BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: libreadline-devel BuildRequires: libreadline-devel
BuildRequires: libtcl-devel
BuildRequires: libtk-devel
BuildRequires: libX11-devel
BuildRequires: libyaml-devel BuildRequires: libyaml-devel
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: groff BuildRequires: groff
Provides: ruby-bundler
Obsoletes: ruby-bundler
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
@ -36,18 +38,33 @@ Ruby is the interpreted scripting language for quick and easy object-oriented pr
It has many features to process text files and to do system management tasks. It has many features to process text files and to do system management tasks.
It is simple, straight-forward, extensible, and portable. It is simple, straight-forward, extensible, and portable.
%package devel %package -n lib%{name}
Summary: Development files for the powerful language Ruby Summary: Ruby shared libraries
Group: Development/Libraries Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description -n lib%{name}
Ruby is the interpreted scripting language for quick and easy object-oriented programming.
It has many features to process text files and to do system management tasks.
It is simple, straight-forward, extensible, and portable.
This package contains Ruby's library files.
%package -n lib%{name}-devel
Summary: Development files for the powerful language Ruby
Group: Development/Libraries
Provides: %{name}-devel
Obsoletes: %{name}-devel
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
Ruby is the interpreted scripting language for quick and easy object-oriented programming. Ruby is the interpreted scripting language for quick and easy object-oriented programming.
It has many features to process text files and to do system management tasks. It has many features to process text files and to do system management tasks.
It is simple, straight-forward, extensible, and portable. It is simple, straight-forward, extensible, and portable.
This package contains Ruby's devel files. This package contains Ruby's devel files.
#% debug_package
%prep %prep
%setup -q %setup -q
#%patch0 -p1 #%patch0 -p1
@ -75,24 +92,41 @@ echo "\
%%ruby_sitearch %%(%{__ruby} -rrbconfig -e 'puts RbConfig::CONFIG[\"sitearchdir\"]')" \ %%ruby_sitearch %%(%{__ruby} -rrbconfig -e 'puts RbConfig::CONFIG[\"sitearchdir\"]')" \
> %{buildroot}%{_sysconfdir}/rpm/macros.ruby > %{buildroot}%{_sysconfdir}/rpm/macros.ruby
ln -s ruby-%{apiver}.pc %{buildroot}%{_libdir}/pkgconfig/ruby.pc
sed -i "s|/usr/local/bin/ruby|%{_bindir}/ruby|" %{buildroot}%{_libdir}/ruby/gems/*/gems/racc-*/bin/*
# remove unpackaged files # remove unpackaged files
rm -fr %{buildroot}%{_docdir} rm -fr %{buildroot}%{_docdir}
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -n lib%{name} -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/bundle
%{_bindir}/bundler
%{_bindir}/erb %{_bindir}/erb
%{_bindir}/gem %{_bindir}/gem
%{_bindir}/irb %{_bindir}/irb
%{_bindir}/racc
%{_bindir}/racc2y
%{_bindir}/rake %{_bindir}/rake
%{_bindir}/rdoc %{_bindir}/rdoc
%{_bindir}/ri %{_bindir}/ri
%{_bindir}/ruby %{_bindir}/ruby
%{_bindir}/y2racc
%{_mandir}/man5/gemfile.5*
%dir %{_datadir}/ri/%{apiver}
%dir %{_datadir}/ri/%{apiver}/system
%{_datadir}/ri/%{apiver}/system/*
%{_mandir}/man1/*.1*
%files -n lib%{name}
%defattr(-, root, root)
%{_libdir}/libruby.so.* %{_libdir}/libruby.so.*
%{_libdir}/ruby/gems/%{apiver}/cache %{_libdir}/ruby/gems/%{apiver}/cache
%{_libdir}/ruby/gems/%{apiver}/gems %{_libdir}/ruby/gems/%{apiver}/gems
@ -109,31 +143,52 @@ rm -fr %{buildroot}%{_docdir}
%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/rbconfig %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/rbconfig
%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.rb %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.rb
%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.so %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.so
#%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/bigdecimal/util.so
%{_libdir}/ruby/%{apiver}/*.rb %{_libdir}/ruby/%{apiver}/*.rb
%{_libdir}/ruby/%{apiver}/bigdecimal %{_libdir}/ruby/%{apiver}/bigdecimal
%dir %{_libdir}/ruby/*/bundler
%{_libdir}/ruby/*/bundler/*
%{_libdir}/ruby/%{apiver}/cgi %{_libdir}/ruby/%{apiver}/cgi
%dir %{_libdir}/ruby/*/csv
%{_libdir}/ruby/*/csv/*
%{_libdir}/ruby/%{apiver}/benchmark
%{_libdir}/ruby/%{apiver}/delegate
%{_libdir}/ruby/%{apiver}/did_you_mean
%{_libdir}/ruby/%{apiver}/digest %{_libdir}/ruby/%{apiver}/digest
%{_libdir}/ruby/%{apiver}/drb %{_libdir}/ruby/%{apiver}/drb
#%{_libdir}/ruby/%{apiver}/e2mmap/version.rb
#%{_libdir}/ruby/%{apiver}/fileutils/version.rb
%{_libdir}/ruby/%{apiver}/fiddle %{_libdir}/ruby/%{apiver}/fiddle
%{_libdir}/ruby/%{apiver}/forwardable/impl.rb %{_libdir}/ruby/%{apiver}/forwardable
%{_libdir}/ruby/%{apiver}/getoptlong
%{_libdir}/ruby/%{apiver}/io %{_libdir}/ruby/%{apiver}/io
%{_libdir}/ruby/%{apiver}/irb %{_libdir}/ruby/%{apiver}/irb
%{_libdir}/ruby/%{apiver}/json %{_libdir}/ruby/%{apiver}/json
%{_libdir}/ruby/%{apiver}/logger
%{_libdir}/ruby/%{apiver}/matrix %{_libdir}/ruby/%{apiver}/matrix
%{_libdir}/ruby/%{apiver}/net %{_libdir}/ruby/%{apiver}/net
%{_libdir}/ruby/%{apiver}/observer
%{_libdir}/ruby/%{apiver}/open3
%{_libdir}/ruby/%{apiver}/openssl %{_libdir}/ruby/%{apiver}/openssl
%{_libdir}/ruby/%{apiver}/optparse %{_libdir}/ruby/%{apiver}/optparse
%{_libdir}/ruby/%{apiver}/ostruct
%{_libdir}/ruby/%{apiver}/pstore
%{_libdir}/ruby/%{apiver}/psych %{_libdir}/ruby/%{apiver}/psych
%{_libdir}/ruby/%{apiver}/racc %{_libdir}/ruby/%{apiver}/racc
#%{_libdir}/ruby/%{apiver}/rbconfig #%{_libdir}/ruby/%{apiver}/rbconfig
%{_libdir}/ruby/%{apiver}/rdoc %{_libdir}/ruby/%{apiver}/rdoc
%{_libdir}/ruby/%{apiver}/reline
%{_libdir}/ruby/%{apiver}/rexml %{_libdir}/ruby/%{apiver}/rexml
%{_libdir}/ruby/%{apiver}/rinda %{_libdir}/ruby/%{apiver}/rinda
%{_libdir}/ruby/%{apiver}/ripper %{_libdir}/ruby/%{apiver}/ripper
%{_libdir}/ruby/%{apiver}/rss %{_libdir}/ruby/%{apiver}/rss
%{_libdir}/ruby/%{apiver}/rubygems %{_libdir}/ruby/%{apiver}/rubygems
%{_libdir}/ruby/%{apiver}/shell #%{_libdir}/ruby/%{apiver}/shell
%{_libdir}/ruby/%{apiver}/singleton
%{_libdir}/ruby/%{apiver}/syslog %{_libdir}/ruby/%{apiver}/syslog
%{_libdir}/ruby/%{apiver}/timeout
#%{_libdir}/ruby/%{apiver}/thwait/version.rb
%{_libdir}/ruby/%{apiver}/tracer/version.rb
#%{_libdir}/ruby/%{apiver}/tk #%{_libdir}/ruby/%{apiver}/tk
#%{_libdir}/ruby/%{apiver}/tkextlib #%{_libdir}/ruby/%{apiver}/tkextlib
%{_libdir}/ruby/%{apiver}/unicode_normalize %{_libdir}/ruby/%{apiver}/unicode_normalize
@ -141,13 +196,9 @@ rm -fr %{buildroot}%{_docdir}
%{_libdir}/ruby/%{apiver}/webrick %{_libdir}/ruby/%{apiver}/webrick
#%{_libdir}/ruby/%{apiver}/xmlrpc #%{_libdir}/ruby/%{apiver}/xmlrpc
%{_libdir}/ruby/%{apiver}/yaml %{_libdir}/ruby/%{apiver}/yaml
%dir %{_datadir}/ri/%{apiver}
%dir %{_datadir}/ri/%{apiver}/system
%{_datadir}/ri/%{apiver}/system/*
%{_mandir}/man1/*.1*
%doc COPYING %doc COPYING
%files devel %files -n lib%{name}-devel
%defattr(-, root, root) %defattr(-, root, root)
%{_sysconfdir}/rpm/macros.ruby %{_sysconfdir}/rpm/macros.ruby
%dir %{_includedir}/ruby-%{apiver} %dir %{_includedir}/ruby-%{apiver}
@ -157,12 +208,45 @@ rm -fr %{buildroot}%{_docdir}
%{_includedir}/ruby-%{apiver}/ruby/*.h %{_includedir}/ruby-%{apiver}/ruby/*.h
%dir %{_includedir}/ruby-%{apiver}/ruby/backward %dir %{_includedir}/ruby-%{apiver}/ruby/backward
%{_includedir}/ruby-%{apiver}/ruby/backward/*.h %{_includedir}/ruby-%{apiver}/ruby/backward/*.h
%{_includedir}/ruby-%{apiver}/ruby/backward/*.hpp
%{_includedir}/ruby-%{apiver}/%{_target_cpu}-linux*/rb_mjit_min_header-*.h
#%{_libdir}/libruby-static.a #%{_libdir}/libruby-static.a
%{_libdir}/libruby.so %{_libdir}/libruby.so
%{_libdir}/pkgconfig/ruby-*.pc %{_libdir}/pkgconfig/ruby-*.pc
%{_libdir}/pkgconfig/ruby.pc
#%doc ChangeLog README.* #%doc ChangeLog README.*
%changelog %changelog
* Thu Jul 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.1-3mamba
- fix /usr/local/bin/ruby shebangs in gems
* Wed Jul 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.1-2mamba
- provide ruby.pc pkgconfig symlink; move lib files into libruby subpackage
* Wed Apr 01 2020 Automatic Build System <autodist@mambasoft.it> 2.7.1-1mamba
- automatic version update by autodist
* Sat Jan 18 2020 Automatic Build System <autodist@mambasoft.it> 2.7.0-1mamba
- automatic version update by autodist
* Wed Oct 02 2019 Automatic Build System <autodist@mambasoft.it> 2.6.5-1mamba
- automatic version update by autodist
* Fri Aug 30 2019 Automatic Build System <autodist@mambasoft.it> 2.6.4-1mamba
- automatic version update by autodist
* Wed Apr 17 2019 Automatic Build System <autodist@mambasoft.it> 2.6.3-1mamba
- automatic version update by autodist
* Wed Mar 13 2019 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
- automatic version update by autodist
* Sat Feb 02 2019 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
- automatic version update by autodist
* Fri Dec 28 2018 Automatic Build System <autodist@mambasoft.it> 2.6.0-1mamba
- automatic version update by autodist
* Tue Oct 23 2018 Automatic Build System <autodist@mambasoft.it> 2.5.3-1mamba * Tue Oct 23 2018 Automatic Build System <autodist@mambasoft.it> 2.5.3-1mamba
- automatic version update by autodist - automatic version update by autodist