ruby-common/ruby-common.changes

693 lines
25 KiB
Plaintext
Raw Normal View History

-------------------------------------------------------------------
Tue Dec 12 13:30:27 UTC 2017 - mrueckert@suse.de
- switch requires of the autogenerated subpackages from
rb_suffix-rubygem-gemname = version to
rubygem(rb_abi:gemname) = version
-------------------------------------------------------------------
Thu Nov 30 03:40:08 UTC 2017 - mrueckert@suse.de
- split our the rails part
-------------------------------------------------------------------
Thu Nov 30 03:25:39 UTC 2017 - mrueckert@suse.de
- we need bundler now. given ruby 2.5 will have it intree anyway,
this soon wont be a big burden.
-------------------------------------------------------------------
Thu Nov 30 02:40:03 UTC 2017 - mrueckert@suse.de
- add support to generate requires from Gemfile.lock
-------------------------------------------------------------------
Mon Aug 7 10:20:07 UTC 2017 - mrueckert@suse.de
- package the buildinfo dir
- allow passing options to extconf.rb
-------------------------------------------------------------------
Tue Jun 13 21:11:20 UTC 2017 - bwiedemann@suse.com
- Call fdupes -o name to make sure we always create symlinks
in the same direction to make builds reproducible
-------------------------------------------------------------------
Tue Mar 1 01:01:56 UTC 2016 - mrueckert@suse.de
- Since rubygems 2.5.0 the default version in the gem bin stub
changed from '>= 0' to '>= 0.a'. This was done to allow
prerelease versions. Our patching script didn't take the '.a'
into account and generated version fields like '= 0.10.1.a'
instead of the expected '= 0.10.1'. This fix accounts for the
'.a'.
-------------------------------------------------------------------
Thu Jun 11 14:33:37 UTC 2015 - lnussel@suse.de
- help the solver to pick the right gem2rpm for the default ruby
version (bnc#934328)
-------------------------------------------------------------------
Sat May 2 11:55:31 UTC 2015 - mrueckert@suse.de
- Fix patching of the shebang line
-------------------------------------------------------------------
Thu Apr 16 21:45:29 UTC 2015 - mrueckert@suse.de
- The script sometimes returned from gem install already although
the install wasn't finished yet. This broke e.g. the binary
rename part.
-------------------------------------------------------------------
Fri Mar 13 18:20:33 UTC 2015 - mrueckert@suse.de
- Fail early if gem install fails
This avoids confusing error messages at the end of the build.
-------------------------------------------------------------------
Fri Mar 13 14:56:55 UTC 2015 - mrueckert@suse.de
- More fixes for ruby 1.8
-------------------------------------------------------------------
Fri Mar 13 14:06:32 UTC 2015 - mrueckert@suse.de
- Ruby 1.8 insists on the () for the parameter
-------------------------------------------------------------------
Fri Mar 13 13:55:20 UTC 2015 - mrueckert@suse.de
- Cleaner solution for the extensions doc dir
The other solution was also failing on 1.8
-------------------------------------------------------------------
Fri Mar 13 13:28:52 UTC 2015 - mrueckert@suse.de
- Forgot another option for forwarding
-------------------------------------------------------------------
Fri Mar 13 09:19:52 UTC 2015 - mrueckert@suse.de
- Do not overwrite options.otheropts
-------------------------------------------------------------------
Fri Mar 13 02:48:50 UTC 2015 - mrueckert@suse.de
- Fixed forwarding of options to gem install
-------------------------------------------------------------------
Fri Mar 13 02:26:12 UTC 2015 - mrueckert@suse.de
- Only use the extensions doc dir on MRI 2.1.x
-------------------------------------------------------------------
Fri Mar 13 01:58:02 UTC 2015 - mrueckert@suse.de
- Fix the ruby suffix for distributions before 13.2
- Do not fail with --gem-binary
-------------------------------------------------------------------
Fri Mar 13 01:28:08 UTC 2015 - mrueckert@suse.de
- switch to ruby version of gem_install.sh
- added ruby-find-versioned to make it easier to find versioned
binaries.
- all for loops in the shell scripts and macros are now using
this script
-------------------------------------------------------------------
Thu Mar 12 16:17:20 UTC 2015 - mrueckert@suse.de
- call ruby with -x from shell wrappers otherwise we run into an
endless loop
-------------------------------------------------------------------
Thu Jan 15 10:59:59 UTC 2015 - dmueller@suse.com
- rubygemsdeps.rb: add shell-launcher to avoid dependency on
a fixed ruby version
-------------------------------------------------------------------
Tue Jan 13 17:01:02 UTC 2015 - dmueller@suse.com
- gem_install.sh: fix ruby shebang patching
-------------------------------------------------------------------
Sat Nov 15 23:46:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in generate_buildrequires.sh script
-------------------------------------------------------------------
Tue Oct 21 15:50:45 UTC 2014 - mrueckert@suse.de
- restore changes lost by the previous change
- load rbconfigpackagingsupport if available and fail gracefully
if not.
- dont use not() it breaks the build on 1.8
- remove requires onto the ruby version
-------------------------------------------------------------------
Sat Oct 18 05:37:19 UTC 2014 - coolo@suse.com
- update gem_packages template from git
-------------------------------------------------------------------
Mon Sep 29 21:11:08 UTC 2014 - mrueckert@suse.de
- ignore any files we find in */.gem/*. in some versions of
rubygems, gems that are installed are also copied to ~/.gem/.
-------------------------------------------------------------------
Fri Sep 26 21:53:30 UTC 2014 - mrueckert@suse.de
- we dont always have /usr/bin/ruby, use perl for patching the
version in the bin wrapper. also replaced the sed for patching
the shebang line.
- fixed a bad bug in the shebang line. we had an additional "."
there.
-------------------------------------------------------------------
Fri Sep 26 21:22:24 UTC 2014 - mrueckert@suse.de
- install gemrc on all distros
-------------------------------------------------------------------
Fri Sep 26 10:30:56 UTC 2014 - mrueckert@suse.de
- dont delete .a files. there are actually gems where we need them
like rubygem-libv8 for rubygem-therubyracer
-------------------------------------------------------------------
Tue Sep 23 15:31:56 UTC 2014 - mrueckert@suse.de
- fix the case where we dont symlink the binaries.
-------------------------------------------------------------------
Fri Sep 19 15:10:30 UTC 2014 - mrueckert@suse.de
- gem_cleanup macro was missed when updating for old ruby versions.
-------------------------------------------------------------------
Fri Sep 19 14:46:08 UTC 2014 - mrueckert@suse.de
- switch from "ruby -rrubygems -e
'print Gem::Specification.new.base_dir'"
to "gem env gemdir"
-------------------------------------------------------------------
Fri Sep 19 10:35:57 UTC 2014 - mrueckert@suse.de
- gem_build_cleanup: also delete static library files
-------------------------------------------------------------------
Wed Sep 17 16:33:06 UTC 2014 - mrueckert@suse.de
- ruby 1.8 support:
- gem_packages.sh: change to /usr/src/packages when
/home/abuild/rpmbuild doesn't exist.
- gem_packages template:
- require rbconfigpackagingsupport to fix the ruby_install_name
dependent variables. we do that for all distros but catch the
LoadError and continue.
- and dont use not(), we need to use "!" instead.
-------------------------------------------------------------------
Wed Sep 17 16:07:09 UTC 2014 - mrueckert@suse.de
- our sle 11 sp3 rpm does provide the support for the automatic
rubygems dependency but does not provide
rpm-with-ruby-provide-hook. guard the requires with > 1110
-------------------------------------------------------------------
Wed Sep 17 15:56:49 UTC 2014 - mrueckert@suse.de
- remove the handling of spec.required_ruby_version here. this
should be handled in rubygemsdeps.rb if at all. we already guard
for this in the buildrequires and then have a requires via the
$interpreter(abi) requires onto the newer version.
-------------------------------------------------------------------
Wed Sep 17 15:32:46 UTC 2014 - mrueckert@suse.de
- invert the logic. only stop shipping /etc/gemrc on 12.3 and 13.1
-------------------------------------------------------------------
Wed Sep 17 15:02:38 UTC 2014 - mrueckert@suse.de
- gem_packages template:
Dont allow an suffix with just a plain number. prefix it with
ruby.
-------------------------------------------------------------------
Wed Sep 17 14:30:49 UTC 2014 - mrueckert@suse.de
- gem_packages also need the rewrite that rewrites a number only
suffix into .ruby<numbersuffix>
-------------------------------------------------------------------
Wed Sep 17 13:53:09 UTC 2014 - mrueckert@suse.de
- made the matcher for older versions more strict so we dont pick
up gem2rpm.
-------------------------------------------------------------------
Wed Sep 17 13:48:54 UTC 2014 - mrueckert@suse.de
- also add support for older versioning in gem_packages.sh
-------------------------------------------------------------------
Wed Sep 17 13:28:15 UTC 2014 - mrueckert@suse.de
- added support for the versioning scheme in 13.1 and older
- dont ship gemrc on 13.1
-------------------------------------------------------------------
Mon Sep 15 14:31:22 UTC 2014 - mrueckert@suse.de
- the ruby(abi) = $interpreter:$abiversion was not a good idea. rpm
treats the $interpreter part as epoch. instead we use now:
$interpreter(abi) = $abiversion
For MRI it means we are basically back to ruby(abi).
Examples for alternative ruby interpreters are rubinius(abi) and
jruby(abi) (bnc#896658)
-------------------------------------------------------------------
Mon Sep 8 13:03:41 UTC 2014 - mrueckert@suse.de
- disable extensions doc dir on rubinius
-------------------------------------------------------------------
Mon Sep 8 12:29:02 UTC 2014 - mrueckert@suse.de
- workaround https://github.com/rubinius/rubinius/issues/2732
for UTF8 locale in gem_packages.sh
-------------------------------------------------------------------
Thu Sep 4 09:12:25 UTC 2014 - mrueckert@suse.de
- we actually need the splitted version in any case. uncomment it
again
-------------------------------------------------------------------
Wed Sep 3 13:24:22 UTC 2014 - mrueckert@suse.de
- pass the ruby abi as hash containing :interpreter, :version,
:abi as keys. that way we have the full new string but also the
version for the 1.8 support
-------------------------------------------------------------------
Wed Sep 3 12:32:35 UTC 2014 - mrueckert@suse.de
- rubygemsdeps.rb:
- make the provides/requires also include the ruby interpreter
- no longer emit the old package name style provides
- rubygems.attr:
- make the path a bit more relaxed so we can match other ruby
interpreter too
-------------------------------------------------------------------
Wed Jul 16 17:29:51 UTC 2014 - mrueckert@suse.de
- added ruby-common.macros:
Holds the common macros for the rpm macro based buildrequires.
- merged ruby.macros into ruby.rpm-macros:
the later file now carries the rb_* and gem_* macros
-------------------------------------------------------------------
Tue Jul 15 18:37:28 UTC 2014 - mrueckert@suse.de
- ruby.macros: drop the duplicate gem macros
-------------------------------------------------------------------
Tue Jul 15 17:16:19 UTC 2014 - mrueckert@suse.de
- fix small typo in opensuse.spec.erb which broke the formatting.
-------------------------------------------------------------------
Tue Jul 15 14:25:35 UTC 2014 - mrueckert@suse.de
- no longer require ruby(-devel). ruby-common is required by
rubyX.Y so we should always be installed and this breaks a small
loop
- opensuse.spec.erb
- no longer require the plain ruby package but the versioned
named
- handle disable_doc and no longer build subpackages for rdoc
documentation in that case.
-------------------------------------------------------------------
Fri Jul 11 08:12:11 UTC 2014 - mrueckert@suse.de
- remove the set -x from gem_install
- moved set -x in gem_packages to the interesting part only
- the gem packages template only handles custom_pkgs_ruby_versioned
-------------------------------------------------------------------
Thu Jul 10 15:35:47 UTC 2014 - mrueckert@suse.de
- make use of config file support in gem2rpm (gem2rpm.yml)
- gem_install.sh
- drop gem-filelist-append and gem-custom-packages params
- removed unneeded "-" when appending gem_version_suffix
- gem_packages.sh
- drop gem-suffix, gem-filelist-append and gem-custom-packages
params
- added gem2rpm-config param
- added code to find gem2rpm.yml in RPM_SOURCE_DIR
- opensuse.spec.erb
- no longer get variables from the env. this is handled by the
config file now
- implemented all the gem2rpm.yml hooks
- ruby.rpm-macros
- removed usage of dropped cmdline arguments
- pass mod_version_suffix to gem_install.sh
-------------------------------------------------------------------
Thu Jul 10 14:48:10 UTC 2014 - mrueckert@suse.de
- pass the output of gem_packages through %{expand} so macros and
so on work.
-------------------------------------------------------------------
Wed Jun 25 19:05:31 UTC 2014 - mrueckert@suse.de
- in the past we had a few spec files were we manually patched the
version in the binary wrapper from ">= 0" to "= %version"
do this in gem install now.
-------------------------------------------------------------------
Wed Jun 25 17:24:36 UTC 2014 - mrueckert@suse.de
- do not have the expanded version of rubygem(gem2rpm) in the spec
file. moved to project config.
-------------------------------------------------------------------
Wed Jun 25 17:08:30 UTC 2014 - mrueckert@suse.de
- adapt the symlink handling:
We will us the versioned names in /etc/alternatives now instead of
mapping everything to /etc/alternatives/$binaryname.
That means we will get:
/usr/bin/$binaryname$rubysuffix /etc/alternatives/$binaryname$rubysuffix
/usr/bin/$binaryname-$gemversion /etc/alternatives/$binaryname-$gemversion
/usr/bin/$binaryname /etc/alternatives/$binaryname
The subpackage template and gem_install.sh script got adopted to
this.
- no longer patch files in $buildroot/usr/bin/.
If we patch files there, we break the binaries for older ruby
versions. we limit the search path to the gem dir.
- loop over each gem directory in gem_cleanup macro. so far we only
cleaned up the gems for the default ruby
- add requires for fdupes. one of the macro is using it.
- bump rpm_macros_version to 5
-------------------------------------------------------------------
Wed Jun 25 16:26:58 UTC 2014 - mrueckert@suse.de
- really make gem_install.sh work with more than one ruby version
- use pushd/popd instead of cd when creating the symlinks
- only create the generic symlinks if they dont exists already
-------------------------------------------------------------------
Mon Jun 23 16:02:37 UTC 2014 - mrueckert@suse.de
- added 2 new options to gem_packages.sh
- --gem-filelist-append="arg"
This can be either a string or a filename to a filelist that
will be appended to the versioned main package
- --gem-custom-packages="name|filelist[|preamble[|description]]"
filelist, preamble and description can be either filenames or
the actual value.
to use both from the spec file you need to use
%define gem_custome_packages ...
%define gem_filelist_append ...
important if you use the filename option, you need to call the
tools to generate the files with %(....) so the files are
actually available at the time when gem_packages is run. The tool
is called at the very beginning of the build, even before %prep.
- update the gem_packages template to handle those 2 options and
also the --gem-suffix option.
they are all passed via environment variables for now.
- bumped the rpm_macro_version to 4
-------------------------------------------------------------------
Thu Jun 19 23:31:21 UTC 2014 - mrueckert@suse.de
- as it turns out gem_build_complete_path files are important.
Do not delete them in the cleanup script.
-------------------------------------------------------------------
Wed Jun 18 18:44:33 UTC 2014 - mrueckert@suse.de
- added gem_packages macro and implementation
- fix shebang patching in gem_install
-------------------------------------------------------------------
Wed Jun 18 16:11:07 UTC 2014 - mrueckert@suse.de
- if we dont use --symlink-binaries, let's undo the
--format-executable, that we we break less packages
-------------------------------------------------------------------
Wed Jun 18 15:53:28 UTC 2014 - mrueckert@suse.de
- added --symlink-binaries option to gem_install.sh:
instead of breaking all the existing rubygem packages lets pass
this option until we have all packages fixed and we can turn it
on by default
-------------------------------------------------------------------
Wed Jun 18 15:17:28 UTC 2014 - mrueckert@suse.de
- a lot of additions to the gem_install.sh
* --doc-files="..." - which files relatively to the installed gem
directory should be symlinked to /usr/share/doc/packages/rpmname
-> you can move the manual linking of documentation files to
the --doc-files option
* --gemsuffix="suffix" - if you need more than one version of the
same gem.
* all the symlinks for the different versioned files are not
generated following the same rules that the template is using.
-> you can remove the manual code from the spec file
- enable format-executable again in the global gemrc
- pass gem name and version from the %gem_install macro to the
gem_install.sh, avoids parsing the gem file name in the shell
script.
-------------------------------------------------------------------
Tue Jun 17 19:48:28 UTC 2014 - mrueckert@suse.de
- added opensuse.spec.erb this gem2rpm template should be later
used by the gem_packages macro to create the needed file and
package sections
- make gem_install.sh loop over all /usr/bin/gem[1-9]*
-------------------------------------------------------------------
Tue Jun 17 13:08:35 UTC 2014 - mrueckert@suse.de
- added more patterns to the cleanup script for ruby 2.1
- gem.build_complete
- page\*.ri
-------------------------------------------------------------------
Sun Jun 15 18:55:34 UTC 2014 - mrueckert@suse.de
- installed the wrong file as gemrc
-------------------------------------------------------------------
Sat Jun 14 14:55:22 UTC 2014 - mrueckert@suse.de
- merge files from the ruby 2.1 package
- moved gemrc from the ruby wrapper package
-------------------------------------------------------------------
Tue Apr 29 22:09:38 BST 2014 - aspiers@suse.com
- eliminate "useless-provides rubygem-foo" rpmlint warning for
every gem: "Provides: rubygem-foo = 1.2.3" is not required
because rpm implicitly adds "Provides: rubygem-foo = 1.2.3-4"
-------------------------------------------------------------------
Tue Feb 4 14:03:13 UTC 2014 - kkaempf@suse.com
- make %gem_extensions and %gem_doc_ext not fail on Ruby < 2.1
-------------------------------------------------------------------
Sun Jan 12 19:05:13 UTC 2014 - coolo@suse.com
- remove 2.0 and 1.9 as binary suffix
-------------------------------------------------------------------
Sun Jan 12 16:43:47 UTC 2014 - coolo@suse.com
- increase the version and make gem_base generic
-------------------------------------------------------------------
Mon Jan 6 16:57:37 UTC 2014 - coolo@suse.com
- switch to 2.1 as default
-------------------------------------------------------------------
Thu Sep 12 21:49:33 UTC 2013 - mrueckert@suse.de
- fixed bootstrap problem by ignoring ruby-common at build time
-------------------------------------------------------------------
Sat Sep 7 20:27:22 UTC 2013 - coolo@suse.com
- do no longer buildrequire rubygems_with_buildroot_patch, that's
history long enough - ruby-devel will do
-------------------------------------------------------------------
Thu Jun 6 14:41:53 UTC 2013 - coolo@suse.com
- fixed ~> 3.4 to actually require 3
-------------------------------------------------------------------
Mon Apr 29 07:59:35 UTC 2013 - coolo@suse.com
- switch to ruby 2.0 as default
-------------------------------------------------------------------
Sun Apr 14 08:30:10 UTC 2013 - coolo@suse.com
- fix permissions
-------------------------------------------------------------------
Tue Apr 9 09:23:00 UTC 2013 - coolo@suse.com
- do not remove ext completely, e.g. passenger extensions require
some files from there
-------------------------------------------------------------------
Sat Mar 23 13:32:13 UTC 2013 - coolo@suse.com
- remove ext too, it only causes problems - as far as I can see
-------------------------------------------------------------------
Fri Mar 8 16:22:44 UTC 2013 - rhafer@suse.com
- Some enhancements to rubygemsdeps.rb:
- Add --file-match option to rubygemsdeps.rb to allow
specifying and alternate regex to match the input files
against. This is useful to generate dependencies from gemspec
files which do not endup being installed in the default
locations
- Default rubyabi to a non-nil value (basically the version of
of the ruby interpreter that runs the script)
-------------------------------------------------------------------
Wed Jan 9 18:05:38 GMT 2013 - aspiers@suse.com
- Fix it to work even if all-good has just been created locally
via mkpac and doesn't exist server-side yet.
- Improve support for running within a branch of the original
project. This allows submitreqs which change all-good.spec.
-------------------------------------------------------------------
Tue Jan 8 11:00:24 UTC 2013 - idonmez@suse.com
- Bump version to 2.0 so we don't get a version downgrade when
updating from 12.2
-------------------------------------------------------------------
Fri Dec 28 13:38:59 UTC 2012 - coolo@suse.com
- always provide the full version string as people use
~> 1.2 even if the version is 1.2
The old logic assumed people would always require one digit
less than the actual version
-------------------------------------------------------------------
Wed Dec 19 19:17:46 GMT 2012 - aspiers@suse.com
- Import an enhanced version of d:l:r:e/all-good/update-sources.sh
which can be reused for any project, and allows more thorough
handling of BuildRequires from different repository / arch
combinations.
-------------------------------------------------------------------
Tue Dec 4 10:57:13 UTC 2012 - nkrinner@suse.com
- Bring back fix from submit request 140568 (Revision 23):
Fix gemspec filtering on SLE_11_SP2:
+ Only gemspec files resulting of the built gem matter, not other
gemspec found in-tree
+ Newer RPM uses rubygem.attr, which filters correctly
-------------------------------------------------------------------
Fri Nov 30 16:24:19 UTC 2012 - coolo@suse.com
- require rubygems for old ruby versions
- strip trailing .0 for ~> operator
-------------------------------------------------------------------
Fri Nov 23 12:36:58 GMT 2012 - aspiers@suse.com
- Add -g option to rubygemsdeps.rb to allow preview / review
of automatically generated dependencies from:
+ gemspecs in packages which have already been installed
+ gems/gemspecs which have not yet been packaged
This is useful for learning / debugging the dependency generator.
-------------------------------------------------------------------
Wed Nov 7 14:46:27 UTC 2012 - saschpe@suse.de
- Fix gemspec filtering on SLE_11_SP2:
+ Only gemspec files resulting of the built gem matter, not other
gemspec found in-tree
+ Newer RPM uses rubygem.attr, which filters correctly
-------------------------------------------------------------------
Mon Nov 5 11:08:05 UTC 2012 - coolo@suse.com
- fix build on fedora
-------------------------------------------------------------------
Thu Aug 2 05:23:31 UTC 2012 - coolo@suse.com
- "~> 2" doesn't have any meaning, but we still need to handle it
-------------------------------------------------------------------
Wed Aug 1 10:20:32 UTC 2012 - coolo@suse.com
- fixing the pessimistic operator
-------------------------------------------------------------------
Mon Jul 30 10:39:16 UTC 2012 - coolo@suse.com
- replace all */ruby with /usr/bin/ruby
-------------------------------------------------------------------
Fri Jul 27 14:03:05 UTC 2012 - coolo@suse.com
- replace /usr/local/bin/ruby with /usr/bin/ruby - a very often mistake
-------------------------------------------------------------------
Thu Jul 26 11:13:13 UTC 2012 - coolo@suse.com
- fix ruby provides/requires with ruby 1.8
-------------------------------------------------------------------
Thu Jul 26 10:28:30 UTC 2012 - coolo@suse.com
- old gems do not have a gem unpack --spec, so use gem specification
-------------------------------------------------------------------
Thu Jul 26 09:28:51 UTC 2012 - coolo@suse.com
- catch unspecified gem_binary
-------------------------------------------------------------------
Thu Jul 26 07:19:37 UTC 2012 - coolo@suse.com
- split from ruby package for easier backporting