Bug 1666888 - Review Request: flatpak-xdg-utils - Command-line tools for use inside Flatpak sandboxes
Summary: Review Request: flatpak-xdg-utils - Command-line tools for use inside Flatpak...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Popela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-16 21:03 UTC by Owen Taylor
Modified: 2019-01-19 02:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-19 02:26:13 UTC
Type: ---
Embargoed:
tpopela: fedora-review+


Attachments (Terms of Use)

Description Owen Taylor 2019-01-16 21:03:40 UTC
Spec URL: https://fedorapeople.org/~otaylor/flatpak-xdg-utils.spec
SRPM URL: https://fedorapeople.org/~otaylor/flatpak-xdg-utils-1.0.0-1.fc29.src.rpm
Description: 
This package contains a number of command-line utilities for use inside
Flatpak sandboxes. They work by talking to portals.
Fedora Account System Username: otaylor

Comment 1 Tomas Popela 2019-01-17 06:02:34 UTC
I'm having problems with downloading the source tarball from github

0 $ spectool -g -R flatpak-xdg-utils.spec
Getting https://github.com/flatpak/flatpak-xdg-utils/archive/v1.0.0.tar.xz#/flatpak-xdg-utils-1.0.0.tar.xz to /home/tpopela/rpmbuild/SOURCES/flatpak-xdg-utils-1.0.0.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

I had to apply the following to get it working:

0 $ diff -ENwbur flatpak-xdg-utils.spec.orig flatpak-xdg-utils.spec
--- flatpak-xdg-utils.spec.orig 2019-01-17 06:59:23.542748816 +0100
+++ flatpak-xdg-utils.spec      2019-01-17 06:57:05.817655524 +0100
@@ -1,6 +1,7 @@
 %global forgeurl    https://github.com/flatpak/flatpak-xdg-utils
-%global archiveext  tar.xz
+%global archiveext  tar.gz
 Version:            1.0.0
+%global tag         %{version}

 %forgemeta -i

I will continue with the review with my patch applied.

Comment 2 Tomas Popela 2019-01-17 06:21:13 UTC
It's also missing BuildRequires for gcc.

Comment 3 Tomas Popela 2019-01-17 06:21:35 UTC
Package Review
==============

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


Issues:
=======
- Wrongly specified forge macros
- Missing BR for gcc

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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

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: "GNU Lesser General Public License (v2 or later)", "GNU Lesser
     General Public License (v2.1 or later)", "Unknown or generated". 7
     files have unknown license. Detailed output of licensecheck in
     /home/tpopela/rpmbuild/flatpak-xdg-utils/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package does not own files or directories owned by other packages.
[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.
[-]: 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 10240 bytes in 1 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 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]: Dist tag is present.
[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]: 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 flatpak-
     xdg-utils-debuginfo , flatpak-xdg-utils-debugsource
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: 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.
[-]: %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]: 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.


Rpmlint
-------
Checking: flatpak-xdg-utils-1.0.0-1.fc29.x86_64.rpm
          flatpak-xdg-utils-debuginfo-1.0.0-1.fc29.x86_64.rpm
          flatpak-xdg-utils-debugsource-1.0.0-1.fc29.x86_64.rpm
          flatpak-xdg-utils-1.0.0-1.fc29.src.rpm
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary flatpak-spawn
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary xdg-email
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary xdg-open
flatpak-xdg-utils.src: E: specfile-error Forge-specific packaging variables
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   forgeurl:        https://github.com/flatpak/flatpak-xdg-utils
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   forgesource:     https://github.com/flatpak/flatpak-xdg-utils/archive/1.0.0.tar.gz#/flatpak-xdg-utils-1.0.0.tar.gz
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   forgesetupargs:  -n flatpak-xdg-utils-1.0.0
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error Generic variables
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   archivename:     flatpak-xdg-utils-1.0.0
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   archiveext:      tar.gz
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   archiveurl:      https://github.com/flatpak/flatpak-xdg-utils/archive/1.0.0.tar.gz
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   scm:             git
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   tag:             1.0.0
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   commit:          
flatpak-xdg-utils.src: E: specfile-error 
flatpak-xdg-utils.src: E: specfile-error   dist:            .fc29 (snapshot date is either manually supplied or computed once %{_sourcedir}/%{archivename}.%{archiveext} is available)
4 packages and 0 specfiles checked; 23 errors, 3 warnings.




Rpmlint (debuginfo)
-------------------
Checking: flatpak-xdg-utils-debuginfo-1.0.0-1.fc29.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: No such file or directory
flatpak-xdg-utils.x86_64: W: invalid-url URL: https://github.com/flatpak/flatpak-xdg-utils <urlopen error [Errno -2] Name or service not known>
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary flatpak-spawn
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary xdg-email
flatpak-xdg-utils.x86_64: W: no-manual-page-for-binary xdg-open
flatpak-xdg-utils-debuginfo.x86_64: W: invalid-url URL: https://github.com/flatpak/flatpak-xdg-utils <urlopen error [Errno -2] Name or service not known>
flatpak-xdg-utils-debugsource.x86_64: W: invalid-url URL: https://github.com/flatpak/flatpak-xdg-utils <urlopen error [Errno -2] Name or service not known>
3 packages and 0 specfiles checked; 0 errors, 6 warnings.



Requires
--------
flatpak-xdg-utils (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libgio-2.0.so.0()(64bit)
    libglib-2.0.so.0()(64bit)
    libgobject-2.0.so.0()(64bit)
    rtld(GNU_HASH)

flatpak-xdg-utils-debuginfo (rpmlib, GLIBC filtered):

flatpak-xdg-utils-debugsource (rpmlib, GLIBC filtered):



Provides
--------
flatpak-xdg-utils:
    flatpak-xdg-utils
    flatpak-xdg-utils(x86-64)

flatpak-xdg-utils-debuginfo:
    debuginfo(build-id)
    flatpak-xdg-utils-debuginfo
    flatpak-xdg-utils-debuginfo(x86-64)

flatpak-xdg-utils-debugsource:
    flatpak-xdg-utils-debugsource
    flatpak-xdg-utils-debugsource(x86-64)



Source checksums
----------------
https://github.com/flatpak/flatpak-xdg-utils/archive/1.0.0.tar.gz#/flatpak-xdg-utils-1.0.0.tar.gz :
  CHECKSUM(SHA256) this package     : e44ea1d1051f8a15052cfaa9b0c46864da3750d1a767b9492bd5afe903157e18
  CHECKSUM(SHA256) upstream package : e44ea1d1051f8a15052cfaa9b0c46864da3750d1a767b9492bd5afe903157e18


Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review --rpm-spec -n /home/tpopela/rpmbuild/SRPMS/flatpak-xdg-utils-1.0.0-1.fc29.src.rpm
Buildroot used: fedora-29-x86_64
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 4 Owen Taylor 2019-01-17 15:11:42 UTC
New spec file and SRPM uploaded (at the same location). Changes:

 - Remove usage of %forge macros - they were not helpful in this simple case, and got me confused.
 - Add gcc BR

Thanks for the review!

Comment 5 Gwyn Ciesla 2019-01-18 15:17:34 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/flatpak-xdg-utils

Comment 6 Fedora Update System 2019-01-18 15:34:32 UTC
flatpak-xdg-utils-1.0.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-66e55ad937

Comment 7 Fedora Update System 2019-01-19 02:26:13 UTC
flatpak-xdg-utils-1.0.0-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, 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.