Bug 4182

Summary: Review request: ffmulticonverter - GUI File Format Converter
Product: Package Reviews Reporter: Vasiliy Glazov <vascom2>
Component: Review RequestAssignee: leigh scott <leigh123linux>
Status: RESOLVED FIXED    
Severity: normal CC: leigh123linux, rpmfusion-package-review
Priority: P5    
Version: Current   
Hardware: All   
OS: GNU/Linux   
namespace:
Bug Depends on:    
Bug Blocks: 4    

Description Vasiliy Glazov 2016-08-12 13:31:14 CEST
I would like to add ffmulticonverter to rpmfusion repo.

Description:
Graphical application which enables you to convert audio, video, image and
document files between all popular formats using ffmpeg, unoconv, and
ImageMagick.

Features:
 - Conversions for several file formats.
 - Very easy to use interface.
 - Access to common conversion options.
 - Audio/video ffmpeg-presets management.
 - Options for saving and naming files.
 - Recursive conversions

This package was long time in russianfedora repo http://koji.russianfedora.pro/koji/packageinfo?packageID=16

SPEC: https://raw.githubusercontent.com/RussianFedora/ffmulticonverter/master/ffmulticonverter.spec
SRPM: http://koji.russianfedora.pro/kojifiles/packages/ffmulticonverter/1.8.0/1.fc25/src/ffmulticonverter-1.8.0-1.fc25.src.rpm

This is my first package fo rpmfusion and I am need a sponsor.
After that I can add few another packages and patch others.
Comment 1 leigh scott 2016-08-12 17:45:54 CEST
(In reply to comment #0)

> This is my first package fo rpmfusion and I am need a sponsor.
> After that I can add few another packages and patch others.

No sponsor is needed as your already an approved fedora packager

https://admin.fedoraproject.org/pkgdb/packager/vascom/
Comment 2 leigh scott 2016-08-12 18:19:46 CEST
The shebang errors need fixing

Checking: ffmulticonverter-1.8.0-1.fc26.noarch.rpm
          ffmulticonverter-1.8.0-1.fc26.src.rpm
ffmulticonverter.noarch: E: script-without-shebang /usr/lib/python3.5/site-packages/ffmulticonverter/ffmulticonverter.py
ffmulticonverter.noarch: E: script-without-shebang /usr/lib/python3.5/site-packages/ffmulticonverter/presets_dlgs.py
ffmulticonverter.noarch: E: script-without-shebang /usr/lib/python3.5/site-packages/ffmulticonverter/about_dlg.py
ffmulticonverter.noarch: E: script-without-shebang /usr/lib/python3.5/site-packages/ffmulticonverter/preferences_dlg.py
ffmulticonverter.noarch: E: script-without-shebang /usr/lib/python3.5/site-packages/ffmulticonverter/progress.py
ffmulticonverter.src: W: spelling-error %description -l en_US ffmpeg -> MPEG
ffmulticonverter.src: W: spelling-error %description -l en_US unoconv -> unconvinced
2 packages and 0 specfiles checked; 5 errors, 2 warnings.

This isn't the correct fix

chmod 755 %{buildroot}%{python3_sitelib}/%{name}/%{name}.py
chmod 755 %{buildroot}%{python3_sitelib}/%{name}/about_dlg.py
chmod 755 %{buildroot}%{python3_sitelib}/%{name}/presets_dlgs.py
chmod 755 %{buildroot}%{python3_sitelib}/%{name}/progress.py
chmod 755 %{buildroot}%{python3_sitelib}/%{name}/preferences_dlg.py

If you use the correct marco's you should get the error

see

https://dl.dropboxusercontent.com/u/6907158/ffmulticonverter.spec

also remove the gz from the man file

%{_mandir}/man1/%{name}.1.gz

to

%{_mandir}/man1/%{name}.1.*

and %prep should be changed from

%prep
%setup -q -n %{name}-%version

to

%prep
%setup -q
Comment 3 leigh scott 2016-08-12 18:20:42 CEST
(In reply to comment #2)

> If you use the correct marco's you should get the error
> 
> see
> 
> https://dl.dropboxusercontent.com/u/6907158/ffmulticonverter.spec
> 

should=shouldn't
Comment 4 Vasiliy Glazov 2016-08-12 18:42:50 CEST
Why I must remove gz from man?
Comment 5 Andrea Musuruane 2016-08-12 18:44:45 CEST
(In reply to comment #4)
> Why I must remove gz from man?

From:
https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Manpages

"When installing man pages, note that they should be installed uncompressed as the build system will compress them as needed. The compression method may change, so it is important to reference the pages in the %files section with a pattern that takes this into account:

%files
%{_mandir}/man1/foo.1*
"
Comment 6 leigh scott 2016-08-12 18:45:57 CEST
(In reply to comment #4)
> Why I must remove gz from man?

Because fedora packaging guidelines state it.

https://fedoraproject.org/wiki/Packaging:Guidelines#Manpages
Comment 8 leigh scott 2016-08-12 22:53:37 CEST
Review failed

==============

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


Issues:
=======
1) Package License is wrong, it needs changing to 

License:    GPLv3+

GPL (v3 or later)
-----------------
ffmulticonverter-1.8.0/ffmulticonverter/about_dlg.py
ffmulticonverter-1.8.0/ffmulticonverter/audiovideotab.py
ffmulticonverter-1.8.0/ffmulticonverter/documenttab.py
ffmulticonverter-1.8.0/ffmulticonverter/ffmulticonverter.py
ffmulticonverter-1.8.0/ffmulticonverter/imagetab.py
ffmulticonverter-1.8.0/ffmulticonverter/preferences_dlg.py
ffmulticonverter-1.8.0/ffmulticonverter/presets_dlgs.py
ffmulticonverter-1.8.0/ffmulticonverter/progress.py
ffmulticonverter-1.8.0/ffmulticonverter/utils.py


2) Requires:   python-qt5 is wrong, this is a python3 package so change it to

Requires:   python3-qt5


3) Unowned directory /usr/share/ffmulticonverter

change

%{_datadir}/%{name}/presets.xml

to

%{_datadir}/%{name}/



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

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.
[!]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "GPL (v3 or later)", "Unknown or generated". 19 files have
     unknown license. Detailed output of licensecheck in
     /home/leigh/Desktop/ffmulticonverter/licensecheck.txt
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/ffmulticonverter
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/ffmulticonverter
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: 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]: 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 20480 bytes in 4 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 does not own files or directories owned by other packages.
[x]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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]: Package installs a %{name}.desktop using desktop-file-install or
     desktop-file-validate if there is such a file.
