Bug 2366506 - Review Request: lief - Library to Instrument Executable Formats
Summary: Review Request: lief - Library to Instrument Executable Formats
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://lief.re
Whiteboard:
Depends On: 2367753
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-15 13:22 UTC by Cristian Le
Modified: 2026-06-10 08:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
benson_muite: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 9050195 to 9069433 (2.52 KB, patch)
2025-05-21 10:41 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 9069433 to 9069438 (932 bytes, patch)
2025-05-21 10:47 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 9103867 to 10492922 (3.06 KB, patch)
2026-05-21 15:17 UTC, Fedora Review Service
no flags Details | Diff
Spec file that builds examples and runs some of them as a smoke test (4.16 KB, text/plain)
2026-06-10 08:32 UTC, Benson Muite
no flags Details

Description Cristian Le 2025-05-15 13:22:01 UTC
Spec URL: https://lecris.fedorapeople.org/reviews/lief/lief.spec
SRPM URL: https://lecris.fedorapeople.org/reviews/lief/lief-0.16.5-1.fc43.src.rpm

Description:
The purpose of this project is to provide a cross-platform library to parse,
modify and abstract ELF, PE and MachO formats.

Fedora Account System Username: lecris


Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=132773120

Comment 1 Fedora Review Service 2025-05-15 13:48:30 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9050195
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/09050195-lief/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Benson Muite 2025-05-19 17:50:32 UTC
The first part of the soname should not be globbed
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shared_libraries

Can tcb-span be packaged instead of bundled:
https://github.com/tcbrindle/span

Can documentation be generated?
https://github.com/lief-project/LIEF/tree/main/doc
Suggest using docbook or any other form that will not introduce javascript
and additional fonts but will still be reasonably complete.

Comment 3 Cristian Le 2025-05-21 10:39:39 UTC
Spec URL: https://lecris.fedorapeople.org/reviews/lief/lief.spec
SRPM URL: https://lecris.fedorapeople.org/reviews/lief/lief-0.16.5^20250521gitdc66460-1.fc43.src.rpm

Unbundled `span` (see dependent bug), and added a soversion macro. About documentation though, I am reluctant to generate it because it does not have `man` or other artifacts that are usable by the system, and there may be unpackaged dependencies.

Comment 4 Fedora Review Service 2025-05-21 10:41:48 UTC
Created attachment 2091015 [details]
The .spec file difference from Copr build 9050195 to 9069433

Comment 5 Fedora Review Service 2025-05-21 10:41:51 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9069433
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/09069433-lief/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 6 Cristian Le 2025-05-21 10:46:08 UTC
Spec URL: https://lecris.fedorapeople.org/reviews/lief/lief.spec
SRPM URL: https://lecris.fedorapeople.org/reviews/lief/lief-0.17.0~20250521gitdc66460-1.fc43.src.rpm

Version should have been 0.17.0 to match the library version. Using a pre-release indicator for the snapshot

Comment 7 Fedora Review Service 2025-05-21 10:47:51 UTC
Created attachment 2091016 [details]
The .spec file difference from Copr build 9069433 to 9069438

Comment 8 Fedora Review Service 2025-05-21 10:47:53 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9069438
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/09069438-lief/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 9 Benson Muite 2025-05-27 12:14:32 UTC
[fedora-review-service-build]

Comment 10 Fedora Review Service 2025-05-27 12:16:59 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9092229
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/09092229-lief/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 11 Cristian Le 2025-05-30 08:48:27 UTC
[fedora-review-service-build]

Comment 12 Fedora Review Service 2025-05-30 09:05:52 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9103867
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/09103867-lief/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 14 Cristian Le 2026-05-19 10:11:17 UTC
Hi Benson, do you still have time to look over this one?

Comment 15 Benson Muite 2026-05-20 19:35:34 UTC
Package Review
==============

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



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

