Created attachment 556664 [details] An experimental patch to make cabal2spec extract license information from .cabal files Description of problem: Current version of cabal2spec does not extract license information in .cabal files and packagers have to replace @LICENSE@ in output rpm spec by hand. I wrote an experimental patch to implement $summary. Version-Release number of selected component (if applicable): cabal2spec-0.25.2-1.fc16.noarch Additional info: License name in .cabal files and rpm spec do not match in actual; e.g. BSD3 vs. BSD, GPL vs. GPL{2,3}[+]?. So somehow cabal2spec has to detect it automatically.
Thank you for the patch! I had wanted to do this for a long time (actually want to rewrite cabal2spec in Haskell of course:), so great to have this now. Getting depends out too is probably going to overstretch bash. :) Your changes are integrated in cabal2spec-0.25.3, built now for rawhide, and should get backported later to current Fedora releases. http://koji.fedoraproject.org/koji/buildinfo?buildID=294866
cabal2spec-0.25.4-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/cabal2spec-0.25.4-1.fc15
cabal2spec-0.25.4-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/cabal2spec-0.25.4-1.fc16
Package cabal2spec-0.25.4-1.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cabal2spec-0.25.4-1.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0944/cabal2spec-0.25.4-1.fc15 then log in and leave karma (feedback).
cabal2spec-0.25.4-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
cabal2spec-0.25.4-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.