Bug 2161558 - Review Request: perl-Alien-Brotli - Find and install the Brotli compressor
Summary: Review Request: perl-Alien-Brotli - Find and install the Brotli compressor
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michal Josef Spacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-17 09:17 UTC by Petr Salaba
Modified: 2023-02-06 17:23 UTC (History)
2 users (show)

Fixed In Version: perl-Alien-Brotli-0.2.2-3.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-06 17:23:39 UTC
Type: ---
Embargoed:
mspacek: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5239684 to 5239720 (1.53 KB, patch)
2023-01-17 09:57 UTC, Jakub Kadlčík
no flags Details | Diff
The .spec file difference from Copr build 5239720 to 5250868 (619 bytes, patch)
2023-01-19 07:55 UTC, Jakub Kadlčík
no flags Details | Diff
The .spec file difference from Copr build 5250868 to 5287425 (1.99 KB, patch)
2023-01-24 10:58 UTC, Jakub Kadlčík
no flags Details | Diff

Description Petr Salaba 2023-01-17 09:17:19 UTC
Spec URL: https://psalaba.fedorapeople.org/perl-Alien-Brotli/perl-Alien-Brotli.spec
SRPM URL: https://psalaba.fedorapeople.org/perl-Alien-Brotli/perl-Alien-Brotli-0.2.2-1.fc38.src.rpm
Description: This distribution installs the brotli compressor, so that it can be used by other distributions, and provides a way to find the executable.
Fedora Account System Username: psalaba

Comment 2 Petr Salaba 2023-01-17 09:37:31 UTC
Thank you, running rpmlint has completely slipped my mind. I'll update the sources to fix the errors.

Comment 4 Jakub Kadlčík 2023-01-17 09:57:11 UTC
Created attachment 1938571 [details]
The .spec file difference from Copr build 5239684 to 5239720

Comment 6 Michal Josef Spacek 2023-01-18 13:47:51 UTC
[copr-build]

Comment 8 Jakub Kadlčík 2023-01-19 07:55:05 UTC
Created attachment 1939097 [details]
The .spec file difference from Copr build 5239720 to 5250868

Comment 10 Michal Josef Spacek 2023-01-24 08:39:02 UTC
@psalaba 

1) License is bad:
In LICENSE file:
  The MIT (X11) License
In spec file:
  License:        GPL-1.0-or-later OR Artistic-1.0-Perl

2) No .rpmlintrc with warnings:
  perl-Alien-Brotli-tests.noarch: W: no-documentation

3) BuildRequires:  findutils, make, bc
  I don't see usage of this packages.
  As i understand, make, bc is used in case of compiling, but not in our case

4) spec file rpmlint:
  perl-Alien-Brotli.spec:52: W: comparison-operator-in-deptoken 2>/dev/null)
  perl-Alien-Brotli.spec:53: W: comparison-operator-in-deptoken 2>/dev/null)

  There is brotli %(perl -e 'print qq{ = $1} if qx{brotli --version} =~ m{([\d+\.]+)}' 2>/dev/null)
  Why we need this 2>/dev/null ?
  If we need, then we need to add to .rpmlintrc

Comment 11 Petr Salaba 2023-01-24 10:47:47 UTC
(In reply to Michal Josef Spacek from comment #10)
> @psalaba 
> 
> 1) License is bad:
> In LICENSE file:
>   The MIT (X11) License
> In spec file:
>   License:        GPL-1.0-or-later OR Artistic-1.0-Perl

Fixed, changed license to MIT.

> 2) No .rpmlintrc with warnings:
>   perl-Alien-Brotli-tests.noarch: W: no-documentation

Created a .rpmlintrc with this warning filtered

> 3) BuildRequires:  findutils, make, bc
>   I don't see usage of this packages.
>   As i understand, make, bc is used in case of compiling, but not in our case

Removed findutils and bc from requirements, make is still required in the rpm build process.

> 4) spec file rpmlint:
>   perl-Alien-Brotli.spec:52: W: comparison-operator-in-deptoken 2>/dev/null)
>   perl-Alien-Brotli.spec:53: W: comparison-operator-in-deptoken 2>/dev/null)
> 
>   There is brotli %(perl -e 'print qq{ = $1} if qx{brotli --version} =~
> m{([\d+\.]+)}' 2>/dev/null)
>   Why we need this 2>/dev/null ?
>   If we need, then we need to add to .rpmlintrc

This stderr redirection was not needed, if an error happens it should be visible in the build process stderr stream.
Removed 2>/dev/null.

Spec URL: https://psalaba.fedorapeople.org/perl-Alien-Brotli/perl-Alien-Brotli.spec
SRPM URL: https://psalaba.fedorapeople.org/perl-Alien-Brotli/perl-Alien-Brotli-0.2.2-3.fc38.src.rpm
Requested .rpmlintrc URL: https://psalaba.fedorapeople.org/perl-Alien-Brotli/perl-Alien-Brotli.rpmlintrc

Comment 12 Jakub Kadlčík 2023-01-24 10:58:14 UTC
Created attachment 1940180 [details]
The .spec file difference from Copr build 5250868 to 5287425

Comment 14 Michal Josef Spacek 2023-01-24 13:52:22 UTC
Source file is ok
Summary is ok
License is ok
Description is ok
URL and Source0 are ok
All tests passed
BuildRequires are ok

> rpm -qp --requires perl-Alien-Brotli-0.2.2-3.fc38.x86_64.rpm  | sort | uniq -c | grep -v rpmlib
      1 brotli = 1.0.9
      1 libbrotli = 1.0.9
      1 perl(Alien::Base)
      1 perl(Alien::Brotli)
      1 perl(base)
      1 perl(constant)
      1 perl-libs
      1 perl(namespace::autoclean)
      1 perl(Path::Tiny)
      1 perl(strict)
      1 perl(:VERSION) >= 5.14.0
      1 perl(warnings)

> rpm -qp --provides perl-Alien-Brotli-0.2.2-3.fc38.x86_64.rpm | sort | uniq -c
      1 perl(Alien::Brotli::Install::Files)
      1 perl-Alien-Brotli(x86-64) = 0.2.2-3.fc38
      1 perl(Alien::Brotli) = 0.2.2
      1 perl-Alien-Brotli = 0.2.2-3.fc38

Rpmlint is ok

The package is in line with Fedora and Perl packaging guide lines.

Resolution: approved

Comment 15 Fedora Admin user for bugzilla script actions 2023-01-31 08:24:12 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/perl-Alien-Brotli

Comment 16 Petr Salaba 2023-02-06 17:23:39 UTC
Thank you for the review and repository.


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