C/C++:
[x]: Package does not contain kernel modules.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: ldconfig not called in %post and %postun for Fedora 28 and later.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[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: "Unknown or generated", "*No copyright* Apache License 2.0",
     "BSD 3-Clause License", "Apache License 2.0". 1009 files have unknown
     license. Detailed output of licensecheck in
     /home/fedora-packaging/reviews/lief/2366506-lief/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[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.
[ ]: 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]: Useful -debuginfo package or justification otherwise.
[ ]: Package is not known to require an ExcludeArch tag.
[ ]: 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]: The License field must be a valid SPDX expression.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[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.
[x]: Final provides and requires are sane (see attachments).
[ ]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in lief-
     devel
[ ]: Package functions as described.
[!]: 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.
[ ]: 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]: 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:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[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.


Rpmlint
-------
Checking: lief-0.17.0~20250730git971a8de-1.fc45.x86_64.rpm
          lief-devel-0.17.0~20250730git971a8de-1.fc45.x86_64.rpm
          lief-0.17.0~20250730git971a8de-1.fc45.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmp070amh8z')]
checks: 32, packages: 3

lief-devel.x86_64: E: zero-length /usr/include/LIEF/PE/enums.inc
lief.x86_64: W: no-documentation
lief-devel.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 1 errors, 2 warnings, 19 filtered, 1 badness; has taken 1.7 s 




Rpmlint (debuginfo)
-------------------
Checking: lief-debuginfo-0.17.0~20250730git971a8de-1.fc45.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpfxtruluy')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 3.2 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.9.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3

lief-devel.x86_64: E: zero-length /usr/include/LIEF/PE/enums.inc
lief-devel.x86_64: W: no-documentation
lief.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 1 errors, 2 warnings, 20 filtered, 1 badness; has taken 1.0 s 



Source checksums
----------------
https://github.com/lief-project/LIEF/archive/971a8deac4cfded62952b0a9b46e14c693f727f7/LIEF-971a8deac4cfded62952b0a9b46e14c693f727f7.tar.gz :
  CHECKSUM(SHA256) this package     : 88c3d7b0893e69845fe600a16ef3f22b89b7c70c73a8738b273802446c46cc4a
  CHECKSUM(SHA256) upstream package : 88c3d7b0893e69845fe600a16ef3f22b89b7c70c73a8738b273802446c46cc4a


Requires
--------
lief (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libfmt.so.11()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.4)(64bit)
    libm.so.6()(64bit)
    libmbedcrypto.so.16()(64bit)
    libmbedx509.so.7()(64bit)
    libspdlog.so.1.15()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

lief-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    cmake-filesystem(x86-64)
    libLIEF.so.0()(64bit)
    lief



Provides
--------
lief:
    libLIEF.so.0()(64bit)
    lief
    lief(x86-64)

lief-devel:
    cmake(LIEF)
    cmake(lief)
    lief-devel
    lief-devel(x86-64)
    pkgconfig(LIEF)



Diff spec file in url and in SRPM
---------------------------------
--- /home/fedora-packaging/reviews/lief/2366506-lief/srpm/lief.spec	2026-05-20 21:35:29.911804785 +0300
+++ /home/fedora-packaging/reviews/lief/2366506-lief/srpm-unpacked/lief.spec	2025-07-31 03:00:00.000000000 +0300
@@ -1,2 +1,12 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.8.1)
+## RPMAUTOSPEC: autorelease, autochangelog
+%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
+    release_number = 1;
+    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
+    print(release_number + base_release_number - 1);
+}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
+## END: Set by rpmautospec
+
 # Python API needs more work
 %bcond python 0
@@ -152,3 +162,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Thu Jul 31 2025 John Doe <packager> - 0.17.0~20250730git971a8de-1
+- Uncommitted changes
+## END: Generated by rpmautospec


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

Comments:
a) Mostly seems ok.  Can you try the latest release to see if tests can be run?

Comment 17 Fedora Review Service 2026-05-21 15:17:55 UTC
Created attachment 2142221 [details]
The .spec file difference from Copr build 9103867 to 10492922

Comment 18 Fedora Review Service 2026-05-21 15:17:58 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10492922
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2366506-lief/fedora-rawhide-x86_64/10492922-lief/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 19 Benson Muite 2026-06-10 08:30:38 UTC
Package Review
==============

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



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

