subtitlecomposer/subtitlecomposer.spec

114 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package subtitlecomposer
#
# Copyright (c) 2023 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/
#
Name: subtitlecomposer
Accepting request 1123667 from home:alois:branches:KDE:Extra - Update to version 0.8.0 * Fixed video player on GLES only hardware * Fixed skewed video on video player * Fixed closing fullscreen video player * Fixed subtitles under fullscreen video toolbar * Fixed video player media state notifications * Fixed subtitle video overlay font size accuracy * Fixed deadlock/crash while changing audio stream on paused/stopped media * Improved Waveform widget performance * Fixed waveform misalignment due to rounding error * Fixed waveform widget drawing on null image and painting of removed lines * Fixed waveform default zoom scale * Fixed subtitle text line separator draw on LinesWidget * Fixed unbreak lines (newline searches in QTextDocument) * Fixed crash in split lines * Fixed VobSub import ignoring Text styles * Fixed VobSub crash when moving to previous image * Fixed YouTubeCaptions format parsing/saving * Fixed undo/redo actions creation order, incorrect state * Fixed some memory and saving issues * Fixed embedded ASS decoding * Fixed example remove hearing impaired script * Fixed broken about dialog * Added Qt6 support * Added WebVTT format support * Added subtitle positioning UI and support * Added subtitle class/comments/voice UI and support * Improved rich text editing/preview * Rich text rendering on waveform/video/editors * Added DeepL translate engine * Added Google Cloud translate engine * Recreated translation interface * Added/improved ffmpeg 5 support * Subtitle lines are always time sorted; remove sort lines menu action * Replaced Kross with QJSEngine, removed ruby and python support * Improved script manager and tools menu - Drop subtitlecomposer-ARM_GLES.patch, subtitlecomposer-fix_empty_lines_crash.patch, 0001-Fix-compilation-with-ffmpeg5-63.patch, 0001-VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch, and 0001-Use-non-deprecated-ffmpeg-api.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/1123667 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/subtitlecomposer?expand=0&rev=39
2023-11-06 19:01:33 +00:00
Version: 0.8.0
Release: 0
Summary: A text-based subtitle editor
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://invent.kde.org/multimedia/subtitlecomposer
Source0: https://download.kde.org/stable/subtitlecomposer/%{name}-%{version}.tar.xz
Source1: https://download.kde.org/stable/subtitlecomposer/%{name}-%{version}.tar.xz.sig
Source2: subtitlecomposer.keyring
BuildRequires: cmake >= 3.10
BuildRequires: extra-cmake-modules
BuildRequires: libQt5Widgets-private-headers-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Auth)
BuildRequires: cmake(KF5Codecs)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Kross)
BuildRequires: cmake(KF5Sonnet)
BuildRequires: cmake(KF5TextWidgets)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
Accepting request 1123667 from home:alois:branches:KDE:Extra - Update to version 0.8.0 * Fixed video player on GLES only hardware * Fixed skewed video on video player * Fixed closing fullscreen video player * Fixed subtitles under fullscreen video toolbar * Fixed video player media state notifications * Fixed subtitle video overlay font size accuracy * Fixed deadlock/crash while changing audio stream on paused/stopped media * Improved Waveform widget performance * Fixed waveform misalignment due to rounding error * Fixed waveform widget drawing on null image and painting of removed lines * Fixed waveform default zoom scale * Fixed subtitle text line separator draw on LinesWidget * Fixed unbreak lines (newline searches in QTextDocument) * Fixed crash in split lines * Fixed VobSub import ignoring Text styles * Fixed VobSub crash when moving to previous image * Fixed YouTubeCaptions format parsing/saving * Fixed undo/redo actions creation order, incorrect state * Fixed some memory and saving issues * Fixed embedded ASS decoding * Fixed example remove hearing impaired script * Fixed broken about dialog * Added Qt6 support * Added WebVTT format support * Added subtitle positioning UI and support * Added subtitle class/comments/voice UI and support * Improved rich text editing/preview * Rich text rendering on waveform/video/editors * Added DeepL translate engine * Added Google Cloud translate engine * Recreated translation interface * Added/improved ffmpeg 5 support * Subtitle lines are always time sorted; remove sort lines menu action * Replaced Kross with QJSEngine, removed ruby and python support * Improved script manager and tools menu - Drop subtitlecomposer-ARM_GLES.patch, subtitlecomposer-fix_empty_lines_crash.patch, 0001-Fix-compilation-with-ffmpeg5-63.patch, 0001-VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch, and 0001-Use-non-deprecated-ffmpeg-api.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/1123667 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/subtitlecomposer?expand=0&rev=39
2023-11-06 19:01:33 +00:00
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat) >= 57.83.100
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(openal)
Accepting request 1123667 from home:alois:branches:KDE:Extra - Update to version 0.8.0 * Fixed video player on GLES only hardware * Fixed skewed video on video player * Fixed closing fullscreen video player * Fixed subtitles under fullscreen video toolbar * Fixed video player media state notifications * Fixed subtitle video overlay font size accuracy * Fixed deadlock/crash while changing audio stream on paused/stopped media * Improved Waveform widget performance * Fixed waveform misalignment due to rounding error * Fixed waveform widget drawing on null image and painting of removed lines * Fixed waveform default zoom scale * Fixed subtitle text line separator draw on LinesWidget * Fixed unbreak lines (newline searches in QTextDocument) * Fixed crash in split lines * Fixed VobSub import ignoring Text styles * Fixed VobSub crash when moving to previous image * Fixed YouTubeCaptions format parsing/saving * Fixed undo/redo actions creation order, incorrect state * Fixed some memory and saving issues * Fixed embedded ASS decoding * Fixed example remove hearing impaired script * Fixed broken about dialog * Added Qt6 support * Added WebVTT format support * Added subtitle positioning UI and support * Added subtitle class/comments/voice UI and support * Improved rich text editing/preview * Rich text rendering on waveform/video/editors * Added DeepL translate engine * Added Google Cloud translate engine * Recreated translation interface * Added/improved ffmpeg 5 support * Subtitle lines are always time sorted; remove sort lines menu action * Replaced Kross with QJSEngine, removed ruby and python support * Improved script manager and tools menu - Drop subtitlecomposer-ARM_GLES.patch, subtitlecomposer-fix_empty_lines_crash.patch, 0001-Fix-compilation-with-ffmpeg5-63.patch, 0001-VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch, and 0001-Use-non-deprecated-ffmpeg-api.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/1123667 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/subtitlecomposer?expand=0&rev=39
2023-11-06 19:01:33 +00:00
BuildRequires: pkgconfig(openssl)
%if 0%{?suse_version} > 1500
%ifnarch ppc64 s390x
BuildRequires: pkgconfig(pocketsphinx) >= 5
%endif
%endif
%description
A text-based subtitles editor that supports basic operations. It supports
SubRip (SRT), MicroDVD, SSA/ASS, MPlayer, TMPlayer and YouTube captions, and
has speech Recognition using PocketSphinx.
%lang_package
%prep
%autosetup -p1
%build
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
# Fix rpmlint error (devel-file-in-non-devel-package) and install header files as doc (since they are installed just for help)
mkdir files_for_doc
cp -a %{buildroot}%{_kf5_appsdir}/%{name}/scripts/api/ files_for_doc/
rm -rf %{buildroot}%{_kf5_appsdir}/%{name}/scripts/api/
# Point to the correct path of the header files directory (doc)
perl -pi -e "s|'api'|'%{_docdir}/subtitlecomposer/api'|" %{buildroot}%{_kf5_appsdir}/%{name}/scripts/README
%find_lang %{name}
%{kf5_post_install}
%files
%doc ChangeLog README.md files_for_doc/api
%license LICENSE
%config(noreplace) %{_kf5_configdir}/%{name}rc
%dir %{_kf5_iconsdir}/hicolor/256x256
%dir %{_kf5_iconsdir}/hicolor/256x256/apps
%{_kf5_applicationsdir}/org.kde.%{name}.desktop
%{_kf5_appsdir}/%{name}/
%{_kf5_appstreamdir}/org.kde.%{name}.appdata.xml
%{_kf5_bindir}/%{name}
%{_kf5_iconsdir}/hicolor/*/*/*
%{_kf5_sharedir}/mime/packages/%{name}.xml
%if 0%{?suse_version} > 1500
%ifnarch ppc64 s390x
%{_kf5_libdir}/%{name}/
%endif
%endif
%files lang -f %{name}.lang
%changelog