Commit graph

19 commits

Author SHA1 Message Date
Vít Ondruch
194728f9b7 --build-root option should be fixed again.
https://github.com/rubygems/rubygems/pull/7212
2023-12-07 17:02:02 +01:00
Vít Ondruch
27183e139f --build-root option is broken, use --install-dir instead
https://github.com/rubygems/rubygems/issues/7083

This is essentially return to 68e54df6f9
2023-12-07 15:56:08 +01:00
Vít Ondruch
e52d9f552d Conver hyphnes to underscores for version macros.
Hyphens cannot be part of macro names.

Also please note that the `%{gsub:...}` macro is available since RPM
4.19+. Lua would need to be used for older RPM:

https://github.com/rpm-software-management/rpm/pull/2181
2023-12-07 15:56:08 +01:00
Vít Ondruch
79e87e6d82 Allow to provide custom gem_name for %gem_ macros
This is mainly useful for ruby.gemspec, where the same macros as for gem
pckages can be used.
2023-12-07 15:15:14 +01:00
Timm Bäder
6b2ff68f33 Pass ldflags to gem install
We have them, so we may as well pass them. This also fixes building ruby
gems with clang.
2021-05-31 10:25:26 +00:00
Vít Ondruch
9a03f61609 Add %{gem_plugin} convenience macro.
This allows easy plugin stub ownership for RubyGems plugin packages.
2021-01-06 14:26:09 +01:00
Vít Ondruch
3696d7be37 Upgrade to Ruby 2.7.0.
This is SRPM import. The evolution of this commit is preserved in
private-ruby-2.7 branch.
2020-01-15 16:26:13 +01:00
Vít Ondruch
13a1b3e907 Properly support %prerelease in %gemspec_ macros. 2019-06-25 13:48:27 +02:00
Vít Ondruch
d5e84a533c Add --with-cxxflags configuration for %gem_install macro.
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org/message/3LTI2MQVBFNNLGLLA5JTYPNAFP7SQGAI/
2018-08-30 14:29:48 +02:00
Pavel Valena
8ef3cc0ed4 Add macros to edit files lists in .gemspec
%gemspec_add_file and %gemspec_remove_file.
2018-05-17 13:10:00 +02:00
Vít Ondruch
561c76845a Fix typos in macro description. 2018-05-03 15:16:00 +02:00
Vít Ondruch
bee5851fb0 Make %gemspec_{add,remove}_dep modify .gemspec provided by %setup macro.
The macros need to be udpated, since RPM 4.14+ can expand .gem files and
also also provide %{gem_name}.gemspec file used to rebuild the gem.
However, the .gemspec file is not in current directory, but directly in
%{_builddir}.
2018-05-03 14:53:49 +02:00
Vít Ondruch
3130f89edd Upgrade to Ruby 2.4.0.
Move gemified xmlrpc into subpackage.
Move gemified openssl into subpackage.
Tk is removed from stdlib.
Extend 'gem_' macros for pre-release version support.
2017-01-09 15:58:21 +01:00
Vít Ondruch
2e9e67ab5b Improve macro documentation. 2016-10-21 16:56:42 +02:00
Vít Ondruch
4fb1d9c02d Add gemspec_add_dep and gemspec_remove_dep macros. 2016-10-21 16:56:32 +02:00
Vít Ondruch
4c12d4e704 Upgrade to Ruby 2.3.0. 2016-01-05 11:00:48 +01:00
Vít Ondruch
ec047534c7 Bump release and add changelog entries. 2013-04-30 14:43:26 +02:00
Vít Ondruch
56d430e19a Introduce %{gem_archdir} macro. 2013-04-30 14:39:52 +02:00
Vít Ondruch
893a03a0cf Move RubyGems macro definition into macros.rubygems file. 2013-04-19 14:48:40 +02:00