Bug 1950985 - Review Request: liboauth2 - library toolset for OAuth 2.x and OpenID Connect clients and servers
Summary: Review Request: liboauth2 - library toolset for OAuth 2.x and OpenID Connect ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-19 10:29 UTC by Alexander Bokovoy
Modified: 2021-04-29 01:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-04-29 00:30:59 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Alexander Bokovoy 2021-04-19 10:29:39 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/abbra/oauth2-support/fedora-rawhide-x86_64/02139903-liboauth2/liboauth2.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/abbra/oauth2-support/fedora-rawhide-x86_64/02139903-liboauth2/liboauth2-1.4.1-1.fc35.src.rpm
Description: liboauth2 library provides primitives to create OAuth 2.x and OpenID Connect servers and clients
Fedora Account System Username: abbra

Comment 1 Alexander Bokovoy 2021-04-19 10:33:57 UTC
I ran fedora-review for the package:


This is a review *template*. Besides handling the [ ]-marked tests you are
also supposed to fix the template before pasting into bugzilla:
- Add issues you find to the list of issues on top. If there isn't such
  a list, create one.
- Add your own remarks to the template checks.
- Add new lines marked [!] or [?] when you discover new things not
  listed by fedora-review.
- Change or remove any text in the template which is plain wrong. In this
  case you could also file a bug against fedora-review
- Remove the "[ ] Manual check required", you will not have any such lines
  in what you paste.
- Remove attachments which you deem not really useful (the rpmlint
  ones are mandatory, though)
- Remove this text



Package Review
==============

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


Issues:
=======
- Package does not contain any libtool archives (.la)
  Note: liboauth2-static : /usr/lib64/liboauth2.la liboauth2-apache-static
  : /usr/lib64/liboauth2_apache.la
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#packaging-static-libraries
- Dist tag is present.


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[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]: 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", "GNU Affero General Public License,
     Version 3", "GNU Affero General Public License v3.0 or later". 20
     files have unknown license. Detailed output of licensecheck in
     /home/abokovoy/src/packages/liboauth2/liboauth2/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[x]: 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.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 61440 bytes in 6 files.
[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]: 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]: 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]: Static libraries in -static or -devel subpackage, providing -devel if
     present.
     Note: Package has .a files: liboauth2-static, liboauth2-apache-static.
