Bug 2255886 - Review Request: lxqt-menu-data - Menu files for LXQt Panel, Configuration Center and PCManFM-Qt/libfm-qt
Summary: Review Request: lxqt-menu-data - Menu files for LXQt Panel, Configuration Cen...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL: https://lxqt-project.org/
Whiteboard:
Depends On:
Blocks: 2248017 2248018 2248184 2248191 2248192 2248193 2248194 2248195 2248196 2248197 2248198 2248199 2248200 2248201 2248202 2248203 2248212 2248433
TreeView+ depends on / blocked
 
Reported: 2023-12-26 06:53 UTC by Zamir SUN
Modified: 2024-03-18 13:13 UTC (History)
4 users (show)

Fixed In Version: lxqt-menu-data-1.4.1-1.fc40
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-08 12:28:35 UTC
Type: Bug
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6815985 to 6815986 (643 bytes, patch)
2023-12-26 16:29 UTC, Fedora Review Service
no flags Details | Diff

Comment 1 Neal Gompa 2023-12-26 12:02:29 UTC
Taking this review.

Comment 2 Neal Gompa 2023-12-26 12:07:26 UTC
> %define __cmake_in_source_build 1

I think you can drop this and simplify this spec since we do out-of-source builds properly and automatically now.

> # No binary at all, so disable debuginfo package
> %global debug_package %{nil}

This can be dropped since you have "BuildArch: noarch" already.

> mkdir build
> cd build
> %cmake3 -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO ..

This should be replaced with "%cmake -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO".

> cd build
> make install/fast DESTDIR=%{buildroot}

This should be replaced with "%cmake_install"

Comment 4 Fedora Review Service 2023-12-26 16:29:05 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6815985
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2255886-lxqt-menu-data/fedora-rawhide-x86_64/06815985-lxqt-menu-data/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 5 Fedora Review Service 2023-12-26 16:29:31 UTC
Created attachment 2005968 [details]
The .spec file difference from Copr build 6815985 to 6815986

Comment 6 Fedora Review Service 2023-12-26 16:29:33 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6815986
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2255886-lxqt-menu-data/fedora-rawhide-x86_64/06815986-lxqt-menu-data/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 7 Neal Gompa 2023-12-26 17:06:39 UTC
> %build
> mkdir build
> cd build
> %cmake -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO ..
> %cmake_build
> 
> %install
> cd build
> %cmake_install

This should be simplified to:

> %build
> %cmake -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO
> %cmake_build
> 
> %install
> %cmake_install

If you need it to do out of source builds in RHEL < 9, then add the following to the top of your spec file:

%undefine __cmake_in_source_build

Comment 8 Zamir SUN 2023-12-27 02:03:50 UTC
(In reply to Neal Gompa from comment #7)
> This should be simplified to:
> 
> > %build
> > %cmake -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO
> > %cmake_build
> > 
> > %install
> > %cmake_install
> 

Thanks. Historically some of the LXQt packages cannot be built in source root. But looks like this one works just fine.

> If you need it to do out of source builds in RHEL < 9, then add the
> following to the top of your spec file:
> 
> %undefine __cmake_in_source_build

I'll do it only when I plan to update in EPEL.

SPEC URL: https://download.copr.fedorainfracloud.org/results/zsun/lxqt/fedora-rawhide-x86_64/06820855-lxqt-menu-data/lxqt-menu-data.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/zsun/lxqt/fedora-rawhide-x86_64/06820855-lxqt-menu-data/lxqt-menu-data-1.4.1-1.fc40.src.rpm

Comment 9 Neal Gompa 2023-12-27 07:55:07 UTC
(In reply to Zamir SUN from comment #8)
> (In reply to Neal Gompa from comment #7)
> > This should be simplified to:
> > 
> > > %build
> > > %cmake -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO
> > > %cmake_build
> > > 
> > > %install
> > > %cmake_install
> > 
> 
> Thanks. Historically some of the LXQt packages cannot be built in source
> root. But looks like this one works just fine.
> 

Right, KDE is the same way. We have a derivative %cmake macro (called %cmake_kf5 or now %cmake_kf6) that enforces this. If you have a similar %cmake_lxqt macro, you can enforce it there. But it's also not needed if you do not care about anything older than RHEL 9, since the regular %cmake macro sets up out of source builds by default since Fedora 33 / RHEL 9.

Cf. https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds

Comment 10 Neal Gompa 2023-12-27 07:56:42 UTC
Review notes:

* Package follows Fedora Packaging Guidelines
* Package builds and installs
* Package licensing is correctly handled
* No serious issues from rpmlint

PACKAGE APPROVED.

Comment 11 Fedora Admin user for bugzilla script actions 2023-12-27 08:04:54 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/lxqt-menu-data


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