Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 479793 (cpphs)
Summary: | Review Request: cpphs - A liberalised re-implementation of cpp, the C pre-processor | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Conrad Meyer <cse.cem+redhatbugz> | ||||||
Component: | Package Review | Assignee: | Jens Petersen <petersen> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | rawhide | CC: | fedora-package-review, haskell-devel, notting, petersen | ||||||
Target Milestone: | --- | Flags: | petersen:
fedora-review+
gwync: fedora-cvs+ |
||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-01-20 22:56:17 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 479796 | ||||||||
Attachments: |
|
Description
Conrad Meyer
2009-01-13 05:00:13 UTC
Created attachment 328843 [details]
cpphs.spec-1.patch
Probably my bad for a bug in the current binlib template, but this needs to be a proper binlib package.
Here is a patch.
Patch applied, with one minor correction (s/LICENSE/LICENCE/); new URLs: http://konradm.fedorapeople.org/fedora/SPECS/cpphs.spec http://konradm.fedorapeople.org/fedora/SRPMS/cpphs-1.6-2.fc9.src.rpm Thanks for the update. For fun I tries to push it through http://gauret.free.fr/fichiers/rpms/fedora/fedora-qa (though that is a little old now apparently). Here is my review: +:ok, =:needs attention, -:needs fixing MUST Items: [+] MUST: [rpmlint] packages are clean [+] MUST: base name is ok and matches spec [+] MUST: The package must meet the Packaging Guidelines. [+] MUST: The package must be licensed with a Fedora approved license and meet the Licensing Guidelines. [+] MUST: The License field in the package spec file must match the actual license. GPL+ and LGPLv2+ [+] MUST: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package must be included in %doc. I think better to move it to ghc-cpphs where it actually applies [+] MUST: The spec file must be written in American English. [+] MUST: The spec file for the package MUST be legible. [+] MUST: The sources used to build the package must match the upstream source, as provided in the spec URL. 8a7565ff3b2d7bdb594af4c10c594951 cpphs-1.6.tar.gz [+] MUST: The package must successfully compile and build into binary rpms on at least one supported architecture. [+] MUST: If the package does not successfully compile, build or work on an architecture, then those architectures should be listed in the spec in ExcludeArch. [+] MUST: All build dependencies must be listed in BuildRequires [=] MUST: A package must own all directories that it creates. Hmm, /usr/share/doc/ghc/libraries is owned by ghc-doc but not required by ghc-cpphs - looks like a oversight of the guidelines. Wondering whether we should subpackage haddock docs for this or do something else. [+] MUST: A package must not contain any duplicate files in the %files listing. [+] MUST: Permissions on files must be set properly. Executables should be set with executable permissions, for example. Every %files section must include a %defattr(...) line. [+] MUST: Each package must have a %clean section, which contains rm -rf %{buildroot} (or $RPM_BUILD_ROOT). [+] MUST: Each package must consistently use macros, as described in the macros section of Packaging Guidelines. [+] MUST: The package contains code [+] MUST: If a package includes something as %doc, it must not affect the runtime of the application. [+] MUST: Header files must be in a -devel package. ghc-cpphs provides -devel for now [+] MUST: In the vast majority of cases, devel packages must require the base package using a fully versioned dependency: Requires: %{name} = %{version}-%{release} [+] MUST: Packages must not own files or directories already owned by other packages. [+] MUST: At the beginning of %install, each package MUST run rm -rf %{buildroot} (or $RPM_BUILD_ROOT). [+] MUST: All filenames in rpm packages must be valid UTF-8. SHOULD Items: [+] SHOULD: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. I sent a message to the maintainer asking for the GPL license file to be added in the future. [+] SHOULD: The reviewer should test that the package builds in mock. [+] SHOULD: The reviewer should test that the package functions as described. [+] SHOULD: If scriptlets are used, those scriptlets must be sane. Once the above file ownership issue is resolved I think I can approve this, but I will attach a small patch. Created attachment 328957 [details]
cpphs.spec-2.patch
- simplify summaries
- move lgpl license file to ghc-cpphs
- add html doc
and some trivial cleanup.
(In reply to comment #3) > ... > I think better to move it to ghc-cpphs where it actually applies Done. (Or I guess, your patch does this.) Although rpmbuild complains as I told you on IRC. > ... > [=] MUST: A package must own all directories that it creates. > > Hmm, /usr/share/doc/ghc/libraries is owned by ghc-doc but not required by > ghc-cpphs - looks like a oversight of the guidelines. > > Wondering whether we should subpackage haddock docs for this or do something > else. Well, at any rate ghc-cpphs must depend on ghc-doc (or ghc-doc if we create a subpackage for the docs). > ... > I sent a message to the maintainer asking for the GPL license file to be added > in the future. Thanks. (In reply to comment #5) > Done. (Or I guess, your patch does this.) Although rpmbuild complains as I told > you on IRC. Strange - builds ok for me on f10 (and f11 mock) anyway. > > Hmm, /usr/share/doc/ghc/libraries is owned by ghc-doc but not required by > > ghc-cpphs - looks like a oversight of the guidelines. > > > > Wondering whether we should subpackage haddock docs for this or do something > > else. > > Well, at any rate ghc-cpphs must depend on ghc-doc (or ghc-doc if we create a > subpackage for the docs). Right. Since ghc-doc is quite big I am leaning towards subpackaging for all libraries' docs generated by haddock. I guess in this case ghc-cpphs-doc say. Any other thoughts from the Haskell SIG? I updated the templates in the draft haskell-packaging package to handle doc subpackages btw (haven't tested it though yet:). You could try http://petersen.fedorapeople.org/haskell-packaging/haskell-packaging-0.3-1.fc10.noarch.rpm (though the cabal2spec will conflict with the one in ghc currently). http://konradm.fedorapeople.org/fedora/SPECS/cpphs.spec http://konradm.fedorapeople.org/fedora/SRPMS/cpphs-1.6-4.fc9.src.rpm Now with separate -doc subpackage. Thanks for the update. :) One last tweak: you can remove this line I think: Requires(postun): ghc = %{ghc_version} it is now taken care of by the doc requires(postun). With that the package is APPROVED. Ah, OK. Thanks! New Package CVS Request ======================= Package Name: cpphs Short Description: A liberalised re-implementation of cpp, the C pre-processor Owners: konradm Branches: F-10 F-9 InitialCC: cvs done. Built in rawhide, closing. Package Change Request ====================== Package Name: cpphs New Branches: el6 Owners: petersen InitialCC: haskell-sig Git done (by process-git-requests). ghc-haskell-src-exts-1.13.3-2.el6, cpphs-1.14-3.el6 has been pushed to the Fedora EPEL 6 stable repository. |