[x]: File names are valid UTF-8.
[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
     liboauth2-static , liboauth2-apache-devel , liboauth2-apache-static
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[-]: 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:
[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.
[x]: Package should not use obsolete m4 macros


Rpmlint
-------
Checking: liboauth2-1.4.1-1.fc35.x86_64.rpm
          liboauth2-devel-1.4.1-1.fc35.x86_64.rpm
          liboauth2-static-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-devel-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-static-1.4.1-1.fc35.x86_64.rpm
          liboauth2-debuginfo-1.4.1-1.fc35.x86_64.rpm
          liboauth2-debugsource-1.4.1-1.fc35.x86_64.rpm
          liboauth2-1.4.1-1.fc35.src.rpm
liboauth2-apache.x86_64: W: spelling-error Summary(en_US) OAuth -> Oath, Coauthor
liboauth2-apache.x86_64: W: spelling-error %description -l en_US OAuth -> Oath, Coauthor
9 packages and 0 specfiles checked; 0 errors, 2 warnings.




Rpmlint (debuginfo)
-------------------
Checking: liboauth2-debuginfo-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-debuginfo-1.4.1-1.fc35.x86_64.rpm
2 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
liboauth2-apache.x86_64: W: spelling-error Summary(en_US) OAuth -> Oath, Coauthor
liboauth2-apache.x86_64: W: spelling-error %description -l en_US OAuth -> Oath, Coauthor
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_shutdown
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log_sink_ctx_get
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_json_decode_object
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_object_iter_value
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_port_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_header_add
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_strdup
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_integer_value
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_init
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_object_iter_next
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_source_token_get_accept_in
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_string_value
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_mem_free
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_array_get
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_get_client_block
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_strnenvcmp
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_target_get_remote_user_claim
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_auth_name
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_context_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_getword_conf
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_scheme_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_response_headers_loop
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_target_pass_get_as_envvars
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_query_get
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log_init
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_target_pass_get_as_headers
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_normalize_header_name
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_mem_alloc
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_parse_form_encoded_params
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_method_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_get_server_name_for_url
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_array_size
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_init
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_target_pass_get_prefix
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_object_iter_key
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_package_string
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log_sink_create
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_headers_loop
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_response_status_code_get
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_cfg_target_pass_get_authn_header
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_should_client_block
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_json_encode
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log_sink_level_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_run_http_scheme
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_hostname_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_stradd
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_free
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_log_free
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_query_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 ap_setup_client_block
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 oauth2_http_request_path_set
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_object_iter
liboauth2-apache.x86_64: W: undefined-non-weak-symbol /usr/lib64/liboauth2_apache.so.0.0.0 json_object_get
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/libcrypt.so.2
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/libexpat.so.1
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/libldap_r-2.4.so.2
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/liblber-2.4.so.2
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/libpthread.so.0
liboauth2-apache.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2_apache.so.0.0.0 /lib64/libdl.so.2
liboauth2.x86_64: W: unused-direct-shlib-dependency /usr/lib64/liboauth2.so.0.0.0 /lib64/libssl.so.1.1
9 packages and 0 specfiles checked; 0 errors, 63 warnings.



Source checksums
----------------
https://github.com/zmartzone/liboauth2/archive/refs/tags/v1.4.1.tar.gz :
  CHECKSUM(SHA256) this package     : edd1544dd86c4093a01029d555e5d546aa443aba44da3a36a9d65d6731dd84aa
  CHECKSUM(SHA256) upstream package : edd1544dd86c4093a01029d555e5d546aa443aba44da3a36a9d65d6731dd84aa


Requires
--------
liboauth2 (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libcjose.so.0()(64bit)
    libcrypto.so.1.1()(64bit)
    libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
    libcurl.so.4()(64bit)
    libjansson.so.4()(64bit)
    libssl.so.1.1()(64bit)
    rtld(GNU_HASH)

liboauth2-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    liboauth2(x86-64)
    liboauth2.so.0()(64bit)
    pkgconfig(jansson)
    pkgconfig(libcrypto)

liboauth2-static (rpmlib, GLIBC filtered):
    liboauth2-devel(x86-64)

liboauth2-apache (rpmlib, GLIBC filtered):
    libapr-1.so.0()(64bit)
    libaprutil-1.so.0()(64bit)
    libc.so.6()(64bit)
    libcrypt.so.2()(64bit)
    libdl.so.2()(64bit)
    libexpat.so.1()(64bit)
    liblber-2.4.so.2()(64bit)
    libldap_r-2.4.so.2()(64bit)
    liboauth2(x86-64)
    libpthread.so.0()(64bit)
    rtld(GNU_HASH)

liboauth2-apache-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    liboauth2-apache(x86-64)
    liboauth2-devel(x86-64)
    liboauth2_apache.so.0()(64bit)
    pkgconfig(apr-1)
    pkgconfig(apr-util-1)
    pkgconfig(liboauth2)

liboauth2-apache-static (rpmlib, GLIBC filtered):
    liboauth2-apache-devel(x86-64)

liboauth2-debuginfo (rpmlib, GLIBC filtered):

liboauth2-debugsource (rpmlib, GLIBC filtered):



Provides
--------
liboauth2:
    liboauth2
    liboauth2(x86-64)
    liboauth2.so.0()(64bit)

liboauth2-devel:
    liboauth2-devel
    liboauth2-devel(x86-64)
    pkgconfig(liboauth2)

liboauth2-static:
    liboauth2-static
    liboauth2-static(x86-64)
    libtool(/usr/lib64/liboauth2.la)

liboauth2-apache:
    liboauth2-apache
    liboauth2-apache(x86-64)
    liboauth2_apache.so.0()(64bit)

liboauth2-apache-devel:
    liboauth2-apache-devel
    liboauth2-apache-devel(x86-64)
    pkgconfig(liboauth2_apache)

liboauth2-apache-static:
    liboauth2-apache-static
    liboauth2-apache-static(x86-64)
    libtool(/usr/lib64/liboauth2_apache.la)

liboauth2-debuginfo:
    debuginfo(build-id)
    liboauth2-debuginfo
    liboauth2-debuginfo(x86-64)

liboauth2-debugsource:
    liboauth2-debugsource
    liboauth2-debugsource(x86-64)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -v -rn /home/abokovoy/rpmbuild/SRPMS/liboauth2-1.4.1-1.fc34.src.rpm
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: Perl, Haskell, Java, PHP, fonts, Python, SugarActivity, R, Ocaml
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 2 Robert-André Mauchin 🐧 2021-04-19 16:54:48 UTC
 - Please add a comment about what this patch does / why it is needed.

# apache: use include directory from APXS
# On Fedora, when building Apache module support, it is not enough to get
# APR CFLAGS, we need also APXS include details. Use APXS tool directly.
Patch1: liboauth2-apache-fix.patch

 - Are you sure you need to ship the static libraries? They are generally not provided in Fedora and should be removed at the end of %install. See: https://docs.fedoraproject.org/en-US/packaging-guidelines/#packaging-static-libraries

 - You must not ship the libtool archives (.la). Remove them at the end of install.

rm -vf %{buildroot}%{_libdir}/*.la

 - Just do this:

%dir %{_includedir}/oauth2
%{_includedir}/oauth2/cache.h
%{_includedir}/oauth2/cfg.h
%{_includedir}/oauth2/http.h
%{_includedir}/oauth2/ipc.h
%{_includedir}/oauth2/jose.h
%{_includedir}/oauth2/log.h
%{_includedir}/oauth2/mem.h
%{_includedir}/oauth2/oauth2.h
%{_includedir}/oauth2/openidc.h
%{_includedir}/oauth2/proto.h
%{_includedir}/oauth2/session.h
%{_includedir}/oauth2/util.h
%{_includedir}/oauth2/version.h

⇒

%{_includedir}/oauth2

 - This:

%license LICENSE
%doc README.md

should only be shipped once per package combination. Since devel subpackages and static subpackages depend on the main package, these should be only shipped in the main package as a result.

 - Split your BR one per line and consider using pkgconfig() for your devel dependencies:

BuildRequires: automake
BuildRequires: check
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: httpd-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: pkgconfig(cjose)
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(openssl)

 - Use a more specific name for your archive:

Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz

 - Dist tag should be:

Release: 1%{?dist}

 - There does not seem to be any tests provided:

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Q5YK8l
+ umask 022
+ cd /builddir/build/BUILD
+ cd liboauth2-1.4.1
+ /usr/bin/make -O -j16 V=1 VERBOSE=1 check
/usr/bin/make  
make[1]: Nothing to be done for 'all'.
/usr/bin/make  check-TESTS
make[2]: Entering directory '/builddir/build/BUILD/liboauth2-1.4.1'
============================================================================
Testsuite summary for liboauth2 1.4.1
============================================================================
# TOTAL: 0
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[2]: Leaving directory '/builddir/build/BUILD/liboauth2-1.4.1'





Package Review
==============

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


Issues:
=======
- Package does not contain any libtool archives (.la)
  Note: liboauth2-static : /usr/lib64/liboauth2.la liboauth2-apache-static
  : /usr/lib64/liboauth2_apache.la
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#packaging-static-libraries
- Dist tag is present.


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[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]: 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", "GNU Affero General Public License,
     Version 3", "GNU Lesser General Public License", "GNU Affero General
     Public License v3.0 or later". 19 files have unknown license. Detailed
     output of licensecheck in /home/bob/packaging/review/liboauth2/review-
     liboauth2/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[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.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 61440 bytes in 6 files.
[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]: Package requires other packages for directories it uses.
[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]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[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]: Static libraries in -static or -devel subpackage, providing -devel if
     present.
     Note: Package has .a files: liboauth2-static, liboauth2-apache-static.
[x]: File names are valid UTF-8.
[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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     liboauth2-static , liboauth2-apache-devel , liboauth2-apache-static
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[!]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %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:
[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.
[x]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: liboauth2-1.4.1-1.fc35.x86_64.rpm
          liboauth2-devel-1.4.1-1.fc35.x86_64.rpm
          liboauth2-static-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-devel-1.4.1-1.fc35.x86_64.rpm
          liboauth2-apache-static-1.4.1-1.fc35.x86_64.rpm
          liboauth2-debuginfo-1.4.1-1.fc35.x86_64.rpm
          liboauth2-debugsource-1.4.1-1.fc35.x86_64.rpm
          liboauth2-1.4.1-1.fc35.src.rpm
liboauth2-apache.x86_64: W: spelling-error Summary(en_US) OAuth -> Oath, Coauthor
liboauth2-apache.x86_64: W: spelling-error %description -l en_US OAuth -> Oath, Coauthor
9 packages and 0 specfiles checked; 0 errors, 2 warnings.

Comment 3 Alexander Bokovoy 2021-04-19 17:54:30 UTC
Thank you for the review, it is helpful.

I removed static variants as you suggested, we indeed don't need them.

I fixed the rest as well except contracting the include files because there is an explicit split to have /usr/include/oauth2/apache.h in a separate subpackage.
I did instead created a file list and filtered apache.h out of it. Once ngnix packaging in Fedora will allow building modules dynamically, I will only need to filter out nginx.h to add support for it.

Tests were not running because 'check' dependency is not enough, we need 'pkgconfig(check)' as well.

...
checking for CHECK... yes
...
make[1]: Leaving directory '/builddir/build/BUILD/liboauth2-1.4.1'
/usr/bin/make  check-TESTS
make[2]: Entering directory '/builddir/build/BUILD/liboauth2-1.4.1'
PASS: check_liboauth2
make[2]: Leaving directory '/builddir/build/BUILD/liboauth2-1.4.1'
make[2]: Entering directory '/builddir/build/BUILD/liboauth2-1.4.1'
============================================================================
Testsuite summary for liboauth2 1.4.1
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[2]: Leaving directory '/builddir/build/BUILD/liboauth2-1.4.1'

A new spec file can be picked from https://download.copr.fedorainfracloud.org/results/abbra/oauth2-support/fedora-rawhide-x86_64/02141226-liboauth2/liboauth2.spec

Comment 4 Robert-André Mauchin 🐧 2021-04-19 18:14:18 UTC
Package approved.

Comment 5 Alexander Bokovoy 2021-04-19 18:22:49 UTC
Thanks, opened https://pagure.io/releng/fedora-scm-requests/issue/33630 to request a repo

Comment 6 Gwyn Ciesla 2021-04-19 19:45:39 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/liboauth2

Comment 8 Fedora Update System 2021-04-21 08:42:21 UTC
FEDORA-2021-ea987e2c4e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ea987e2c4e

Comment 9 Fedora Update System 2021-04-21 08:42:54 UTC
FEDORA-2021-d2f9b03afb has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d2f9b03afb

Comment 10 Fedora Update System 2021-04-21 08:43:26 UTC
FEDORA-2021-93a2598464 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-93a2598464

Comment 11 Fedora Update System 2021-04-21 15:01:41 UTC
FEDORA-2021-ea987e2c4e has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ea987e2c4e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ea987e2c4e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2021-04-21 21:51:22 UTC
FEDORA-2021-93a2598464 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-93a2598464`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-93a2598464

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2021-04-21 22:01:33 UTC
FEDORA-2021-d2f9b03afb has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d2f9b03afb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d2f9b03afb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2021-04-29 00:30:59 UTC
FEDORA-2021-ea987e2c4e has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2021-04-29 00:56:35 UTC
FEDORA-2021-d2f9b03afb has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-04-29 01:21:45 UTC
FEDORA-2021-93a2598464 has been pushed to the Fedora 32 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.