R2spec / R2rpm
By Pierre-Yves on Wednesday, March 24 2010, 21:26 - RPMs - Permalink
New version of R2spec in the pipes
Une nouvelle version de R2spec dans les tuyaux
English version
There is a new version of R2spec in the pipes, this version fixes some bugs and introduces some new features. The main of these features is the presence of R2rpm now.
R2rpm generate the complete rpm directly from a url, the sources or simply the name of the package. It builds the package twice, once to determine the %file section and once to generate the RPM.
I fixed the length of the %description so that it is not bigger than the mandatory 75 characters, the summary is also corrected if it ends with a dot.
Tonight I have been playing with this new version, I was able to generate in the fly a bit more than 70 RPMs for R libraries in just few minutes (ok maybe it tooks a couple of hours :-)).
All the RPMs work, there are not rpmlint compliant so there would need more work if we want to integrate them into the repository but it is a good basis.
Something that I still want to do before to release officially the version 3.0.0 is the possibility to build the dependencies of a given package. Basically, this would allow to build RPM for one package and all the packages of which it depends.
For those who would like to test you can find the source, srpm and rpm in https://fedorahosted.org/releases/r/2/r2spec/ (latest release so far 3.0.0-0.4).
Do not hesitate to test it and report any issue you find in it :-)
Hope you like it !
Comments
Just wanted to say thanks for the nice tool! I've needed it to make (local) packages for our users for non-free R libraries (mostly educational-use-only licenses) and it worked like a charm. Saved me loads of time!
Hey !
Good to hear somebody likes it :-)
Did you test R2rpm ? Not problem ? I still have some items on the todo list but I start to really like how it works.
Cool. I was writing a new tool I called rpmdev-pkggen which is similar but I'm going to check out R2spec and R2rpm and see if I can shift over to using that. It sounds like it is a lot further along.
Hmm, read up on it more and it seems to be a packager for a specific set of libraries. I bet there is a lot of things that can be generalized though. Nice work.
It is made for R libraries almost only, they provide a DESCRIPTION file which allow to fill almost all the metadata of the spec.
But yeah there could be tool to automate the generation of RPM. If you go for python and would like some help, feel free to ping me !
I have modules for each type of project which can extract a lot of info. It already does for setup.py and autools projects. I haven't gotten down to outputting a spec file though.