File mpvQC.spec of Package mpvQC

#
# spec file for package mpvQC
#
# 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/
#


%define _over   0.9.0-beta1
Name:           mpvQC
Version:        0.9.0beta1
Release:        0
Summary:        Application for quality control videos based on libmpv
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Video/Players
URL:            https://mpvqc.rekt.cc
Source0:        https://github.com/mpvqc/mpvQC/archive/refs/tags/%{_over}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  gettext-runtime
BuildRequires:  icoutils
BuildRequires:  update-desktop-files
Requires:       libmpv1
Requires:       python3-python-mpv
Requires:       python3-qt5
Requires:       python3-requests
Recommends:     %{name}-lang
BuildArch:      noarch

%description
%{name} is a libmpv based application for the creation of quality control
reports of video files.

%lang_package

%prep
%autosetup -n %{name}-%{_over}
###sed -i '/^#!/c#!%%{_bindir}/python3' %%{name}.py
###icotool --icon -x icon.ico

%build
# no build
###msgfmt -o locale/de/LC_MESSAGES/mpvQC.mo locale/de/LC_MESSAGES/mpvQC.po

%install
install -Dm0755 %{name}.py %{buildroot}%{_bindir}/%{name}
install -Dm0644 icon_1_256x256x32.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
install -Dm0644 icon_2_128x128x32.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -Dm0644 icon_3_64x64x32.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -Dm0644 icon_4_16x16x32.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} "Quality Control for videos" %{name} %{name} AudioVideo Video Player
install -Dm0644 locale/de/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
%find_lang %{name}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by