Bug 783622

Summary: RFE: make cabal2spec extract license from .cabal files
Product: [Fedora] Fedora Reporter: Satoru SATOH <ssato>
Component: cabal2specAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: 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:
Description Flags
An experimental patch to make cabal2spec extract license information from .cabal files none

Description Satoru SATOH 2012-01-21 04:07:06 UTC
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.

Comment 1 Jens Petersen 2012-01-23 08:51:40 UTC
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

Comment 2 Fedora Update System 2012-01-26 01:25:34 UTC
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

Comment 3 Fedora Update System 2012-01-26 01:25:43 UTC
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

Comment 4 Fedora Update System 2012-01-26 22:53:22 UTC
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).

Comment 5 Fedora Update System 2012-02-10 21:54:35 UTC
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.

Comment 6 Fedora Update System 2012-02-14 09:05:42 UTC
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.