[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:
[x]: 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]: 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.
[?]: 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 all installed packages.
     Note: No rpmlint messages.


Rpmlint
-------
Checking: ffmulticonverter-1.8.0-2.fc24.noarch.rpm
          ffmulticonverter-1.8.0-2.fc24.src.rpm
ffmulticonverter.src: W: spelling-error %description -l en_US ffmpeg -> MPEG
ffmulticonverter.src: W: spelling-error %description -l en_US unoconv -> unconvinced
2 packages and 0 specfiles checked; 0 errors, 2 warnings.




Rpmlint (installed packages)
----------------------------
1 packages and 0 specfiles checked; 0 errors, 0 warnings.



Requires
--------
ffmulticonverter (rpmlib, GLIBC filtered):
    /usr/bin/python3
    ImageMagick
    ffmpeg
    python(abi)
    python-qt5
    unoconv



Provides
--------
ffmulticonverter:
    application()
    application(ffmulticonverter.desktop)
    ffmulticonverter



Source checksums
----------------
http://sourceforge.net/projects/ffmulticonv/files/ffmulticonverter-1.8.0.tar.gz :
  CHECKSUM(SHA256) this package     : 5f2d8ed0acc70952c54fb1f3d13caa858988ebc7cc3b99b9fae7b6856d6a7f85
  CHECKSUM(SHA256) upstream package : 5f2d8ed0acc70952c54fb1f3d13caa858988ebc7cc3b99b9fae7b6856d6a7f85
Comment 10 leigh scott 2016-08-13 09:09:11 CEST
PACKAGE APPROVED FOR FREE REPO
Comment 12 Vasiliy Glazov 2016-08-13 09:16:01 CEST
Package CVS request
======================
Package Name: ffmulticonverter
Short Description: GUI File Format Converter
Owners: vascom
Branches: 23 24 25 rawhide
InitialCC:
----------------------
License tag: free
Comment 13 leigh scott 2016-08-13 13:02:40 CEST
(In reply to comment #12)
> Package CVS request
> ======================
> Package Name: ffmulticonverter
> Short Description: GUI File Format Converter
> Owners: vascom
> Branches: 23 24 25 rawhide
> InitialCC:
> ----------------------
> License tag: free

cvs done

https://pkgs.rpmfusion.org/cgit/free/ffmulticonverter.git/

http://rpmfusion.org/Contributors#Import_your_package
Comment 14 Vasiliy Glazov 2016-08-13 20:22:21 CEST
Thanks, all done.
Comment 15 Vasiliy Glazov 2016-08-13 20:36:51 CEST
Another one question: how to push koji builds to repos?
Comment 16 leigh scott 2016-08-13 20:51:59 CEST
(In reply to comment #15)
> Another one question: how to push koji builds to repos?

At the moment there is no user/bodhi push system, it is manually done every 3-4 days by kwizart (Nicolas Chauvet).