Bug 2161114

Summary: Review Request: openshot - Create and edit videos and movies
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: Package ReviewAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davide, hobbes1069, package-review, sergio
Target Milestone: ---Flags: dominik: fedora-review?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2161113    
Bug Blocks: 2218117    

Description Neal Gompa 2023-01-15 23:57:27 UTC
Spec URL: https://ngompa.fedorapeople.org/for-review/openshot.spec
SRPM URL: https://ngompa.fedorapeople.org/for-review/openshot-3.0.0-2.fc37.src.rpm

Description:
OpenShot Video Editor is a free, open-source, non-linear video editor. It
can create and edit videos and movies using many popular video, audio,
image formats.  Create videos for YouTube, Flickr, Vimeo, Metacafe, iPod,
Xbox, and many more common formats!

Features include:
* Multiple tracks (layers)
* Compositing, image overlays, and watermarks
* Audio mixing and editing
* Support for image sequences (rotoscoping)
* Key-frame animation
* Video effects (chroma-key)
* Transitions (lumas and masks)
* Titles with integrated editor and templates
* 3D animation (titles and effects)


Fedora Account System Username: ngompa

Comment 1 Jakub Kadlčík 2023-01-16 15:27:19 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5238031
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2161114-openshot/srpm-builds/05238031/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

Comment 2 Dominik 'Rathann' Mierzejewski 2023-08-04 23:45:27 UTC
Taking review.

Comment 3 Dominik 'Rathann' Mierzejewski 2023-08-06 10:11:27 UTC
Scratch build in koji succeeded: https://koji.fedoraproject.org/koji/taskinfo?taskID=104433221 .

License tag must be corrected:
License:        GPL-3.0-or-later

licensecheck finds the following additional licenses:
Apache-2.0:
src/timeline/media/css/bootstrap.min.css
GPL-2.0-or-later:
images/Humanity/*
MIT:
src/timeline/media/css/ui-darkness/jquery-ui.theme.css
src/timeline/media/js/angular-animate.min.js
src/timeline/media/js/angular.min.js
src/timeline/media/js/jquery.js
src/timeline/media/js/jquery-ui.js
CC-BY-SA-4.0:
src/emojis/*
public-domain:
doc/youtube_directive.py

However, the doc/youtube_directive.py file doesn't seem to be included in the final package, so I think it can be skipped.

Please convert to using the pyproject_* macros if possible. %py3_build and %py3_install are old-style.
This might let you drop some of the manual BuildRequires, too.

Please change -f to -v in the rm invocation below:
rm -f %{buildroot}%{_prefix}/lib/mime/packages/openshot-qt
It'll fail when it's no longer necessary and the maintainer will know they can remove it.

Please open an upstream issue for non-x86 support.

The %files section should be more explicit, because the globs resolve to just one file in most cases:

%{_bindir}/*
should be
%{_bindir}/openshot-qt

%{_datadir}/applications/*.desktop
should be
%{_datadir}/applications/org.openshot.OpenShot.desktop

%{_datadir}/icons/hicolor/*/*/*
should be
%{_datadir}/icons/hicolor/*/apps/openshot-qt.png
%{_datadir}/icons/hicolor/scalable/apps/openshot-qt.svg
%{_datadir}/icons/hicolor/scalable/mimetypes/openshot-qt-doc.svg

%{_datadir}/pixmaps/*
should be
%{_datadir}/pixmaps/openshot-qt.svg

%{_datadir}/mime/packages/*
should be
%{_datadir}/mime/packages/org.openshot.OpenShot.xml

%{_metainfodir}/*.appdata.xml
should be
%{_metainfodir}/org.openshot.OpenShot.appdata.xml

Using a macro for 'org.openshot.OpenShot' might be a good idea here.

%{python3_sitelib}/*egg-info
will not be required if you use %pyproject_* macros.

rpmlint finds some issues:
openshot.noarch: E: zero-length /usr/lib/python3.12/site-packages/openshot_qt/windows/views/timeline_mixins.py
openshot.noarch: W: no-manual-page-for-binary openshot-qt
and some duplicate files:
openshot.noarch: E: files-duplicated-waste 1318606
openshot.noarch: W: files-duplicate /usr/lib/python3.12/site-packages/openshot_qt/images/cache/2744.png /usr/lib/python3.12/site-packages/openshot_qt/images/cache/1F300.png:/usr/lib/python3.12/site-packages/openshot_qt/images/cache/1F3BC.png:/usr/lib/python3.12/site-packages/openshot_qt/images/cache/1F4A4.png:/usr/lib/python3.12/site-packages/openshot_qt/images/cache/1F4CE.png:/usr/lib/python3.12/site-packages/openshot_qt/images/cache/1F587.png
...

Other than that, the spec file is legible.