Bug 1249543 - Review Request: eclipse-paho-mqtt-java - MQTT client library written in Java
Summary: Review Request: eclipse-paho-mqtt-java - MQTT client library written in Java
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 968136
TreeView+ depends on / blocked
 
Reported: 2015-08-03 09:41 UTC by gil cattaneo
Modified: 2016-08-27 10:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-27 10:16:03 UTC
Type: ---
Embargoed:
zbyszek: fedora-review+


Attachments (Terms of Use)

Description gil cattaneo 2015-08-03 09:41:53 UTC
Spec URL: https://gil.fedorapeople.org/eclipse-paho-mqtt-java.spec
SRPM URL: https://gil.fedorapeople.org/eclipse-paho-mqtt-java-1.0.2-1.fc22.src.rpm
Description:
The Paho Java Client is an MQTT client library written in Java
for developing applications that run on the JVM or
other Java compatible platforms such as Android.

The Paho Java Client provides two APIs:
* MqttAsyncClient provides a fully asynchronous API
  where completion of activities is notified
  via registered callbacks.
* MqttClient is a synchronous wrapper around MqttAsyncClient
  where functions appear synchronous to the application.
Fedora Account System Username: gil

Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=10576515

Apache Spark 1.4.x dependency

Comment 2 Upstream Release Monitoring 2015-11-25 06:04:19 UTC
gil's scratch build of eclipse-paho-mqtt-java-1.0.2-1.fc23.src.rpm for rawhide completed http://koji.fedoraproject.org/koji/taskinfo?taskID=11975159

Comment 3 Zbigniew Jędrzejewski-Szmek 2016-08-21 21:55:55 UTC
Build in rawhide fails with
[ERROR] Plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-antrun-plugin:jar:1.7 has not been downloaded from it before. -> [Help 1]

maven-antrun-plugin is now at version 1.8, pom.xml needs to be patched.
It builds fine in F24 mock, it seems only F25+ is a problem.

Looks good, but please fix the build ;)

Comment 4 gil cattaneo 2016-08-21 22:52:36 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #3)
> Build in rawhide fails with
> [ERROR] Plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 or one of
> its dependencies could not be resolved: Cannot access central
> (https://repo.maven.apache.org/maven2) in offline mode and the artifact
> org.apache.maven.plugins:maven-antrun-plugin:jar:1.7 has not been downloaded
> from it before. -> [Help 1]
> 
> maven-antrun-plugin is now at version 1.8, pom.xml needs to be patched.
> It builds fine in F24 mock, it seems only F25+ is a problem.
> 
> Looks good, but please fix the build ;)

Spec URL: https://gil.fedorapeople.org/eclipse-paho-mqtt-java.spec
SRPM URL: https://gil.fedorapeople.org/eclipse-paho-mqtt-java-1.0.2-1.fc24.src.rpm

Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=15329436

Thanks for your help!
if for you is the same, i would have more interest, for now,
to try to review the dependencies listed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1363923

Comment 5 Zbigniew Jędrzejewski-Szmek 2016-08-21 23:30:42 UTC
(In reply to gil cattaneo from comment #4)
> Thanks for your help!
:)

> if for you is the same, i would have more interest, for now,
> to try to review the dependencies listed here:
> https://bugzilla.redhat.com/show_bug.cgi?id=1363923
Oh, man. I've had enough for today I think, but I'll try to find some time. Don't know when though, I'll be travelling for the next few weeks.



This is a review *template*. Besides handling the [ ]-marked tests you are
also supposed to fix the template before pasting into bugzilla:
- Add issues you find to the list of issues on top. If there isn't such
  a list, create one.
- Add your own remarks to the template checks.
- Add new lines marked [!] or [?] when you discover new things not
  listed by fedora-review.
- Change or remove any text in the template which is plain wrong. In this
  case you could also file a bug against fedora-review
- Remove the "[ ] Manual check required", you will not have any such lines
  in what you paste.
- Remove attachments which you deem not really useful (the rpmlint
  ones are mandatory, though)
- Remove this text


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

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

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

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.
EPL.

[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "BSD (3 clause)", "EPL-1.0", "Unknown or generated". 12 files
     have unknown license. Detailed output of licensecheck in
     /var/tmp/1249543-eclipse-paho-mqtt-java/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/eclipse/droplets,
     /usr/share/eclipse
→ add Requires: eclipse-filesystem

[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 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.
The name is a bit crazy, but it matches upstream ;)

[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]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 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]: Package requires other packages for directories it uses.
[x]: Package does not own files or directories owned by other packages.
[x]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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

Java:
[x]: Bundled jar/class files should be removed before build
[x]: Packages have proper BuildRequires/Requires on jpackage-utils
     Note: Maven packages do not need to (Build)Require jpackage-utils. It
     is pulled in by maven-local
[x]: Javadoc documentation files are generated and included in -javadoc
     subpackage
