Bug 2360112 - Review Request: nginx-mod-brotli - NGINX module for Brotli compression
Summary: Review Request: nginx-mod-brotli - NGINX module for Brotli compression
Keywords:
Status: CLOSED ERRATA
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: https://github.com/google/ngx_brotli
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 11:30 UTC by Mikel Olasagasti Uranga
Modified: 2025-04-18 21:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-18 21:36:57 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 8909799 to 8911812 (1.21 KB, patch)
2025-04-16 22:18 UTC, Fedora Review Service
no flags Details | Diff

Description Mikel Olasagasti Uranga 2025-04-16 11:30:43 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/nginx-mod-brotli.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/nginx-mod-brotli-1.0.0~rc-1.fc42.src.rpm
Description: NGINX module for Brotli compression.
Fedora Account System Username: mikelo2

Comment 1 Fedora Review Service 2025-04-16 11:36:34 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8909799
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2360112-nginx-mod-brotli/fedora-rawhide-x86_64/08909799-nginx-mod-brotli/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 Neal Gompa 2025-04-16 14:24:25 UTC
Taking this review.

Comment 3 Neal Gompa 2025-04-16 14:33:45 UTC
Spec review:

> %global         upstream_tag 1.0.0rc

You might want to consider breaking it up like so:

%global baseversion 1.0.0
%global prerel rc

%global upstream_tag %{baseversion}%{?prerel}

Version: %{baseversion}%{?prerel:~%{prerel}}

> Source:         https://github.com/google/ngx_brotli/archive/refs/tags/v%{upstream_tag}.tar.gz

This should be "%{url}/archive/v%{upstream_tag}/ngx_brotli-%{upstream_tag}.tar.gz

> BuildRequires:  libbrotli

I took a look at this, and it looks like you need to unbundle brotli, as it's currently not using libbrotli at all.

Once you fix that, then you should be able to use "brotli-devel" as a build dependency.

I recommend adjusting the "config" script files to locate brotli through pkgconfig. You can see an example of how to do this in the nginx naxsi module code.

Comment 4 Mikel Olasagasti Uranga 2025-04-16 22:12:38 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/nginx-mod-brotli.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/nginx-mod-brotli-1.0.0~rc-1.fc42.src.rpm

- Applied suggested versioning and URL changes
- Proposed upstream a change (172.patch) to restore the option to use system provided library and to use pkgconfig. The option to use system provided library was previously (150.patch)
- Changed BR to use pkgconfig format

Comment 5 Fedora Review Service 2025-04-16 22:18:54 UTC
Created attachment 2085305 [details]
The .spec file difference from Copr build 8909799 to 8911812

Comment 6 Fedora Review Service 2025-04-16 22:18:56 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8911812
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2360112-nginx-mod-brotli/fedora-rawhide-x86_64/08911812-nginx-mod-brotli/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 2025-04-18 00:46:27 UTC
Review notes:

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

PACKAGE APPROVED.

Comment 8 Fedora Admin user for bugzilla script actions 2025-04-18 21:15:47 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/nginx-mod-brotli

Comment 9 Fedora Update System 2025-04-18 21:33:54 UTC
FEDORA-2025-f1f8466d9f (nginx-mod-brotli-1.0.0~rc-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f1f8466d9f

Comment 10 Fedora Update System 2025-04-18 21:36:57 UTC
FEDORA-2025-f1f8466d9f (nginx-mod-brotli-1.0.0~rc-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, 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.