Bug 1641203 - Review Request: freecell-solver - a library for solving some solitaire variants
Summary: Review Request: freecell-solver - a library for solving some solitaire variants
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-19 22:13 UTC by Shlomi Fish
Modified: 2018-12-20 10:08 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-12-20 10:08:46 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)

Description Shlomi Fish 2018-10-19 22:13:41 UTC
Spec URL: https://www.shlomifish.org/Files/files/code/freecell-solver.spec
SRPM URL: https://www.shlomifish.org/Files/files/arcs/freecell-solver-4.20.0-1.src.rpm
Description: see https://fc-solve.shlomifish.org/ - required by the new kpat / kpatience
Fedora Account System Username: shlomif

Comment 1 Neal Gompa 2018-10-19 22:14:54 UTC
This is a first-time packager, adding FE-NEEDSPONSOR.

Comment 2 Neal Gompa 2018-10-19 22:15:23 UTC
Taking this review.

Comment 3 Neal Gompa 2018-10-22 12:37:23 UTC
Spec review:

> %define libname lib%{basen}%{major}

%global is preferred over %define

Cf. https://fedoraproject.org/wiki/Packaging:Guidelines#.25global_preferred_over_.25define

Also, Fedora does not require that the so major version be included in library package names, so it's okay for it to be "lib%{name}".

> Name: %{basen}

This appears to be unnecessary, can you just put "Name: freecell-solver" and use "%{name}" where you were using "%{basen}"?

> Release: 1

Fedora packages must have the DistTag in the release.

See https://fedoraproject.org/wiki/Packaging:DistTag

> Group: Games/Cards

This is not a valid group for Fedora. And RPM Groups are now optional.

Fedora RPM Groups: https://fedoraproject.org/wiki/RPMGroups

> Requires: %{name}-data >= %{version}-%{release}

This should actually be "= %{version}-%{release}", as these should move in lockstep.

> Conflicts: %{_lib}%{name}0 < 4.16.0-3
> Conflicts: %{name} < 4.16.0-3

These should be removed, as they don't apply to Fedora. Also, %{name}-data subpackage should have "BuildArch: noarch".

> Requires: %{libname} = %version-%release

Please use consistent formatting here, so "%version-%release" should be "%{version}-%{release}".