[x]: Javadoc subpackages should not have Requires: jpackage-utils
[x]: Javadocs are placed in %{_javadocdir}/%{name} (no -%{version} symlink)

Maven:
[x]: If package contains pom.xml files install it (including metadata) even
     when building with ant
[x]: POM files have correct Maven mapping
[x]: Maven packages should use new style packaging
[x]: Old add_to_maven_depmap macro is not being used
[x]: Packages DO NOT have Requires(post) and Requires(postun) on jpackage-
     utils for %update_maven_depmap macro
[x]: Package DOES NOT use %update_maven_depmap in %post/%postun
[x]: Packages use .mfiles file list instead of %{_datadir}/maven2/poms

===== 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.
[x]: Final provides and requires are sane (see attachments).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in eclipse-
     paho-mqtt-java-tests , eclipse-paho-mqtt-java-javadoc
Not needed.

[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
Tests disabled.

[x]: 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]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

Java:
[x]: Package uses upstream build method (ant/maven/etc.)
[x]: Packages are noarch unless they use JNI

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

Generic:
[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: eclipse-paho-mqtt-java-1.0.2-1.fc26.noarch.rpm
          eclipse-paho-mqtt-java-tests-1.0.2-1.fc26.noarch.rpm
          eclipse-paho-mqtt-java-javadoc-1.0.2-1.fc26.noarch.rpm
          eclipse-paho-mqtt-java-1.0.2-1.fc26.src.rpm
eclipse-paho-mqtt-java-tests.noarch: W: invalid-url URL: https://eclipse.org/paho/clients/java/ <urlopen error _ssl.c:629: The handshake operation timed out>
Works fine in firefox.

eclipse-paho-mqtt-java-tests.noarch: W: no-documentation
4 packages and 0 specfiles checked; 0 errors, 2 warnings.

Rpmlint (installed packages)
----------------------------
eclipse-paho-mqtt-java-tests.noarch: W: no-documentation
3 packages and 0 specfiles checked; 0 errors, 1 warnings.

Requires
--------
eclipse-paho-mqtt-java (rpmlib, GLIBC filtered):
    java-headless
    javapackages-tools

eclipse-paho-mqtt-java-javadoc (rpmlib, GLIBC filtered):
    javapackages-tools

eclipse-paho-mqtt-java-tests (rpmlib, GLIBC filtered):
    java-headless
    javapackages-tools
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3)

Provides
--------
eclipse-paho-mqtt-java:
    eclipse-paho-mqtt-java
    mvn(org.eclipse.paho:java-parent:pom:)
    mvn(org.eclipse.paho:org.eclipse.paho.client.eclipse.feature)
    mvn(org.eclipse.paho:org.eclipse.paho.client.eclipse.view)
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3)
    mvn(org.eclipse.paho:org.eclipse.paho.mqtt.utility)
    mvn(org.eclipse.paho:org.eclipse.paho.mqtt.utility:pom:)
    mvn(org.eclipse.paho:org.eclipse.paho.ui.core)
    mvn(org.eclipse.paho:org.eclipse.paho.ui.plugin:pom:)
    mvn(org.eclipse.paho:org.eclipse.paho.ui:pom:)
    osgi(org.eclipse.paho.client.eclipse.feature)
    osgi(org.eclipse.paho.client.eclipse.view)
    osgi(org.eclipse.paho.client.mqttv3)
    osgi(org.eclipse.paho.ui.core)

eclipse-paho-mqtt-java-javadoc:
    eclipse-paho-mqtt-java-javadoc

eclipse-paho-mqtt-java-tests:
    eclipse-paho-mqtt-java-tests
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3.test)
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3.test::test-sources:)
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3.test::tests:)
    mvn(org.eclipse.paho:org.eclipse.paho.client.mqttv3.test:pom:)

All good. Should add depenedency on eclipse-filesystem.
Package is APPROVED.

Comment 6 gil cattaneo 2016-08-22 00:02:23 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #5)

> All good. Should add depenedency on eclipse-filesystem.
 Done
> Package is APPROVED.

Thanks for the review!

create new SCM requests:
https://admin.fedoraproject.org/pkgdb/package/requests/7351
https://admin.fedoraproject.org/pkgdb/package/requests/7352

Comment 7 Gwyn Ciesla 2016-08-22 14:40:49 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/eclipse-paho-mqtt-java

Comment 8 Fedora Update System 2016-08-22 22:21:13 UTC
eclipse-paho-mqtt-java-1.0.2-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c05477e19f

Comment 9 Fedora Update System 2016-08-23 09:24:07 UTC
eclipse-paho-mqtt-java-1.0.2-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c05477e19f

Comment 10 Fedora Update System 2016-08-27 10:16:01 UTC
eclipse-paho-mqtt-java-1.0.2-1.fc25 has been pushed to the Fedora 25 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.