I am trying to package ruby-1.8.6 for CentOS-4.5 and I would like to take a look at the spec files used for ruby-1.8.1 that ships with CentOS. Is there any place that I can see these or could someone do me the kindness of sending them to me? I am also confused as to how one breaks out the component parts of a build into separate rpm packages. The source distribution from ruby-lang.org seemingly permits only three install options; all, no-docs and docs-only. How and where does one refactor the build scripts to create separate rpms for ruby, ruby-libs, ruby-devel, ruby-docs, rdoc, irb, ri, and ruby-tcltk? I would appreciate greatly any guidance here. I have zero experience with creating rpm packages, but I ran across a reference to checkinstall in a reply to one of my queries on ruby-forum and have decided to have a go at putting an rpm together, for my own purposes if it proves beyond my capability to do so for the community. Sincerely, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of James B. Byrne> > I am trying to package ruby-1.8.6 for CentOS-4.5 and I would > like to take > a look at the spec files used for ruby-1.8.1 that ships with > CentOS. Is > there any place that I can see these or could someone do me > the kindness > of sending them to me?Download the SRPMS off of http://mirror.centos.org/centos> I am also confused as to how one breaks out the component > parts of a build > into separate rpm packages. The source distribution from > ruby-lang.org > seemingly permits only three install options; all, no-docs > and docs-only. > How and where does one refactor the build scripts to create > separate rpms > for ruby, ruby-libs, ruby-devel, ruby-docs, rdoc, irb, ri, > and ruby-tcltk? > I would appreciate greatly any guidance here.This is configured in the RPM .spec file and handled automatically during the rpmbuild process.> I have zero experience with creating rpm packages, but I ran across a > reference to checkinstall in a reply to one of my queries on > ruby-forum > and have decided to have a go at putting an rpm together, for my own > purposes if it proves beyond my capability to do so for the community.You will need gcc, binutils, make, patch, rpm-build, redhat-rpm-config and maybe gcc-c++ and stdc++ libs. There is pretty good documentation on the rpm spec file format at: http://www.rpm.org/max-rpm/ and http://www.rpm.org/RPM-HOWTO/ -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Fri, 2007-09-07 at 09:41 -0400, James B. Byrne wrote:> I have zero experience with creating rpm packages, but I ran across a > reference to checkinstall in a reply to one of my queries on ruby-forum > and have decided to have a go at putting an rpm together, for my own > purposes if it proves beyond my capability to do so for the community.Quite a few people have found this useful: http://fedoraproject.org/wiki/Docs/Drafts/BuildingPackagesGuide -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20070907/d075a0f2/attachment.sig>
Thank you for all the suggestions. I have now retrieved the source rpms while I had already read the material at rpm.org. It was that experience that convinced me to ask here for help. If anything useful comes of this I will report back here. Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
James B. Byrne wrote:> I am trying to package ruby-1.8.6 for CentOS-4.5 and I would like to take > a look at the spec files used for ruby-1.8.1 that ships with CentOS. Is > there any place that I can see these or could someone do me the kindness > of sending them to me? >there is a ruby-1.8.5 in the testing repo, it should be trivial moving that to 1.8.6. However, I must ask - why you are doing this ? -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
Karanbir Singh wrote:> there is a ruby-1.8.5 in the testing repo, it should be trivial moving > that to 1.8.6. However, I must ask - why you are doing this ?Some time ago I built ruby-1.8.6 on my development machine and have been using it for a new project. I now wish to move that to a trial deployment server and do not wish to have to install a full development suite there simply to build ruby-1.8.6. I also would like to learn something about the Redhat package manager for its own sake. I have discovered that the duplicate file names in the documents set prevent a build of the packages. No doubt there exists an override switch to force a build regardless of errors but I would like to uncover why these files are duplicated in the first instance and eliminate the problem at source. Can anyone help me with this? Sincerely, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
Karanbir Singh wrote:> To find out exactly what is going on, look at the bit which creates > the .files that are then used in the %files section to workout what > which files go into what rpm. There would be an overlap there.Given this snippet: %files -f ruby.files ... %files devel -f ruby-devel.files I speculate (since the rpm manual is not very helpful on the matter) that if --target= is not specified then the first file command will execute but not the third and include all of the files listed in ruby.files only whereas if --target=devel is specified to the rpmbuild command then the first and second commands will execute and include the contents of ruby.files and ruby-devel.files. Is my understanding of this correct or in what matter is it defective? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
In-Reply-To: <20070911203414.GQ19043 at polop.usc.edu> On: Tue, 11 Sep 2007 13:34:14 -0700, Garrick Staples <garrick at usc.edu> wrote: Content-Type: text/plain; charset="us-ascii" On Tue, Sep 11, 2007 at 03:56:07PM -0400, James B. Byrne alleged:>> I am now getting this: >> >> configure: creating ./config.status >> config.status: creating Makefile >> + --with-sitedir=/usr/lib/ruby/site_ruby --with-default-kcodeone >> --with-bundled-sha1 --with-bundled-md5 --with-bundled-rmd160 >> --enable-shared --enable-ipv6 --enable-pthread >> --with-lookup-order-hack=INET --disable-rpath --with-ruby-prefix=/usr/lib >> /var/tmp/rpm-tmp.49488: line 62: --with-sitedir=/usr/lib/ruby/site_ruby: >> No such file or directory >> error: Bad exit status from /var/tmp/rpm-tmp.49488 (%build)>> >> Since /usr/lib/ruby/site_ruby evidently exists, why am I being told that >> it does not?> It is telling you that "--with-sitedir=/usr/lib/ruby/site_ruby" doesn't > exist as a file, which is obviously correct. You probably have an extra > newline char or missing continuation char.You will note that the error message states "No such file or directory" which is not congruent with your observation. Indeed, site_ruby MUST be a directory. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3