2011-01-18 22:34:07 +01:00
|
|
|
#
|
|
|
|
# spec file for package subtitlecomposer
|
|
|
|
#
|
2016-06-23 23:03:31 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-01-18 22:34:07 +01:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-11-17 00:33:08 +01:00
|
|
|
|
2010-07-16 02:27:53 +02:00
|
|
|
Name: subtitlecomposer
|
2016-06-23 23:03:31 +02:00
|
|
|
Version: 0.6.4
|
2013-12-05 10:38:50 +01:00
|
|
|
Release: 0
|
2010-07-16 02:27:53 +02:00
|
|
|
Summary: A text-based subtitle editor
|
2014-11-17 00:33:08 +01:00
|
|
|
License: GPL-2.0+
|
2010-07-16 02:27:53 +02:00
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2014-11-17 00:33:08 +01:00
|
|
|
Url: https://github.com/maxrd2/subtitlecomposer/
|
2016-06-23 23:03:31 +02:00
|
|
|
Source0: https://github.com/maxrd2/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: extra-cmake-modules
|
2014-11-17 00:33:08 +01:00
|
|
|
BuildRequires: gstreamer-plugins-base-devel
|
2016-06-23 23:03:31 +02:00
|
|
|
BuildRequires: kauth-devel
|
|
|
|
BuildRequires: kcodecs-devel
|
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kconfigwidgets-devel
|
|
|
|
BuildRequires: kcoreaddons-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kio-devel
|
|
|
|
BuildRequires: kross-devel
|
|
|
|
BuildRequires: ktextwidgets-devel
|
|
|
|
BuildRequires: kwidgetsaddons-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
2013-12-05 10:38:50 +01:00
|
|
|
BuildRequires: libicu-devel
|
2011-01-18 22:34:07 +01:00
|
|
|
BuildRequires: libxine-devel
|
2016-06-23 23:03:31 +02:00
|
|
|
BuildRequires: mpv-devel
|
|
|
|
BuildRequires: phonon4qt5-devel
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2014-11-17 00:33:08 +01:00
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2016-06-23 23:03:31 +02:00
|
|
|
BuildRequires: sonnet-devel
|
2010-07-16 02:27:53 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-01-18 22:34:07 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2010-07-16 02:27:53 +02:00
|
|
|
%endif
|
2011-12-06 20:32:14 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2011-06-03 21:08:24 +02:00
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
2013-12-05 10:38:50 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-16 02:27:53 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A text-based subtitles editor that supports basic operations as well as more
|
|
|
|
advanced ones, aiming to become an improved version of Subtitle Workshop for
|
|
|
|
every platform supported by KDE.
|
|
|
|
|
2011-01-18 22:34:07 +01:00
|
|
|
%lang_package
|
|
|
|
|
2010-07-16 02:27:53 +02:00
|
|
|
%prep
|
2016-06-23 23:03:31 +02:00
|
|
|
%setup -q
|
2013-12-05 10:38:50 +01:00
|
|
|
|
2011-01-18 22:34:07 +01:00
|
|
|
# Fix permissions
|
|
|
|
chmod 644 ChangeLog
|
2010-07-16 02:27:53 +02:00
|
|
|
|
|
|
|
%build
|
2016-06-23 23:03:31 +02:00
|
|
|
%cmake_kf5 -d build
|
2010-07-16 02:27:53 +02:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2016-06-23 23:03:31 +02:00
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
|
|
|
# Fix persissions
|
|
|
|
chmod 755 %{buildroot}%{_kf5_appsdir}/%{name}/scripts/*.py
|
|
|
|
chmod 755 %{buildroot}%{_kf5_appsdir}/%{name}/scripts/*.rb
|
|
|
|
# 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'|'/usr/share/doc/packages/subtitlecomposer/api'|" %{buildroot}%{_kf5_appsdir}/%{name}/scripts/README
|
2011-12-06 20:32:14 +01:00
|
|
|
|
2010-07-16 02:27:53 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-01-18 22:34:07 +01:00
|
|
|
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo AudioVideoEditing
|
2010-07-16 02:27:53 +02:00
|
|
|
%endif
|
2011-12-06 20:32:14 +01:00
|
|
|
|
2010-07-16 02:27:53 +02:00
|
|
|
%find_lang %{name}
|
2011-12-06 20:32:14 +01:00
|
|
|
|
2016-06-23 23:03:31 +02:00
|
|
|
%kf5_post_install
|
2010-07-16 02:27:53 +02:00
|
|
|
|
2011-06-03 21:08:24 +02:00
|
|
|
%post
|
2013-12-05 10:38:50 +01:00
|
|
|
%mime_database_post
|
2011-06-03 21:08:24 +02:00
|
|
|
|
|
|
|
%postun
|
2013-12-05 10:38:50 +01:00
|
|
|
%mime_database_postun
|
2011-06-03 21:08:24 +02:00
|
|
|
|
2011-01-18 22:34:07 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-12-05 10:38:50 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog README.md TODO files_for_doc/api
|
2016-06-23 23:03:31 +02:00
|
|
|
%{_kf5_applicationsdir}/%{name}.desktop
|
|
|
|
%{_kf5_appsdir}/%{name}/
|
|
|
|
%{_kf5_bindir}/%{name}
|
|
|
|
%config(noreplace) %{_kf5_configdir}/%{name}rc
|
|
|
|
%if 0%{?suse_version} < 1320
|
|
|
|
%dir %{_kf5_iconsdir}/hicolor/*
|
|
|
|
%dir %{_kf5_iconsdir}/hicolor/*/apps
|
|
|
|
%endif
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*
|
|
|
|
%{_kf5_kxmlguidir}/%{name}/
|
|
|
|
%{_kf5_libdir}/%{name}/
|
2010-07-16 02:27:53 +02:00
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
|
2011-01-18 22:34:07 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2010-07-16 02:27:53 +02:00
|
|
|
%changelog
|