Bug 2241578 - Review Request: qt6-qthttpserver - Library to facilitate the creation of an http server with Qt
Summary: Review Request: qt6-qthttpserver - Library to facilitate the creation of an h...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: qt6-reviews
TreeView+ depends on / blocked
 
Reported: 2023-10-01 01:28 UTC by Steve Cossette
Modified: 2023-10-01 17:12 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-01 17:12:23 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab fedora/legal fedora-license-data issues 365#note_1584110981 0 None None None 2023-10-01 01:28:42 UTC

Description Steve Cossette 2023-10-01 01:28:02 UTC
Spec URL: https://api.nicehomeservices.com/images/temp/qt6-qthttpserver.spec
SRPM URL: https://api.nicehomeservices.com/images/temp/qt6-qthttpserver-6.5.2-1.fc40.src.rpm
Description: Library to facilitate the creation of an http server with Qt
Fedora Account System Username: farchord

Comment 1 Neal Gompa 2023-10-01 01:30:39 UTC
Taking this review.

Comment 2 Neal Gompa 2023-10-01 01:35:16 UTC
Initial spec review:

> URL:		https://github.com/qt/qthttpserver

This is the wrong site for Qt stuff. It should be: http://qt-project.org/

> Source0:	%{URL}/archive/refs/tags/v%{version}.tar.gz

Qt releases official sources. You probably want to use a structure similar to what we have for qt6-qtbase: https://src.fedoraproject.org/rpms/qt6-qtbase/blob/rawhide/f/qt6-qtbase.spec#_48-52

> Requires:       %{name}-doc

We don't make documentation required for the main package. Drop this.

> %autosetup -n qthttpserver-%{version} -p1

This line will change once you switch to official sources.

Comment 3 Steve Cossette 2023-10-01 01:45:09 UTC
Updated

Comment 4 Neal Gompa 2023-10-01 01:52:02 UTC
> %{_qt6_libdir}/libQt6HttpServer.so.6
> %{_qt6_libdir}/libQt6HttpServer.so.6.5.2

These can be simplified to: "%{_qt6_libdir}/libQt6HttpServer.so.6{,.*}"

Comment 5 Steve Cossette 2023-10-01 01:54:56 UTC
Re-updated, thanks!

Comment 6 Steve Cossette 2023-10-01 11:30:13 UTC
Forgot to add qt6-rpm-macros. It gets pulled in by the other components but it was probably a good idea to add anyway. Fixed

Comment 7 Neal Gompa 2023-10-01 11:42:13 UTC
> License:	BSD-3-Clause AND GFDL-1.3-no-invariants-only AND GPL-3.0-only AND Qt-GPL-exception-1.0

The last clause should be "GPL-3.0-only WITH Qt-GPL-exception-1.0"

Comment 8 Steve Cossette 2023-10-01 11:54:27 UTC
Updated

Comment 9 Neal Gompa 2023-10-01 12:19:00 UTC
The doc package should be renamed to examples package, since that's what it actually contains. See qt6-qtbase for what that looks like.

Comment 10 Neal Gompa 2023-10-01 12:32:24 UTC
> %{_qt6_libdir}/qt6/examples/httpserver/colorpalette/colorpaletteserver
> %{_qt6_libdir}/qt6/examples/httpserver/simple/simple

This can be simplified to "%{_qt6_libdir}/qt6/examples/" as it's fine for -examples packages to co-own the base examples directory.

Comment 11 Neal Gompa 2023-10-01 12:35:22 UTC
-examples package should require the -devel package instead of the base one.

Comment 12 Steve Cossette 2023-10-01 12:44:30 UTC
(In reply to Neal Gompa from comment #10)
> > %{_qt6_libdir}/qt6/examples/httpserver/colorpalette/colorpaletteserver
> > %{_qt6_libdir}/qt6/examples/httpserver/simple/simple
> 
> This can be simplified to "%{_qt6_libdir}/qt6/examples/" as it's fine for
> -examples packages to co-own the base examples directory.

Done, used qt6-qtbase as a base. Also noticed that there is a cmake macro for qt6 for building (A bit like kf5 does) so I changed it to that, and added ninja-build as a BuildRequires.

Comment 13 Steve Cossette 2023-10-01 12:50:46 UTC
I didn't actually see your comment about changing what the -examples package requires. Fixed that too just now.

Comment 14 Neal Gompa 2023-10-01 13:36:35 UTC
Trailing slash missing on "%{_qt6_libdir}/qt6/examples".

Comment 15 Steve Cossette 2023-10-01 15:40:26 UTC
Updated!

Comment 16 Neal Gompa 2023-10-01 16:50:57 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 17 Steve Cossette 2023-10-01 17:02:37 UTC
Thank you for the review, Neal!

https://pagure.io/releng/fedora-scm-requests/issue/56692

Comment 18 Fedora Admin user for bugzilla script actions 2023-10-01 17:02:44 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/qt6-qthttpserver


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