as you can guess, this command will try to sanitize a rpm spec file a bit. to use it, you must be in a package checkout, and run it without any argument.
$ eval $( magpie co perl-Foo-Bar )
$ magpie fixspec -v
# to see the list of options
$ magpie help fix
among the things that fixspec does:
- it updates %doc depending on the existing files, including meta files
- it splits multiple bundled build-/requires to have only one per line
- it lines up vertically the summary / etc
- it extracts perl buildrequires from meta.json/meta.yml if present
- it removes buildroot definition
- it removes mdv macros
own module, with real rpm parsing instead of big regexes. also, it
assumes that we're cleaning a perl module spec file, so you're on your
own if you're using it on other spec file: it might remove the whole
svn, eat your babies, or even convert your rpm database to rpm5. you've
been warned. :-)