[Bug 1535549] Review Request: mupen64plus - Nintendo 64 Emulator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1535549

Robert-André Mauchin <zebob.m@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zebob.m@xxxxxxxxx



--- Comment #1 from Robert-André Mauchin <zebob.m@xxxxxxxxx> ---
 - Not needed in Fedora:

Group:

BuildRoot:

%defattr(***, root, root) in %files


 - .desktop files must be validated in %install or %check. See
https://fedoraproject.org/wiki/Packaging:Guidelines#desktop-file-install_usage

desktop-file-validate %{buildroot}/%{_datadir}/applications/mupen64plus.desktop

 - Since you are installing icons in hicolor, you should Requires:      
hicolor-icon-theme

 - In the -devel subpackage, you should provide an unversioned shared library
file linking to libmupen64plus.so.2.0.0. Just create the symlink in %install

ln -sf %{_libdir}/libmupen64plus.so.2.0.0
%{buildroot}%{_libdir}/libmupen64plus.so

   And include it in -devel %files:

%files devel
%{_includedir}/mupen64plus/
%{_libdir}/libmupen64plus.so

 - There's various LICENSES files included in the source, add them all to
%license. In order not to overwrite the same file, you need to rename them
first.

   In %prep:

cp -a source/mupen64plus-rsp-hle/LICENSES LICENSE-rsp-hle
cp -a source/mupen64plus-rom/mupen64plus/assets/LICENSES LICENSE-assets
cp -a source/mupen64plus-rom/LICENSES LICENSE-rom
cp -a source/mupen64plus-input-sdl/LICENSES LICENSE-input-sdl
cp -a source/mupen64plus-video-glide64mk2/LICENSES LICENSE-video-glide64mk2
cp -a source/mupen64plus-video-rice/LICENSES LICENSE-video-rice
cp -a source/mupen64plus-ui-console/LICENSES LICENSE-ui-console
cp -a source/mupen64plus-core/LICENSES LICENSE-core
cp -a source/mupen64plus-audio-sdl/LICENSES LICENSE-audio-sdl

  In %files:

%files
%license LICENSE-rsp-hle LICENSE-assets LICENSE-rom LICENSE-input-sdl
LICENSE-video-glide64mk2 LICENSE-video-rice LICENSE-core LICENSE-audio-sdl

 - The assets in source/mupen64plus-rom/mupen64plus/assets/ are actually
Creative Common Attribution-ShareAlike 3.0, so you should add that license to
the License: field:

License:    GPLv2+ and CC-BY-SA

 - Since you're including a shared library, you must run ldconfig in %post and
%postun:

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

   See https://fedoraproject.org/wiki/Packaging:Guidelines#Shared_Libraries

 - You should own this directory: /usr/lib64/mupen64plus :

%dir %{_libdir}/%{name}

 - In the %changelog, put a space before the version info, otherwise it's not
recognized correctly:

* Thu Jan 11 2018 Wade Berrier <wberrier@xxxxxxxxx> - 2.5-2

 - Use pkgconfig for your devel deps when you can:

BuildRequires:    pkgconfig(SDL_ttf)
BuildRequires:    pkgconfig(lirc)
BuildRequires:    desktop-file-utils
BuildRequires:    pkgconfig(glu)
BuildRequires:    pkgconfig(samplerate)
BuildRequires:    pkgconfig(libpng)
BuildRequires:    pkgconfig(sdl)
BuildRequires:    pkgconfig(freetype2)
BuildRequires:    boost-devel
BuildRequires:    gzip
BuildRequires:    pkgconfig(glew)
BuildRequires:    binutils



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

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


