Bug 912152 - Review Request: lua-event - This is a binding of libevent to Lua
Summary: Review Request: lua-event - This is a binding of libevent to Lua
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Greg Bailey
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-17 22:42 UTC by Jamie Nguyen
Modified: 2013-05-07 18:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-27 00:12:02 UTC
Type: ---
Embargoed:
gbailey: fedora-review+
pbabinca: fedora-cvs+


Attachments (Terms of Use)

Description Jamie Nguyen 2013-02-17 22:42:39 UTC
Spec URL: http://jamielinux.fedorapeople.org/lua-event/lua-event.spec
SRPM URL: http://jamielinux.fedorapeople.org/lua-event/lua-event-0.4.1-1.fc19.src.rpm
Fedora Account System Username: jamielinux

Description:
This package contains the bindings for libevent, a synchronous event
notification library that provides a mechanish to execute a callback function
when a specific event occurs on a file descriptor or after a timeout has been
reached.

Comment 1 Greg Bailey 2013-04-16 20:38:44 UTC
From an informal review, I noticed:

Rpmlint
-------
Checking: lua-event-0.4.1-1.fc18.x86_64.rpm
lua-event.x86_64: W: spelling-error Summary(en_US) libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US mechanish -> mechanism, mechanistic, mechanics
lua-event.x86_64: W: invalid-license LGPLv2.1

Fix spelling of "mechanish" to "mechanism".

According to the table of licenses at:
https://fedoraproject.org/wiki/Licensing:Main

The license string should be "LGPLv2", not "LGPLv2.1".

I really need this RPM for EPEL 6; any chance you'd consider providing or maintaining that?  I can build it pretty easily but I have to skip the "ikiwiki" documentation step, since "ikiwiki" isn't available in EL6 and I can read the markdown docs easier than HTML anyway...

Comment 2 Jamie Nguyen 2013-04-16 21:38:25 UTC
Thanks Greg for the informal review!

I definitely want this in EL6 but didn't realise that ikiwiki wasn't available. Thanks for pointing that out.

Spec URL: http://jamielinux.fedorapeople.org/lua-event/lua-event.spec
SRPM URL: http://jamielinux.fedorapeople.org/lua-event/lua-event-0.4.3-1.fc19.src.rpm

%changelog
* Tue Apr 16 2013 Jamie Nguyen <jamielinux> - 0.4.3-1
- update to upstream release 0.4.3
- fix typo in %%description
- fix license tag
- make sure CFLAGS/LDFLAGS are respected
- put documentation in -doc subpackage, and only build for Fedora as ikiwiki
  is not available on EPEL

Comment 3 Greg Bailey 2013-04-16 23:29:27 UTC
Things to address:


[!]: Package must own all directories that it creates.

This package creates the directory:

/usr/lib64/lua/5.1/luaevent

which is not owned by the RPM:

$ rpm -qf /usr/lib64/lua/5.1/luaevent
file /usr/lib64/lua/5.1/luaevent is not owned by any package


Other items:

The lua-event-doc RPM includes all documentation under the "html/"
subdirectory.  You might consider removing the "html/" level as it's the
only element in there.  i.e. lua-event-doc could contain:

/usr/share/doc/lua-event-doc-0.4.3/api.html

instead of:

/usr/share/doc/lua-event-doc-0.4.3/html/api.html


The build on EPEL doesn't include any documentation, either in the base
"lua-event" nor the "lua-event-doc" RPM.  It could be helpful to at least
include the markdown documentation for EPEL builds by having something like:

