Bug 2034816 - Review Request: java-jd-decompiler - Decompiler for JAVA classes
Summary: Review Request: java-jd-decompiler - Decompiler for JAVA classes
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: 35
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Petra Alice Mikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-22 09:15 UTC by Jaya
Modified: 2022-12-13 16:09 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-13 16:09:36 UTC
Type: ---
Embargoed:
pmikova: fedora-review+


Attachments (Terms of Use)

Description Jaya 2021-12-22 09:15:43 UTC
Spec URL: https://jhuttana.fedorapeople.org/java-jd-decompiler/java-jd-decompiler.spec
SRPM URL: https://jhuttana.fedorapeople.org/java-jd-decompiler/java-jd-decompiler-1.1.3-1.fc35.src.rpm
Description:  A standalone JAVA library containing the JAVA decompiler of "Java Decompiler project".
Fedora Account System Username: jhuttana

Comment 1 Jaya 2021-12-22 09:18:18 UTC
@pmikova Could you please review this package and provide your comments?

Comment 2 jiri vanek 2021-12-22 13:47:42 UTC
btw, this builds fine in https://copr.fedorainfracloud.org/coprs/jvanek/java17/builds/

Comment 3 Jaya 2021-12-22 15:42:24 UTC
Thank you! for verifying that Jiri

Comment 4 Petra Alice Mikova 2022-02-02 11:20:08 UTC
Hi Jaya. Apologies for the delay!

I reviewed your package - it is mostly okay, one thing it needs is versioned dependencies in subpackages. If not, please specify why. Also take a look at the rpmlint output and if possible, try to fix the issues or reason why it is not necessary.

After these changes, the package is okay to go.

Thank you!

Generated review template below:


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

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



===== 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.
[x]: License field in the package spec file matches the actual license.
     Note: There is no build directory. Running licensecheck on vanilla
     upstream sources. No licenses found. Please check the source files for
     licenses manually.
[x]: License file installed when any subpackage combination is installed.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[x]: 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.
[x]: 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.
[x]: 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 20480 bytes in 2 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 must not depend on deprecated() packages.
[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
     Note: Can't find any BUILD directory (--prebuilt option?)
[x]: Packages have proper BuildRequires/Requires on javapackages-tools
     (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: javapackages-tools
     (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:
[x]: 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).
[!]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in java-jd-
     decompiler-core
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: 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.
[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: java-jd-decompiler-1.1.3-1.fc36.noarch.rpm
          java-jd-decompiler-javadoc-1.1.3-1.fc36.noarch.rpm
          java-jd-decompiler-core-1.1.3-1.fc36.noarch.rpm
          java-jd-decompiler-1.1.3-1.fc36.src.rpm
java-jd-decompiler.noarch: E: summary-too-long C Standalone JAVA library containing the JAVA decompiler of "Java Decompiler project"
java-jd-decompiler.noarch: W: description-shorter-than-summary
java-jd-decompiler-core.noarch: E: description-line-too-long C JD-Core is a standalone JAVA library containing the JAVA decompiler of "Java Decompiler project".
java-jd-decompiler-core.noarch: E: description-line-too-long C It support Java 1.8.0 to Java 12.0, including Lambda expressions, method references and default methods.
java-jd-decompiler.src: E: summary-too-long C Standalone JAVA library containing the JAVA decompiler of "Java Decompiler project"
java-jd-decompiler.src: W: description-shorter-than-summary
java-jd-decompiler.src: W: strange-permission java-jd-decompiler 755
4 packages and 0 specfiles checked; 4 errors, 3 warnings.


Source checksums
----------------
https://github.com/java-decompiler/jd-core/archive/refs/tags/v1.1.3.tar.gz :
  CHECKSUM(SHA256) this package     : 98dfdbef1e6ac1814bf5fe4b58027eb655d85b92abf266e957982dd09f7899ba
  CHECKSUM(SHA256) upstream package : 98dfdbef1e6ac1814bf5fe4b58027eb655d85b92abf266e957982dd09f7899ba


Requires
--------
java-jd-decompiler (rpmlib, GLIBC filtered):
    /usr/bin/bash
    java-jd-decompiler-core

java-jd-decompiler-javadoc (rpmlib, GLIBC filtered):
    javapackages-filesystem

java-jd-decompiler-core (rpmlib, GLIBC filtered):
    (java-headless or java-11-headless)
    javapackages-filesystem



Provides
--------
java-jd-decompiler:
    java-jd-decompiler

java-jd-decompiler-javadoc:
    java-jd-decompiler-javadoc

java-jd-decompiler-core:
    java-jd-decompiler-core
    mvn(org.jd:jd-core)
    mvn(org.jd:jd-core:pom:)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 2034816
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api, Java
Disabled plugins: Ocaml, R, Perl, PHP, Haskell, Python, SugarActivity, fonts, C/C++
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 5 Jaya 2022-02-03 11:49:43 UTC
Hi Alice,

Thanks for the review. I have addressed the review comments.
Uploaded the files here: 
Spec URL: https://jhuttana.fedorapeople.org/java-jd-decompiler/java-jd-decompiler.spec
SRPM URL: https://jhuttana.fedorapeople.org/java-jd-decompiler/java-jd-decompiler-1.1.3-1.fc35.src.rpm

For the Error
[!]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in java-jd-
     decompiler-core
I have referred : https://docs.fedoraproject.org/en-US/packaging-guidelines/#_requiring_base_package
I am not sure whether I understood it right and made the appropriate changes :)

Could you please check?

Comment 6 Petra Alice Mikova 2022-03-07 14:02:14 UTC
Hi,

the provides look correct from what I can see, so the changes should be correct.

You may proceed with the release.

Thank you!

Comment 7 Jaya 2022-03-07 17:28:12 UTC
Thank you Alice :) I will go ahead with release then

Comment 8 Tomas Hrcka 2022-03-15 07:10:01 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/java-jd-decompiler

Comment 9 Ben Cotton 2022-11-29 17:31:50 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 10 Ben Cotton 2022-12-13 16:09:36 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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