C/C++:
[x]: Package does not contain kernel modules.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: ldconfig not called in %post and %postun for Fedora 28 and later.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[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: "Unknown or generated", "*No copyright* Apache License 2.0",
     "BSD 3-Clause License", "Apache License 2.0". 1184 files have unknown
     license. Detailed output of licensecheck in
     /home/fedora-packaging/reviews/lief/2366506-lief/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[-]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[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.
[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]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[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]: The License field must be a valid SPDX expression.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[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.
[x]: Final provides and requires are sane (see attachments).
[!]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in lief-
     devel
[ ]: 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.
[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]: 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:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[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.


Rpmlint
-------
Checking: lief-0.17.6-1.fc45.x86_64.rpm
          lief-devel-0.17.6-1.fc45.x86_64.rpm
          lief-0.17.6-1.fc45.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpmfz2y8kp')]
checks: 32, packages: 3

lief-devel.x86_64: E: zero-length /usr/include/LIEF/PE/enums.inc
lief.x86_64: W: no-documentation
lief-devel.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 1 errors, 2 warnings, 19 filtered, 1 badness; has taken 1.8 s 




Rpmlint (debuginfo)
-------------------
Checking: lief-debuginfo-0.17.6-1.fc45.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpczdnjoch')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 5 filtered, 0 badness; has taken 3.0 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.9.0
configuration:
    /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3

lief-devel.x86_64: E: zero-length /usr/include/LIEF/PE/enums.inc
lief-devel.x86_64: W: no-documentation
lief.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 1 errors, 2 warnings, 20 filtered, 1 badness; has taken 0.8 s 



Source checksums
----------------
https://github.com/lief-project/LIEF/archive/0.17.6/LIEF-0.17.6.tar.gz :
  CHECKSUM(SHA256) this package     : 5fbbd19c85912d417eabbaef2b98e70144496356964685b82e0792d708b9be87
  CHECKSUM(SHA256) upstream package : 5fbbd19c85912d417eabbaef2b98e70144496356964685b82e0792d708b9be87


Requires
--------
lief (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libfmt.so.11()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.4)(64bit)
    libm.so.6()(64bit)
    libmbedcrypto.so.16()(64bit)
    libmbedx509.so.7()(64bit)
    libspdlog.so.1.15()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

lief-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    cmake-filesystem(x86-64)
    libLIEF.so.0()(64bit)
    lief



Provides
--------
lief:
    libLIEF.so.0()(64bit)
    lief
    lief(x86-64)

lief-devel:
    cmake(LIEF)
    cmake(lief)
    lief-devel
    lief-devel(x86-64)
    pkgconfig(LIEF)



Diff spec file in url and in SRPM
---------------------------------
--- /home/fedora-packaging/reviews/lief/2366506-lief/srpm/lief.spec	2026-06-10 06:55:04.126125032 +0300
+++ /home/fedora-packaging/reviews/lief/2366506-lief/srpm-unpacked/lief.spec	2026-05-21 03:00:00.000000000 +0300
@@ -1,2 +1,12 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.8.4)
+## RPMAUTOSPEC: autorelease, autochangelog
+%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
+    release_number = 1;
+    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
+    print(release_number + base_release_number - 1);
+}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
+## END: Set by rpmautospec
+
 # Python API needs some more work
 # - does not pick up the cmake configs
@@ -166,3 +176,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Thu May 21 2026 John Doe <packager> - 0.17.6-1
+- Uncommitted changes
+## END: Generated by rpmautospec


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

Comments:
a) Consider changing
-DLIEF_PYTHON_API:BOOL=OFF \
to
-DLIEF_PYTHON_API:BOOL=%{with ctest} \
b) Please change
Requires:       lief = %{version}-%{release}
to
Requires:       lief%{?_isa} = %{version}-%{release}
c) One can build the examples and run some of them as a smoke test. A build that does
this:
https://koji.fedoraproject.org/koji/taskinfo?taskID=146469444
Consider doing the same. Will attach the spec file.
d) Consider building and packaging the documentation, these require sphinx and doxygen.
e) Approved. Please fix (a) and (b) before import. Consider implementing (c) and (d).

Comment 20 Benson Muite 2026-06-10 08:32:13 UTC
Created attachment 2144971 [details]
Spec file that builds examples and runs some of them as a smoke test

As running full test suite fails, running a smoke test is helpful.


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