File subtivals.spec of Package subtivals
#
# spec file for package subtivals
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 Edgar Aichinger <edogawa@aon.at>
# 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: subtivals
Version: 1.10.0
Release: 0
Summary: Program to project sub- or surtitles
License: GPL-3.0
URL: http://subtivals.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: pkg-config
BuildRequires: libqt5-linguist
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: update-desktop-files
%description
Subtivals is a program to project Advanced SubStation Alpha (ASS, .ass),
Subrip (.srt) and simple text (*.txt) subtitles, during film festivals for example.
%prep
%autosetup
%build
mkdir build/
cd build
qmake-qt5 ../src/subtivals.pro
make %{?_smp_mflags}
%install
cd build
export INSTALL_ROOT=%{buildroot}
%make_install
%suse_update_desktop_file %{name} AudioVideo Video Player
%files
%license COPYING
%doc docs
%attr(755,root,root) %{_bindir}/*
%{_datadir}/applications/*
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/subtivals.svg
%changelog