Issues:
=======
- ldconfig called in %post and %postun if required.
  Note: /sbin/ldconfig not called in mupen64plus
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#Shared_Libraries
- Package installs a %{name}.desktop using desktop-file-install or desktop-
  file-validate if there is such a file.


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[!]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: Header files in -devel subpackage, if present.
[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: "GPL", "GPL (v2 or later)", "Unknown or generated", "MIT/X11
     (BSD like)", "zlib/libpng", "BSD (2 clause)", "GPL (v2 or later) (with
     incorrect FSF address)", "GPL (with incorrect FSF address)", "LGPL
     (v2.1 or later)", "BSD (3 clause) GPL (v2 or later)", "GPL (v2)". 119
     files have unknown license. Detailed output of licensecheck in
     /home/bob/packaging/review/mupen64plus/review-
     mupen64plus/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/lib64/mupen64plus
[!]: Package must own all directories that it creates.
     Note: Directories without known owners:
     /usr/share/icons/hicolor/48x48, /usr/share/icons/hicolor/48x48/apps,
     /usr/lib64/mupen64plus, /usr/share/icons/hicolor/scalable/apps,
     /usr/share/icons/hicolor, /usr/share/icons/hicolor/scalable
[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.
[!]: Each %files section contains %defattr if rpm < 4.4
     Note: %defattr present but not needed
[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.
[!]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[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 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 contains desktop file if it is a GUI application.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[!]: Buildroot is not present
     Note: Buildroot: present but not needed
[-]: Avoid bundling fonts in non-fonts packages.
     Note: Package contains font files
[-]: 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).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: 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.
[!]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define debug_package %{nil}
[x]: Reviewer should test that the package builds in mock.
[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]: Fully versioned dependency in subpackages if applicable.
[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.

===== EXTRA items =====

Generic:
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
     Note: Arch-ed rpms have a total of 2007040 bytes in /usr/share
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: mupen64plus-2.5-2.fc28.x86_64.rpm
          mupen64plus-devel-2.5-2.fc28.x86_64.rpm
          mupen64plus-2.5-2.fc28.src.rpm
mupen64plus.x86_64: E: explicit-lib-dependency libpng
mupen64plus.x86_64: E: explicit-lib-dependency libsamplerate
mupen64plus.x86_64: W: incoherent-version-in-changelog -2.5-2 ['2.5-2.fc28',
'2.5-2']
mupen64plus.x86_64: E: library-without-ldconfig-postin
/usr/lib64/libmupen64plus.so.2.0.0
mupen64plus.x86_64: E: library-without-ldconfig-postun
/usr/lib64/libmupen64plus.so.2.0.0
mupen64plus.x86_64: E: script-without-shebang
/usr/share/icons/hicolor/scalable/apps/mupen64plus.svg
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-assets
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-audio-sdl
mupen64plus.x86_64: E: incorrect-fsf-address
/usr/share/licenses/mupen64plus/LICENSE-audio-sdl
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-core
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-input-sdl
mupen64plus.x86_64: E: incorrect-fsf-address
/usr/share/licenses/mupen64plus/LICENSE-input-sdl
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-rom
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-rsp-hle
mupen64plus.x86_64: E: incorrect-fsf-address
/usr/share/licenses/mupen64plus/LICENSE-rsp-hle
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-video-glide64mk2
mupen64plus.x86_64: E: incorrect-fsf-address
/usr/share/licenses/mupen64plus/LICENSE-video-glide64mk2
mupen64plus.x86_64: E: script-without-shebang
/usr/share/licenses/mupen64plus/LICENSE-video-rice
mupen64plus.x86_64: E: incorrect-fsf-address
/usr/share/licenses/mupen64plus/LICENSE-video-rice
mupen64plus.x86_64: W: spurious-executable-perm
/usr/share/man/man6/mupen64plus.6.gz
mupen64plus.x86_64: E: script-without-shebang
/usr/share/mupen64plus/Glide64mk2.ini
mupen64plus.x86_64: E: script-without-shebang
/usr/share/mupen64plus/InputAutoCfg.ini
mupen64plus.x86_64: E: script-without-shebang
/usr/share/mupen64plus/RiceVideoLinux.ini
mupen64plus.x86_64: E: script-without-shebang
/usr/share/mupen64plus/mupen64plus.ini
mupen64plus.x86_64: E: script-without-shebang
/usr/share/mupen64plus/mupencheat.txt
mupen64plus-devel.x86_64: W: no-documentation
3 packages and 0 specfiles checked; 23 errors, 3 warnings.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux