Bug 1429970 - Review Request: libjaylink
Summary: Review Request: libjaylink
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alex G.
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1415527
TreeView+ depends on / blocked
 
Reported: 2017-03-07 15:20 UTC by Jiri Kastner
Modified: 2017-12-10 18:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-10 18:22:11 UTC
Type: Bug
Embargoed:
mr.nuke.me: fedora-review+


Attachments (Terms of Use)

Description Jiri Kastner 2017-03-07 15:20:53 UTC
Description of problem:
SPEC - http://copr-dist-git.fedorainfracloud.org/cgit/jkastner/openocd/libjaylink.git/plain/libjaylink.spec?h=f26
SRPM - https://copr-be.cloud.fedoraproject.org/results/jkastner/openocd/fedora-26-x86_64/00495412-libjaylink/libjaylink-0.1.0-1.fc26.src.rpm

openocd has new dependency - libjaylink which is used for communication with segger jlink adapters.

Comment 1 Alex G. 2017-03-07 18:00:34 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated

Issues:
=======
- All build dependencies are listed in BuildRequires, except for any that
  are listed in the exceptions section of Packaging Guidelines.
  Note: These BR are not needed: gcc
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#Exceptions_2


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Header files in -devel subpackage, if present.
[x]: ldconfig called in %post and %postun if required.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.
[x]: Development (unversioned) .so files in -devel subpackage, if present.

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]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "MIT/X11 (BSD like)", "GPL (v2) GPL (v2)", "GPL (v2 or later)",
     "Unknown or generated". 12 files have unknown license. Detailed output
     of licensecheck in /home/mrnuke/src/ixo-usb-jtag/review-
     libjaylink/licensecheck.txt

     licencecheck finds GPLv2 on libjaylink/core.c, but actual text in the file
     contains "or (at your option) any later version", so GPLv2+ is appropriate.

[x]: License file installed when any subpackage combination is installed.
[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.
[x]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: 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.
[!]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 3 files.
[x]: Package complies to the Packaging Guidelines
[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).
[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 %license.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[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

===== 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     libjaylink-debuginfo
     Red herring (https://bugzilla.redhat.com/show_bug.cgi?id=470691)
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Scriptlets must be sane, if used.
[-]: 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.
[?]: Packages should try to preserve timestamps of original installed
     files.
[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]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

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


Rpmlint
-------
Checking: libjaylink-0.1.0-1.fc24.x86_64.rpm
          libjaylink-devel-0.1.0-1.fc24.x86_64.rpm
          libjaylink-debuginfo-0.1.0-1.fc24.x86_64.rpm
          libjaylink-0.1.0-1.fc24.src.rpm
libjaylink-devel.x86_64: W: only-non-binary-in-usr-lib
4 packages and 0 specfiles checked; 0 errors, 1 warnings.




Rpmlint (debuginfo)
-------------------
Checking: libjaylink-debuginfo-0.1.0-1.fc24.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: No such file or directory
libjaylink-devel.x86_64: W: only-non-binary-in-usr-lib
3 packages and 0 specfiles checked; 0 errors, 1 warnings.



Requires
--------
libjaylink-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    libjaylink(x86-64)
    libjaylink.so.0()(64bit)
    pkgconfig(libusb-1.0)

libjaylink (rpmlib, GLIBC filtered):
    /sbin/ldconfig
    libc.so.6()(64bit)
    libusb-1.0.so.0()(64bit)
    rtld(GNU_HASH)

libjaylink-debuginfo (rpmlib, GLIBC filtered):



Provides
--------
libjaylink-devel:
    libjaylink-devel
    libjaylink-devel(x86-64)
    pkgconfig(libjaylink)

libjaylink:
    libjaylink
    libjaylink(x86-64)
    libjaylink.so.0()(64bit)

libjaylink-debuginfo:
    libjaylink-debuginfo
    libjaylink-debuginfo(x86-64)



Source checksums
----------------
http://projects.zapb.de/libjaylink/download/libjaylink-0.1.0.tar.gz :
  CHECKSUM(SHA256) this package     : 28d275e296aa77671c9e32c54b92d8e1ed78960f51fdfef20605bbf825145cf0
  CHECKSUM(SHA256) upstream package : 28d275e296aa77671c9e32c54b92d8e1ed78960f51fdfef20605bbf825145cf0


Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -n libjaylink
Buildroot used: fedora-24-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 2 Alex G. 2017-03-07 18:01:31 UTC
Requested changes summary
=========================

[!]: Requires correct, justified where necessary.

> BuildRequires:  pkgconfig, libusbx-devel
Should be expressed as pkgconfig(libusb)
https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires

> BuildRequires:  gcc
Part of the standard buildroot. No need to list explicitly.

> BuildRequires:  libtool, automake, autoconf
auto*make is not run during build, so these are not requirements.

Once you are done, the line should read: BuildRequires:  pkgconfig(libusb)


[!] contrib/99-libjaylink.rules not packaged.

Should package the udev rules files for this to be useful for non-root users.
Will need to modify it a bit to match Fedora:
sed 's/MODE="664", GROUP="plugdev"/TAG+="uaccess"/'
before installing to /lib/udev/rules.d

Comment 3 Alex G. 2017-03-07 20:48:30 UTC
None of these are blockers, so package APPROVED.

Comment 4 Gwyn Ciesla 2017-03-08 15:27:05 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/libjaylink


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