Ruby 2.2
by Vít Ondruch
Hi everybody,
Since Ruby 2.2 is going to be released during Christmas and -preview1
release is imminent (this Wednesday?), it is probably time to start
looking into its packaging. So here is the updated .spec file [1] and
scratch build [2], which can be finally build on all platforms. Sorry,
no Copr for you, since Ruby's build fails there due to old RHEL kernel :/.
What has changed from packaging point of view? Luckily, not much, but
here are a few bullets which comes to my mind:
* RPM 4.12 introduces new %load function, which is used to load RPM
macros during RPM build. This allowed to drop my custom RPM macro [3].
On the other hand, you'll be able to build the Ruby only on F21+
(luckily, you should be able to build SRPM everywhere).
* The RubyGems filesystem was not explicit enough, so there might be
something accidentally packages. This is now more explicit, so we should
be safer.
* Ruby now ships with MiniTest and Test::Unit. The very good news is
that they are installed so far as a regular gems. This means that you
have to always specify them in your Gemfile, if you are using Bundler,
but this is generally step in good direction. I hope that upstream will
not change their mind :) Due to this change, we have new subpackages
rubygem-test-unit (and rubygem-power_assert, which is now Test::Unit's
dependency). No more %{_bindir}/testrb (but nobody is using it these
days anyway, right? ;)
* Some prevailing test failures were resolved, some others introduced,
but hopefully they'll get resolved prior stable release.
Generally, I'd say that not much has changed since 2.1, which is good news.
Please test the packaging if you can and let me know about any issues
you encountered.
Also, if you have any other suggestions about Ruby packaging in general,
what we could improve etc, this is probably good time to share. It seems
that OpenSUSE guys are improving their packaging, so you might want to
get some inspiration there [4, 5, 6] ;)
Vít
[1] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=7578843
[3]
http://pkgs.fedoraproject.org/cgit/ruby.git/commit/?h=private-ruby-2.2&id...
[4] https://build.opensuse.org/package/show/home:darix:ruby/ruby-common
[5] https://build.opensuse.org/package/show/home:darix:ruby/ruby2.2
[6] https://github.com/openSUSE/gem2rpm/commits/master
2 months, 2 weeks
gem2rpm produces specfiles that fedora-review rejects?
by Otto Urpelainen
Greetings,
I am in process of submitting a new gem to Fedora for the first time. It
is rubygem-sync, needed by rubygem-tins since Ruby 2.7 as described in
RHBZ#1969567 [1].
I used gem2rpm to create my specfile and srpm [2]. Then I ran
fedora-review on them. To my surprise, there were two issues. It looks
like any specfile created with gem2rpm would suffer from these. How
should these be handled?
Problem 1:
Package must own all directories that it creates.
Note: Directories without known owners: /usr/share/gems, /usr/share/gems/doc
Requires: ruby(rubygems) was automatically created, should that handle
those directories?
Problem 2:
Avoid bundling fonts in non-fonts packages.
Note: Package contains font files
The fonts in question are in the -docs subpackage,
/usr/share/gems/doc/<package>/rdoc/fonts. I installed -doc for a couple
of rubygem- packages, they all copied the same fonts. Sure, using system
fonts is just a "should" [3], but it still seems strange that those
fonts are copied over and over in rubygem docs packages. What is going
on here?
Otto
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1969567
[2]: http://oturpe.kapsi.fi/fedora/rpms/rubygem-sync/
[3]:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_avoid_bundlin...
2 years, 5 months
Intend to retire rubygem-rspec2 series on Fedora 35
by Mamoru TASAKA
Hello, ruby-sig folks:
Since rspec 3.0.0 is released on 2014/Jun (almost 7 years ago),
Fedora's rubygem-rspec is upgraded to 3.x on Fedora 22 era, and compat package
rubygem-rspec2 is introduced.
Since I think enough time is already passed for packages to migrate to
rspec 3.x and actually:
----------------------------------------------------------
$ dnf repoquery --arch=src --repo=koji-35-source --whatrequires "rubygem(rspec2)"
rubygem-database_cleaner-0:1.7.0-5.fc34.src
rubygem-nifti-0:0.0.2-14.fc34.src
rubygem-rspec2-core-0:2.14.8-11.fc34.3.src
rubygem-rspec2-expectations-0:2.14.5-10.fc34.7.src
rubygem-rspec2-mocks-0:2.14.6-6.fc34.6.src
$ dnf repoquery --repo=koji-35 --qf '%{name}-%{epoch}:%{version}-%{release}\t%{SOURCERPM}' --whatrequires "rubygem-rspec2"
rubygem-json_spec-0:1.1.5-9.fc34 rubygem-json_spec-1.1.5-9.fc34.src.rpm
rubygem-rspec2-doc-0:2.14.1-14.fc34 rubygem-rspec2-2.14.1-14.fc34.src.rpm
----------------------------------------------------------
currently, very few packages depend on rubygem(rspec2).
* rubygem-json_spec actually has dependency: "(rubygem(rspec) >= 2.0 with rubygem(rspec) < 4.0)"
so this is okay
* For rubygem-nifti, I successfully migrated this to use rspec-3.x locally, so (unless someone
objects), I will push changes to use rspec-3.x
* For rubygem-database_cleaner, current upstream newest is 2.0.1, which is released on 2021/Feb,
so the latest one is perhaps using rspec-3.x, I guess.
so I intend to retire rubygem-rspec2 series, perhaps in two weeks, or if someone objects,
at least I intend to orphan rubygem-rspec2 series on Fedora 35.
Regards,
Mamoru
2 years, 5 months
self.introduction
by Rizqi Nur Assyaufi
Hi everyone,
Please allow me to introduce my self.
My name is Rizqi Nur Assyaufi. You guys can call me "Rizqi".
I came from Indonesia (UTC +8).
I'm a Junior Rails developer since mid 2019. I work for a small Software House.
I worked remotely because all team members are in different cities and islands.
I'm new on Fedora Community. I want to join Ruby SIG. I would like to give back
and would like to contribute to help to packaging Ruby into Fedora.
But, I never do that before. Maybe, I need take more time to looking around,
learning from documentation and also from you guys.
I would be grateful when getting "How do I get started" instructions.
I will try to learn it in my spare time.
Thank you for your time to read my email.
Have a nice day everywone.
--
Rizqi Nur Assyaufi
https://bandithijo.github.io
@bandithijo
2 years, 5 months
Give or orphan my rubygem-* packages
by Jun Aruga
Hi Ruby-SIG,
Recently I started to work on the upstream Ruby project as a committer
to workin on CI and non-x86 things to keep the pipelines stable. While
it is beneficial for Fedora Ruby SIG, it gave me an opportunity to
rethink how to use time. I need to stop something to start something.
So, while I continue to contribute to the rubygem-* dist-git
repositories as ruby-packagers-sig role, I would like to communicate
with you first to give you my main-admin role or to orphan by
following the process to orphan packages.
https://fedoraproject.org/wiki/Orphaned_package_that_need_new_maintainers
Here is a list of the packages I am the main admin for, and I want to
give the main admin role or orphan. If you are interested in being the
main admin, please let me know as a reply to this email thread.
Considering the importance of the packages, maybe the plan would be
like this. I will communicate with the co-maintainer later if it is
needed.
1. Dependencies of RSpec => Need to maintain.
2. Dependencies of Rails
2-1. Required on rawhide rubygem-rails => Need to maintain.
2-2. Was required by the old Rails 5.2.0 (as far as I know), now not
required by the rawhide Rails 6.1.3.2. => ?
3. Dependencies of Sinatra => Need to maintain. Maybe.
4. Dependencies of Resque => Orphan
5. Others => Orphan
## 1. Dependencies of RSpec
* rubygem-coderay
* a dependency of RSpec (rubygem-rspec-core) and rubygem-asciidoctor.
## 2. Dependencies of Rails
### 2-1. Required on rawhide rubygem-rails.
* rubygem-marcel
* rubygem-nio4r
* rubygem-puma
* rubygem-rack
* rubygem-websocket-extensions
### 2-2. Was required by the old Rails 5.2.0 (as far as I know), now
not required by the rawhide Rails 6.1.3.2.
* rubygem-mimemagic
This gem was migrated into rubygem-marcel.
* rubygem-spring-watcher-listen
## 3. Dependencies of Sinatra
* rubygem-mustermann
* a dependency of rubygem-sinatra.
## 4. Dependencies of Resque
* rubygem-resque
* There is no package depending on this package.
* I started to manage this package in the past, because I saw that
the 3scale team used the own forked version.
I thought it might be good to maintain it as RPM.
But actually no reason to continue to maintain this package.
* rubygem-mono_logger
* a dependency of rubygem-resque.
* rubygem-vegas
* A dependency of rubygem-resque.
## 5. Others
* rubygem-thin
* A dependency of rubygem-vegas.
* rubygem-redis-namespace
* There is no package depending on this package.
* rubygem-ditz
* There is no package depending on this package.
* rubygem-trollop
* A dependency of rubygem-ditz and rubygem-rbvmomi.
* I can not remember why I am the main admin of this package.
* rubygem-term-ansicolor
* A dependency of rubygem-coveralls, rubygem-terminal-table.
* I can not remember why I am the main admin of this package.
Regards,
Jun
--
Jun | He - His - Him
2 years, 6 months