Linux Tools Project - RPM Stubby
Information needed for creating RPM specfile is present in a number of different files that are part of the upstream sources. Good examples are Eclipse feature.xml files and Maven pom.xml files.
And this plugin does exactly that - creates a RPM specfile from the information in these files.
This plugin have some small limitations like:
- feature.xml - creates a specfile only for a plugin that contains a feature
- pom.xml - creates a good specfile for poms without modules
RPM stubby is capable of creating good specfile when all the needed data is in the feature.xml.
Some of this data like the license, URL and other parts is not mandatory for the feature.xml files so your results
will vary depending on the completeness of the metadata in the feature.xml.
It contains aditional features like:
- Creating a fetch script for plugins that do not provide source tarballs -
The script needs tuning for plugins that use version control systems different from CVS.
- Add GCJ support to specfile - It was a good practice to add GCJ support to the packages in the past.
With OpenJDK becoming more and more popular this is not the case anymore.
- Use pdebuild for building - Pdebuild is a shell script shipped with Eclipse in some RPM based distributions (e.g. Fedora, Mandriva).
It reduces the number of things you need to setup manually by setting common values whenever this value is not overridden by a parameter
passed to the script.
- Give warnings for missing data in the feature.xml/pom.xml needed for the specfile.
- Provide interface for entering the missing data on generation time.
- Mylyn integration for reporting missing parts to upstream projects. Pom.xml files can even contain an url to the upstream issue tracking.
Specfile generated by rpmstubby
Try it out
Follow the instructions .