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 1087893 - Review Request: ocaml-srpm-macros - OCaml architecture macros
Summary: Review Request: ocaml-srpm-macros - OCaml architecture macros
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1087794
TreeView+ depends on / blocked
 
Reported: 2014-04-15 14:14 UTC by Richard W.M. Jones
Modified: 2014-04-22 10:14 UTC (History)
4 users (show)

Fixed In Version: ocaml-srpm-macros-1-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-22 10:14:27 UTC
Type: ---
Embargoed:
pbrobinson: fedora-review+
petersen: fedora-cvs+


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-04-15 14:14:56 UTC
Spec URL: http://oirase.annexia.org/reviews/ocaml-srpm-macros/ocaml-srpm-macros.spec
SRPM URL: http://oirase.annexia.org/reviews/ocaml-srpm-macros/ocaml-srpm-macros-1-1.fc20.src.rpm
Description: OCaml architecture macros
Fedora Account System Username: rjones

Comment 1 Richard W.M. Jones 2014-04-15 14:16:45 UTC
rpmlint says:

ocaml-srpm-macros.src: W: no-url-tag
ocaml-srpm-macros.noarch: W: no-url-tag
ocaml-srpm-macros.noarch: W: no-documentation
ocaml-srpm-macros.noarch: E: script-without-shebang /etc/rpm/macros.ocaml-srpm

Needless to say, I believe the script-without-shebang error is
completely bogus.  There is no executable bit and it's not in
an executable directory.

I can't think of a suitable URL to use, so I didn't add one.

There is no documentation because the entire package consists of
a single self-documenting file.

Comment 2 Richard W.M. Jones 2014-04-15 14:18:58 UTC
Koji scratch build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6740988

Comment 3 Peter Robinson 2014-04-16 06:36:40 UTC
I'll take this

Comment 4 Peter Robinson 2014-04-16 07:07:08 UTC
APPROVED.

Side note: you don't need the %prep and %build placeholders if they're not actually used.

+ package name satisfies the packaging naming guidelines
+ specfile name matches the package base name
+ package should satisfy packaging guidelines
+ license meets guidelines and is acceptable to Fedora
+ license matches the actual package license
+ latest version packaged
n/a %doc includes license file    
+ spec file written in American English
+ spec file is legible
n/a upstream sources match sources in the srpm
+ package successfully builds on at least one architecture
  tested using koji scratch build
+ BuildRequires list all build dependencies
n/a %find_lang instead of %{_datadir}/locale/*
n/a binary RPM with shared library files must call ldconfig in %post and %postun+ does not use Prefix: /usr
n/a package owns all directories it creates
n/a no duplicate files in %files
+ Package perserves timestamps on install
+ Permissions on files must be set properly 
+ consistent use of macros
+ package must contain code or permissible content
n/a large documentation files should go in -doc subpackage
n/a files marked %doc should not affect package runtime 
n/a header files should be in -devel
n/a static libraries should be in -static
n/a packages containing pkgconfig (.pc) files need 'Requires: pkgconfig'
n/a libfoo.so must go in -devel
n/a devel must require the fully versioned base
+ packages should not contain libtool .la files
n/a packages containing GUI apps must include %{name}.desktop file
+ packages must not own files or directories owned by other packages
+ filenames must be valid UTF-8

Optional:

- if there is no license file, packager should query upstream to include it
  I don't believe it's necessary and none of the other similar macro rpms provide it either
n/a translations of description and summary for non-English languages, if
available
+ reviewer should build the package in mock/koji
n/a the package should build into binary RPMs on all supported architectures
n/a review should test the package functions as described
+ scriptlets should be sane
n/a non -devel packages should require fully versioned base
n/a pkgconfig files should go in -devel
+ shouldn't have file dependencies outside /etc /bin /sbin /usr/bin or
/usr/sbin
n/a Package should have man files

Comment 5 Richard W.M. Jones 2014-04-16 08:20:50 UTC
Thanks for the review.  I didn't have %prep and %build originally
and as you say RPM worked fine.  However rpmlint said ...

ocaml-srpm-macros.spec: W: no-%prep-section
The spec file does not contain a %prep section.  Even if some packages don't
directly need it, section markers may be overridden in rpm's configuration to
provide additional "under the hood" functionality.  Add the section, even if
empty.

ocaml-srpm-macros.spec: W: no-%build-section
The spec file does not contain a %build section.  Even if some packages don't
directly need it, section markers may be overridden in rpm's configuration to
provide additional "under the hood" functionality, such as injection of
automatic -debuginfo subpackages.  Add the section, even if empty.

So I guess we need them, although I'm not sure I understand rpmlint's
message.

Comment 6 Richard W.M. Jones 2014-04-16 08:23:45 UTC
New Package SCM Request
=======================
Package Name: ocaml-srpm-macros
Short Description: OCaml architecture macros
Owners: rjones pmatilai
Branches: 
InitialCC:

Comment 7 Jens Petersen 2014-04-17 06:23:56 UTC
I am wondering how is this going to work in the buildsys?
Are you going to add ocaml-srpm-macros to @buildsys-build?
Otherwise AFAIK you won't be able to use this in koji.

Comment 8 Peter Robinson 2014-04-17 06:44:31 UTC
(In reply to Jens Petersen from comment #7)
> I am wondering how is this going to work in the buildsys?
> Are you going to add ocaml-srpm-macros to @buildsys-build?
> Otherwise AFAIK you won't be able to use this in koji.

it will be a dependency of redhat-rpm-config just like the perl one is

Comment 9 Panu Matilainen 2014-04-17 06:55:45 UTC
Actually it already is required by redhat-rpm-config, ocaml-srpm-macros is just a sub-package of ocaml itself ATM. That however creates a bit of a bootstrapping problem, but that's easily avoided by creating this little package, for which we have gathered around here :)

Comment 10 Jens Petersen 2014-04-17 10:05:00 UTC
Git done (by process-git-requests).

Comment 11 Jens Petersen 2014-04-17 10:09:38 UTC
Cool thanks for the explanation that makes good sense then.
Maybe I should add ghc-srpm-macros to ghc-rpm-macros too then.

Comment 12 Panu Matilainen 2014-04-17 10:31:19 UTC
(In reply to Jens Petersen from comment #11)
> Cool thanks for the explanation that makes good sense then.
> Maybe I should add ghc-srpm-macros to ghc-rpm-macros too then.

That would be very welcome from my POV.

Comment 13 Richard W.M. Jones 2014-04-17 12:44:00 UTC
Git is ready, but I'm on holiday until Tuesday and I don't
want to risk breaking the buildroot/OCaml/Rawhide/etc by pushing
a build and then leaving.  (Note this requires adjustment of the
OCaml package and a rebuild there too, so it's not a totally
straightforward change).

Therefore I'll do this on Tuesday next week.  Setting NEEDINFO of me.

Comment 14 Jens Petersen 2014-04-18 00:36:09 UTC
(In reply to Panu Matilainen from comment #12)
> (In reply to Jens Petersen from comment #11)
> > Maybe I should add ghc-srpm-macros to ghc-rpm-macros too then.
> That would be very welcome from my POV.

Okay thanks - I created bug 1089102 for that.
I think I will do it as part of the GHC_7.8 Change for F21.

Comment 15 Richard W.M. Jones 2014-04-22 10:14:06 UTC
http://koji.fedoraproject.org/koji/taskinfo?taskID=6764068


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