Comment 4 Shlomi Fish 2018-10-22 15:19:30 UTC
(In reply to Neal Gompa from comment #3)
> Spec review:
> 
> > %define libname lib%{basen}%{major}
> 
> %global is preferred over %define
> 
> Cf.
> https://fedoraproject.org/wiki/Packaging:Guidelines#.
> 25global_preferred_over_.25define
> 
> Also, Fedora does not require that the so major version be included in
> library package names, so it's okay for it to be "lib%{name}".
> 
> > Name: %{basen}
> 
> This appears to be unnecessary, can you just put "Name: freecell-solver" and
> use "%{name}" where you were using "%{basen}"?
> 
> > Release: 1
> 
> Fedora packages must have the DistTag in the release.
> 
> See https://fedoraproject.org/wiki/Packaging:DistTag
> 
> > Group: Games/Cards
> 
> This is not a valid group for Fedora. And RPM Groups are now optional.
> 
> Fedora RPM Groups: https://fedoraproject.org/wiki/RPMGroups
> 
> > Requires: %{name}-data >= %{version}-%{release}
> 
> This should actually be "= %{version}-%{release}", as these should move in
> lockstep.
> 
> > Conflicts: %{_lib}%{name}0 < 4.16.0-3
> > Conflicts: %{name} < 4.16.0-3
> 
> These should be removed, as they don't apply to Fedora. Also, %{name}-data
> subpackage should have "BuildArch: noarch".
> 
> > Requires: %{libname} = %version-%release
> 
> Please use consistent formatting here, so "%version-%release" should be
> "%{version}-%{release}".

Thanks Neal! I've done the changes and tested in mock/rpmlint/dnf install.

New SRPM: https://www.shlomifish.org/Files/files/arcs/freecell-solver-4.20.0-1.fc29.src.rpm

New SPec: https://www.shlomifish.org/Files/files/code/freecell-solver.spec (same URL.)

Thanks!

Comment 5 Neal Gompa 2018-10-22 15:56:39 UTC
One last fix that I missed last time:

> Provides: %{name}-devel = %{version}-%{release}

You need an equivalent line for architecture selection, like the following:

Provides: %{name}-devel%{?_isa} = %{version}-%{release}

Basically, both need to exist.

Comment 6 Shlomi Fish 2018-10-22 18:17:04 UTC
(In reply to Neal Gompa from comment #5)
> One last fix that I missed last time:
> 
> > Provides: %{name}-devel = %{version}-%{release}
> 
> You need an equivalent line for architecture selection, like the following:
> 
> Provides: %{name}-devel%{?_isa} = %{version}-%{release}
> 
> Basically, both need to exist.

thanks!

Thanks Neal! I've done the changes and tested in mock/rpmlint/dnf install.

New SRPM: https://www.shlomifish.org/Files/files/arcs/freecell-solver-4.20.0-1.fc29.src.rpm

New Spec: https://www.shlomifish.org/Files/files/code/freecell-solver.spec (same URL.)

Thanks!

Comment 7 Neal Gompa 2018-10-22 18:31:05 UTC
> Provides: %{name}-devel%{?isa} = %{version}-%{release}

The macro is supposed to be "%{?_isa}" here, not "%{?isa}".

Comment 8 Neal Gompa 2018-10-22 18:36:53 UTC
> Requires: %{libname} = %{version}-%{release}

Also, this needs to be "%{libname}%{?_isa}" instead of just "%{libname}".

Comment 9 Shlomi Fish 2018-10-22 19:30:59 UTC
(In reply to Neal Gompa from comment #8)
> > Requires: %{libname} = %{version}-%{release}
> 
> Also, this needs to be "%{libname}%{?_isa}" instead of just "%{libname}".

hopefully fixed now - thanks.

Comment 10 Neal Gompa 2018-10-23 00:23:43 UTC
> %{_bindir}/fc_solve_find_index_s2ints.py
> %{_bindir}/find-freecell-deal-index.py
> %{_bindir}/make_pysol_freecell_board.py
> %{_bindir}/transpose-freecell-board.py

Why are these files suffixed with .py instead of just being binary names? If they're executables people should run, they probably shouldn't be suffixed with .py. If they are not, then they probably need to go elsewhere.

Also, shouldn't the main package have a "Requires: %{libname}%{?_isa} = %{version}-%{release}" too, since it uses the library?

Comment 11 Shlomi Fish 2018-10-23 12:24:22 UTC
Hi,

(In reply to Neal Gompa from comment #10)
> > %{_bindir}/fc_solve_find_index_s2ints.py
> > %{_bindir}/find-freecell-deal-index.py
> > %{_bindir}/make_pysol_freecell_board.py
> > %{_bindir}/transpose-freecell-board.py
> 
> Why are these files suffixed with .py instead of just being binary names? If
> they're executables people should run, they probably shouldn't be suffixed
> with .py. If they are not, then they probably need to go elsewhere.
> 

well, %{_bindir}/fc_solve_find_index_s2ints.py is a module and can be moved under /usr/lib/python . The others are suffixed like this due to my program's back compat policy and possible win32/win64 compatibility. 

> Also, shouldn't the main package have a "Requires: %{libname}%{?_isa} =
> %{version}-%{release}" too, since it uses the library?

I can add it.

Comment 12 Shlomi Fish 2018-10-23 13:08:47 UTC
(In reply to Shlomi Fish from comment #11)
> Hi,
> 
> (In reply to Neal Gompa from comment #10)
> > > %{_bindir}/fc_solve_find_index_s2ints.py
> > > %{_bindir}/find-freecell-deal-index.py
> > > %{_bindir}/make_pysol_freecell_board.py
> > > %{_bindir}/transpose-freecell-board.py
> > 
> > Why are these files suffixed with .py instead of just being binary names? If
> > they're executables people should run, they probably shouldn't be suffixed
> > with .py. If they are not, then they probably need to go elsewhere.
> > 
> 
> well, %{_bindir}/fc_solve_find_index_s2ints.py is a module and can be moved
> under /usr/lib/python . The others are suffixed like this due to my
> program's back compat policy and possible win32/win64 compatibility. 
> 
> > Also, shouldn't the main package have a "Requires: %{libname}%{?_isa} =
> > %{version}-%{release}" too, since it uses the library?
> 
> I can add it.

SRPM and .spec updated and are rpmlint, dnf and mock clean. Thanks!

Comment 13 Neal Gompa 2018-10-28 04:38:01 UTC
I see that freecell-solver 5.0.0 released. Can you update for the new version?

Comment 14 Shlomi Fish 2018-10-28 07:36:30 UTC
(In reply to Neal Gompa from comment #13)
> I see that freecell-solver 5.0.0 released. Can you update for the new
> version?

yes, I will.

Comment 15 Shlomi Fish 2018-10-28 08:20:15 UTC
(In reply to Shlomi Fish from comment #14)
> (In reply to Neal Gompa from comment #13)
> > I see that freecell-solver 5.0.0 released. Can you update for the new
> > version?
> 
> yes, I will.

New URLs:

SRPM: http://www.shlomifish.org/Files/files/arcs/freecell-solver-5.0.0-1.fc29.src.rpm

Spec: http://www.shlomifish.org/Files/files/code/freecell-solver.spec

Thanks!

Comment 16 Neal Gompa 2018-11-04 03:09:49 UTC
Package Review
==============

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


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[!]: Rpath absent or only used for internal libs.
     Note: See rpmlint output
[x]: Package does not contain any libtool archives (.la)
[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.
[!]: 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]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "MIT/X11 (BSD like)", "ISC", "LGPL (v3 or later)", "Unknown or
     generated", "BSD (2 clause)". 461 files have unknown license. Detailed
     output of licensecheck in /home/makerpm/1641203-freecell-
     solver/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/include/freecell-solver
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/include/freecell-solver
[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.
[!]: 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.
[x]: 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]: 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

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[x]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Binary eggs must be removed in %prep

===== 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.
[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.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[!]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define major 0
[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.

===== 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]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: freecell-solver-5.0.0-1.fc30.x86_64.rpm
          libfreecell-solver-5.0.0-1.fc30.x86_64.rpm
          freecell-solver-data-5.0.0-1.fc30.noarch.rpm
          libfreecell-solver-devel-5.0.0-1.fc30.x86_64.rpm
          freecell-solver-debuginfo-5.0.0-1.fc30.x86_64.rpm
          freecell-solver-debugsource-5.0.0-1.fc30.x86_64.rpm
          freecell-solver-5.0.0-1.fc30.src.rpm
freecell-solver.x86_64: W: spelling-error %description -l en_US fc -> cf, dc, f
freecell-solver.x86_64: W: incoherent-version-in-changelog 4.20.0-1 ['5.0.0-1.fc30', '5.0.0-1']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/fc-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-fc-pro-range-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-multi-thread-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-range-parallel-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/pi-make-microsoft-freecell-board ['/usr/lib64']
freecell-solver.x86_64: W: no-manual-page-for-binary find-freecell-deal-index.py
freecell-solver.x86_64: W: no-manual-page-for-binary freecell-solver-fc-pro-range-solve
freecell-solver.x86_64: W: no-manual-page-for-binary freecell-solver-multi-thread-solve
libfreecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/lib64/libfreecell-solver.so.0.6.0 ['/usr/lib64']
libfreecell-solver.x86_64: W: no-documentation
freecell-solver-data.noarch: W: no-documentation
freecell-solver-data.noarch: E: wrong-script-interpreter /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py /usr/bin/env python3
freecell-solver-data.noarch: E: non-executable-script /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py 644 /usr/bin/env python3
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/abra-kadabra.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/amateur-star.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/blue-yonder.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/children-playing-ball.sh 644 /bin/bash 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/conspiracy-theory.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/cookie-monster.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/cool-jives.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/crooked-nose.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/enlightened-ostrich.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/fools-gold.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/foss-nessy.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/gooey-unknown-thing.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/hello-world.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/john_galt_line-500.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/looking-glass.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/maliciously-obscure.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/micro-finance-improved.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/micro-finance.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/one-big-family.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/qualified-seed.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/rin-tin-tin.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/sand-stone.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/sentient-pearls.sh 644 /bin/bash 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/tea-for-two.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/the-iglu-cabal.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/three-eighty.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/toons-for-twenty-somethings.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/video-editing.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/yellow-brick-road.sh 644 /bin/sh 
libfreecell-solver-devel.x86_64: W: spelling-error %description -l en_US Freecell -> Free cell, Free-cell, Freelance
libfreecell-solver-devel.x86_64: W: no-documentation
freecell-solver.src: W: spelling-error %description -l en_US fc -> cf, dc, f
7 packages and 0 specfiles checked; 37 errors, 10 warnings.




Rpmlint (debuginfo)
-------------------
Checking: freecell-solver-debuginfo-5.0.0-1.fc30.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
libfreecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/lib64/libfreecell-solver.so.0.6.0 ['/usr/lib64']
libfreecell-solver.x86_64: W: no-documentation
libfreecell-solver-devel.x86_64: W: spelling-error %description -l en_US Freecell -> Free cell, Free-cell, Freelance
libfreecell-solver-devel.x86_64: W: no-documentation
freecell-solver.x86_64: W: spelling-error %description -l en_US fc -> cf, dc, f
freecell-solver.x86_64: W: incoherent-version-in-changelog 4.20.0-1 ['5.0.0-1.fc30', '5.0.0-1']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/fc-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-fc-pro-range-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-multi-thread-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/freecell-solver-range-parallel-solve ['/usr/lib64']
freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/pi-make-microsoft-freecell-board ['/usr/lib64']
freecell-solver.x86_64: W: no-manual-page-for-binary find-freecell-deal-index.py
freecell-solver.x86_64: W: no-manual-page-for-binary freecell-solver-fc-pro-range-solve
freecell-solver.x86_64: W: no-manual-page-for-binary freecell-solver-multi-thread-solve
freecell-solver-data.noarch: W: no-documentation
freecell-solver-data.noarch: E: wrong-script-interpreter /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py /usr/bin/env python3
freecell-solver-data.noarch: E: non-executable-script /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py 644 /usr/bin/env python3
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/abra-kadabra.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/amateur-star.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/blue-yonder.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/children-playing-ball.sh 644 /bin/bash 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/conspiracy-theory.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/cookie-monster.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/cool-jives.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/crooked-nose.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/enlightened-ostrich.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/fools-gold.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/foss-nessy.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/gooey-unknown-thing.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/hello-world.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/john_galt_line-500.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/looking-glass.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/maliciously-obscure.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/micro-finance-improved.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/micro-finance.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/one-big-family.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/qualified-seed.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/rin-tin-tin.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/sand-stone.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/sentient-pearls.sh 644 /bin/bash 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/tea-for-two.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/the-iglu-cabal.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/three-eighty.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/toons-for-twenty-somethings.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/video-editing.sh 644 /bin/sh 
freecell-solver-data.noarch: E: non-executable-script /usr/share/freecell-solver/presets/yellow-brick-road.sh 644 /bin/sh 
6 packages and 0 specfiles checked; 37 errors, 9 warnings.



Requires
--------
libfreecell-solver (rpmlib, GLIBC filtered):
    freecell-solver-data
    libc.so.6()(64bit)
    rtld(GNU_HASH)

freecell-solver-debuginfo (rpmlib, GLIBC filtered):

libfreecell-solver-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    libfreecell-solver(x86-64)
    libfreecell-solver.so.0()(64bit)

freecell-solver (rpmlib, GLIBC filtered):
    /usr/bin/python3
    libc.so.6()(64bit)
    libfreecell-solver(x86-64)
    libfreecell-solver.so.0()(64bit)
    libpthread.so.0()(64bit)
    rtld(GNU_HASH)

freecell-solver-data (rpmlib, GLIBC filtered):

freecell-solver-debugsource (rpmlib, GLIBC filtered):



Provides
--------
libfreecell-solver:
    libfreecell-solver
    libfreecell-solver(x86-64)
    libfreecell-solver.so.0()(64bit)

freecell-solver-debuginfo:
    debuginfo(build-id)
    freecell-solver-debuginfo
    freecell-solver-debuginfo(x86-64)

libfreecell-solver-devel:
    freecell-solver-devel
    freecell-solver-devel(x86-64)
    libfreecell-solver-devel
    libfreecell-solver-devel(x86-64)
    pkgconfig(libfreecell-solver)

freecell-solver:
    freecell-solver
    freecell-solver(x86-64)

freecell-solver-data:
    freecell-solver-data

freecell-solver-debugsource:
    freecell-solver-debugsource
    freecell-solver-debugsource(x86-64)



Source checksums
----------------
http://fc-solve.shlomifish.org/downloads/fc-solve/freecell-solver-5.0.0.tar.xz :
  CHECKSUM(SHA256) this package     : 696717df7e4fab2d5a038b26cc23e2259f7b68a101bc8a4855dffa2841699dfd
  CHECKSUM(SHA256) upstream package : 696717df7e4fab2d5a038b26cc23e2259f7b68a101bc8a4855dffa2841699dfd


Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -b 1641203 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Generic, Shell-api, C/C++
Disabled plugins: Java, SugarActivity, fonts, Haskell, Ocaml, Perl, R, PHP
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 17 Neal Gompa 2018-11-04 03:22:00 UTC
(In reply to Neal Gompa from comment #16)
> Package Review
> ==============
> 
> Legend:
> [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
> 
> 
> ===== MUST items =====
> 
> C/C++:
> [x]: Package does not contain kernel modules.
> [x]: Package contains no static executables.
> [!]: Rpath absent or only used for internal libs.
>      Note: See rpmlint output

Rpath usage is generally forbidden in Fedora.

Cf. https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

> [x]: Package does not contain any libtool archives (.la)
> [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.
> [!]: 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.

The license files "COPYING.*" should be installed with the library package and the main binaries.

Cf. https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text

> [x]: License field in the package spec file matches the actual license.
>      Note: Checking patched sources after %prep for licenses. Licenses
>      found: "MIT/X11 (BSD like)", "ISC", "LGPL (v3 or later)", "Unknown or
>      generated", "BSD (2 clause)". 461 files have unknown license. Detailed
>      output of licensecheck in /home/makerpm/1641203-freecell-
>      solver/licensecheck.txt
> [!]: License file installed when any subpackage combination is installed.

The license files "COPYING.*" should be installed with the library package and the main binaries.

Cf. https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text

> [!]: Package requires other packages for directories it uses.
>      Note: No known owner of /usr/include/freecell-solver
> [!]: Package must own all directories that it creates.
>      Note: Directories without known owners: /usr/include/freecell-solver

This directory needs to be owned by the devel subpackage.

> [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.
> [!]: Changelog in prescribed format.

The version referenced in the changelog entry is wrong, but easily fixable.

> [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.
> [x]: 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]: 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
> 
> Python:
> [x]: Python eggs must not download any dependencies during the build
>      process.
> [x]: A package which is used by another package via an egg interface should
>      provide egg info.
> [x]: Package meets the Packaging Guidelines::Python
> [x]: Binary eggs must be removed in %prep
> 
> ===== 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.
> [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.
> [x]: %check is present and all tests pass.
> [x]: Packages should try to preserve timestamps of original installed
>      files.
> [!]: Spec use %global instead of %define unless justified.
>      Note: %define requiring justification: %define major 0

%global is preferred over %define for various reasons, please evaluate and adjust.

Cf. https://fedoraproject.org/wiki/Packaging:Guidelines#.25global_preferred_over_.25define

> [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.
> 
> ===== 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]: Spec file according to URL is the same as in SRPM.
> 
> 
> 
> Rpmlint (installed packages)
> ----------------------------
> sh: /usr/bin/python: No such file or directory
> libfreecell-solver.x86_64: E: binary-or-shlib-defines-rpath
> /usr/lib64/libfreecell-solver.so.0.6.0 ['/usr/lib64']

Please get rid of the mandatory RPATH in your binaries and libraries: https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

> libfreecell-solver.x86_64: W: no-documentation
> libfreecell-solver-devel.x86_64: W: spelling-error %description -l en_US
> Freecell -> Free cell, Free-cell, Freelance
> libfreecell-solver-devel.x86_64: W: no-documentation
> freecell-solver.x86_64: W: spelling-error %description -l en_US fc -> cf,
> dc, f
> freecell-solver.x86_64: W: incoherent-version-in-changelog 4.20.0-1
> ['5.0.0-1.fc30', '5.0.0-1']

This is a simple oversight that I think you can easily fix.

> freecell-solver.x86_64: E: binary-or-shlib-defines-rpath /usr/bin/fc-solve
> ['/usr/lib64']
> freecell-solver.x86_64: E: binary-or-shlib-defines-rpath
> /usr/bin/freecell-solver-fc-pro-range-solve ['/usr/lib64']
> freecell-solver.x86_64: E: binary-or-shlib-defines-rpath
> /usr/bin/freecell-solver-multi-thread-solve ['/usr/lib64']
> freecell-solver.x86_64: E: binary-or-shlib-defines-rpath
> /usr/bin/freecell-solver-range-parallel-solve ['/usr/lib64']
> freecell-solver.x86_64: E: binary-or-shlib-defines-rpath
> /usr/bin/pi-make-microsoft-freecell-board ['/usr/lib64']

Please get rid of the mandatory RPATH in your binaries and libraries: https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

> freecell-solver.x86_64: W: no-manual-page-for-binary
> find-freecell-deal-index.py
> freecell-solver.x86_64: W: no-manual-page-for-binary
> freecell-solver-fc-pro-range-solve
> freecell-solver.x86_64: W: no-manual-page-for-binary
> freecell-solver-multi-thread-solve
> freecell-solver-data.noarch: W: no-documentation
> freecell-solver-data.noarch: E: wrong-script-interpreter
> /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py /usr/bin/env
> python3
> freecell-solver-data.noarch: E: non-executable-script
> /usr/lib/python3.7/site-packages/fc_solve_find_index_s2ints.py 644
> /usr/bin/env python3

This needs to be fixed. Please make sure that any scripts on install have their shebangs set to the system interpreter.

> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/abra-kadabra.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/amateur-star.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/blue-yonder.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/children-playing-ball.sh 644 /bin/bash 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/conspiracy-theory.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/cookie-monster.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/cool-jives.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/crooked-nose.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/enlightened-ostrich.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/fools-gold.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/foss-nessy.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/gooey-unknown-thing.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/hello-world.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/john_galt_line-500.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/looking-glass.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/maliciously-obscure.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/micro-finance-improved.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/micro-finance.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/one-big-family.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/qualified-seed.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/rin-tin-tin.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/sand-stone.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/sentient-pearls.sh 644 /bin/bash 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/tea-for-two.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/the-iglu-cabal.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/three-eighty.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/toons-for-twenty-somethings.sh 644
> /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/video-editing.sh 644 /bin/sh 
> freecell-solver-data.noarch: E: non-executable-script
> /usr/share/freecell-solver/presets/yellow-brick-road.sh 644 /bin/sh 

This is fine to ignore.

Comment 18 Shlomi Fish 2018-11-04 11:50:52 UTC
(In reply to Neal Gompa from comment #17)
> > freecell-solver-data.noarch: E: non-executable-script
> > /usr/share/freecell-solver/presets/three-eighty.sh 644 /bin/sh 
> > freecell-solver-data.noarch: E: non-executable-script
> > /usr/share/freecell-solver/presets/toons-for-twenty-somethings.sh 644
> > /bin/sh 
> > freecell-solver-data.noarch: E: non-executable-script
> > /usr/share/freecell-solver/presets/video-editing.sh 644 /bin/sh 
> > freecell-solver-data.noarch: E: non-executable-script
> > /usr/share/freecell-solver/presets/yellow-brick-road.sh 644 /bin/sh 
> 
> This is fine to ignore.

Thanks, though it took you a long time. Updated .src.rpm and .spec at the same URL.

Comment 19 Neal Gompa 2018-11-04 23:05:14 UTC
> * Fri Oct 19 2018 Shlomi Fish <shlomif> - 5.0.0-1.fc30

Just use "5.0.0-1" here.

Otherwise, everything else looks good.

PACKAGE APPROVED.

Comment 20 Neal Gompa 2018-11-04 23:06:34 UTC
I have sponsored this packager, so FE-NEEDSPONSOR is no longer needed.

Comment 21 Gwyn Ciesla 2018-11-05 16:39:36 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/freecell-solver

Comment 22 Shlomi Fish 2018-12-19 17:43:38 UTC
Can this issue be closed? Seems like the package was imported already.


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