Hi all,
I have recently pushed a new tool named 'spec-gen' to ROSA repositories
(contrib in 2012.1 and 2014.1; I have also built it for cooker, it would
be nice to add it to one of the repositories, but I have no permissions
for that).
This tool taks a tarball with source code as an input and tries to
create a spec file on the basis of source code analysis. In particular,
it analyzes configure.ac/in files and cmake files and try to guess
packages that should be pushed to BuildRequires section.
The tool should accompany our existing approaches to automated spec file
generation (e.g., gem2rpm5, R2spec, etc.). Maybe in future we could
integrate such tools in some top-level interface. But even now, spec-gen
os able to automatically launch "python setup.py bdist_rpm5" if it
detect setup.py script inside the archive.
The tool was developed by a student during his practice in ROSA Company,
so don't expect a perfect quality:) However, it is definitely better
than nothing and everybody is free to contribute. The source code is
currently available here - https://abf.io/dsilakov/spec-gen-dev
Feel free to try and propose your ideas and patches.
--
Denis Silakov, ROSA Laboratory.
www.rosalab.ru