Bug 783622 - RFE: make cabal2spec extract license from .cabal files
Summary: RFE: make cabal2spec extract license from .cabal files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cabal2spec
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-21 04:07 UTC by Satoru SATOH
Modified: 2012-02-14 09:05 UTC (History)
2 users (show)

Fixed In Version: cabal2spec-0.25.4-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-10 21:54:35 UTC
Type: ---


Attachments (Terms of Use)
An experimental patch to make cabal2spec extract license information from .cabal files (1.18 KB, patch)
2012-01-21 04:07 UTC, Satoru SATOH
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.