%doc CHANGELOG README doc/*

(You could have the markdown stuff included as %doc in the base RPM for both
EPEL and Fedora builds, and just leave the ikiwiki generated HTML stuff for the -doc package)


Package Review
==============

Key:
[x] = Pass
[!] = Fail
[-] = Not applicable
[?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[ ]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[ ]: Package is not known to require ExcludeArch.
[ ]: Fully versioned dependency in subpackages, if present.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in lua-event-
     doc
[ ]: Package complies to the Packaging Guidelines
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "Unknown or generated". 1 files have unknown license. Detailed output of
     licensecheck in /home/gbailey/912152-lua-event/licensecheck.txt
[ ]: License file installed when any subpackage combination is installed.
[ ]: Package consistently uses macro is (instead of hard-coded directory
     names).
[ ]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[!]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[ ]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Useful -debuginfo package or justification otherwise.
[ ]: Large documentation must go in a -doc subpackage.
     Note: Documentation size is 40960 bytes in 3 files.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[x]: 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 is included in %doc.
[x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package do not use a name that already exist
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local
[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).

===== SHOULD items =====

Generic:
[!]: Spec use %global instead of %define.
     Note: %define luaver 5.1 %define lualibdir %{_libdir}/lua/%{luaver}
     %define luapkgdir %{_datadir}/lua/%{luaver}
[-]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
[ ]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[ ]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[ ]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX is a working URL.

===== EXTRA items =====

Generic:
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: lua-event-0.4.3-1.fc18.x86_64.rpm
          lua-event-doc-0.4.3-1.fc18.x86_64.rpm
lua-event.x86_64: W: spelling-error Summary(en_US) libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US libevent -> lib event, lib-event, benevolent
2 packages and 0 specfiles checked; 0 errors, 2 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint lua-event lua-event-doc
lua-event.x86_64: W: spelling-error Summary(en_US) libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US libevent -> lib event, lib-event, benevolent
2 packages and 0 specfiles checked; 0 errors, 2 warnings.
# echo 'rpmlint-done:'



Requires
--------
lua-event (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libevent-2.0.so.5()(64bit)
    lua(abi)
    lua-socket
    rtld(GNU_HASH)

lua-event-doc (rpmlib, GLIBC filtered):



Provides
--------
lua-event:
    core.so()(64bit)
    lua-event
    lua-event(x86-64)

lua-event-doc:
    lua-event-doc
    lua-event-doc(x86-64)



Unversioned so-files
--------------------
lua-event: /usr/lib64/lua/5.1/luaevent/core.so

MD5-sum check
-------------
https://github.com/harningt/luaevent/archive/v0.4.3.tar.gz :
  CHECKSUM(SHA256) this package     : 9a3ea7671caa95af2763a7125818991b3742168db75b3025d04af5241349d9c5
  CHECKSUM(SHA256) upstream package : 9a3ea7671caa95af2763a7125818991b3742168db75b3025d04af5241349d9c5


Generated by fedora-review 0.4.0 (660ce56) last change: 2013-01-29
Buildroot used: fedora-18-x86_64
Command line :/usr/bin/fedora-review -b 912152

Comment 4 Jamie Nguyen 2013-04-17 20:50:18 UTC
Spec URL: http://jamielinux.fedorapeople.org/lua-event/lua-event.spec
SRPM URL: http://jamielinux.fedorapeople.org/lua-event/lua-event-0.4.3-2.fc19.src.rpm

%changelog
* Wed Apr 17 2013 Jamie Nguyen <jamielinux> - 0.4.3-2
- amend directory ownership
- include markdown documentation
- change from %%define to %%global

Comment 5 Greg Bailey 2013-04-17 21:40:50 UTC
Looks like that should be:

Spec URL: http://jamielinux.fedorapeople.org/lua-event/lua-event.spec
SRPM URL: http://jamielinux.fedorapeople.org/lua-event/lua-event-0.4.3-2.fc18.src.rpm

(Built with fc18 instead of fc19)

Comment 6 Greg Bailey 2013-04-17 22:11:09 UTC
Looks great; approved!



Package Review
==============

Key:
[x] = Pass
[!] = Fail
[-] = Not applicable
[?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[ ]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[ ]: Package is not known to require ExcludeArch.
[ ]: Fully versioned dependency in subpackages, if present.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in lua-event-
     doc
[ ]: Package complies to the Packaging Guidelines
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "Unknown or generated". 1 files have unknown license. Detailed output of
     licensecheck in /home/gbailey/912152-lua-event/licensecheck.txt
[ ]: License file installed when any subpackage combination is installed.
[ ]: Package consistently uses macro is (instead of hard-coded directory
     names).
[ ]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[ ]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[-]: Useful -debuginfo package or justification otherwise.
[ ]: Large documentation must go in a -doc subpackage.
     Note: Documentation size is 51200 bytes in 10 files.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[x]: 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 is included in %doc.
[x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package do not use a name that already exist
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local
[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate file
     from upstream, the packager SHOULD query upstream to include it.
[ ]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[ ]: Patches link to upstream bugs/comments/lists or are otherwise justified.
[ ]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define.

===== EXTRA items =====

Generic:
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: lua-event-0.4.3-2.fc18.x86_64.rpm
          lua-event-doc-0.4.3-2.fc18.x86_64.rpm
lua-event.x86_64: W: spelling-error Summary(en_US) libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US libevent -> lib event, lib-event, benevolent
2 packages and 0 specfiles checked; 0 errors, 2 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint lua-event lua-event-doc
lua-event.x86_64: W: spelling-error Summary(en_US) libevent -> lib event, lib-event, benevolent
lua-event.x86_64: W: spelling-error %description -l en_US libevent -> lib event, lib-event, benevolent
2 packages and 0 specfiles checked; 0 errors, 2 warnings.
# echo 'rpmlint-done:'



Requires
--------
lua-event (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libevent-2.0.so.5()(64bit)
    lua(abi)
    lua-socket
    rtld(GNU_HASH)

lua-event-doc (rpmlib, GLIBC filtered):



Provides
--------
lua-event:
    core.so()(64bit)
    lua-event
    lua-event(x86-64)

lua-event-doc:
    lua-event-doc
    lua-event-doc(x86-64)



Unversioned so-files
--------------------
lua-event: /usr/lib64/lua/5.1/luaevent/core.so

MD5-sum check
-------------
https://github.com/harningt/luaevent/archive/v0.4.3.tar.gz :
  CHECKSUM(SHA256) this package     : 9a3ea7671caa95af2763a7125818991b3742168db75b3025d04af5241349d9c5
  CHECKSUM(SHA256) upstream package : 9a3ea7671caa95af2763a7125818991b3742168db75b3025d04af5241349d9c5


Generated by fedora-review 0.4.0 (660ce56) last change: 2013-01-29
Buildroot used: fedora-18-x86_64
Command line :/usr/bin/fedora-review -b 912152

Comment 7 Jamie Nguyen 2013-04-18 06:09:46 UTC
New Package SCM Request
=======================
Package Name: lua-event
Short Description: This is a binding of libevent to Lua
Owners: jamielinux
Branches: f18 f19 el6
InitialCC:

Comment 8 Pavol Babinčák 2013-04-18 12:09:16 UTC
Git done (by process-git-requests).

Comment 9 Fedora Update System 2013-04-18 19:24:37 UTC
lua-event-0.4.3-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/lua-event-0.4.3-2.fc19

Comment 10 Fedora Update System 2013-04-18 19:25:24 UTC
lua-event-0.4.3-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/lua-event-0.4.3-2.fc18

Comment 11 Fedora Update System 2013-04-18 19:26:03 UTC
lua-event-0.4.3-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/lua-event-0.4.3-2.el6

Comment 12 Fedora Update System 2013-04-19 04:50:23 UTC
lua-event-0.4.3-2.fc18 has been pushed to the Fedora 18 testing repository.

Comment 13 Fedora Update System 2013-04-27 00:12:03 UTC
lua-event-0.4.3-2.fc18 has been pushed to the Fedora 18 stable repository.

Comment 14 Fedora Update System 2013-04-27 03:18:05 UTC
lua-event-0.4.3-2.fc19 has been pushed to the Fedora 19 stable repository.

Comment 15 Fedora Update System 2013-05-07 18:08:37 UTC
lua-event-0.4.3-2.el6 has been pushed to the Fedora EPEL 6 stable repository.


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