Bug 783622
Summary: | RFE: make cabal2spec extract license from .cabal files | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Satoru SATOH <ssato> | ||||
Component: | cabal2spec | Assignee: | Jens Petersen <petersen> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 16 | CC: | haskell-devel, petersen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | cabal2spec-0.25.4-1.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-02-10 21:54:35 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
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. |
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.