File vidcutter.spec of Package vidcutter
#
# spec file for package vidcutter
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
%global pythons python311
%else
%global pythons python3
%endif
%define pkgver 6.0.5.2
Name: vidcutter
Version: %{pkgver}.git20250419
Release: 0
Summary: Video cutter and joiner
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: http://vidcutter.ozmartians.com/
Source0: https://github.com/ozmartian/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: %{name}-rpmlintrc
# PATCH-FEATURE-OPENSUSE vidcutter-susepaths.patch aloisio@gmx.com -- use default SUSE paths
Patch0: vidcutter-susepaths.patch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: mpv-devel
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module base}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
Requires: ffmpeg
Requires: libmpv2
Requires: mediainfo
Requires: python3-opengl
Requires: python3-qt5
Requires: python3-typing
%python_subpackages
%description
Vidcutter is a Qt5-based application for video trimming/splitting
and merging/joining. The backend is driven by FFmpeg.
%prep
%autosetup -p1
# remove shebang
for f in $(find ./vidcutter -name "*.py"); do
sed '0,/^#!/{//d;}' -i ${f}
done
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files
%doc CHANGELOG README.md
%license LICENSE
%{_bindir}/%{name}
%{python_sitearch}/%{name}/
%{python_sitearch}/%{name}-%{pkgver}.dist-info/
%{_datadir}/applications/com.ozmartians.VidCutter.desktop
%{_datadir}/icons/hicolor/*/apps/com.ozmartians.VidCutter.png
%{_datadir}/icons/hicolor/scalable/apps/com.ozmartians.VidCutter.svg
%{_datadir}/metainfo/com.ozmartians.VidCutter.appdata.xml
%{_datadir}/mime/packages/com.ozmartians.VidCutter.xml
%changelog