c9fa2cb6c1
Update to 0.5.6 - Continuation of original package since initial author stopped development, Added libicu-devel build requirement, Removed all previous patches (fixed upstream) OBS-URL: https://build.opensuse.org/request/show/209449 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/subtitlecomposer?expand=0&rev=6
104 lines
3.1 KiB
RPMSpec
104 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package subtitlecomposer
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
Name: subtitlecomposer
|
|
Version: 0.5.6
|
|
Release: 0
|
|
License: GPL-2.0+
|
|
Summary: A text-based subtitle editor
|
|
Url: https://github.com/maxrd2/subtitlecomposer/
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
# https://github.com/maxrd2/subtitlecomposer/archive/v0.5.6.tar.gz
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: gstreamer-0_10-plugins-base-devel
|
|
BuildRequires: libicu-devel
|
|
BuildRequires: libkde4-devel
|
|
BuildRequires: libxine-devel
|
|
BuildRequires: pkgconfig(gstreamer-0.10)
|
|
%if 0%{?suse_version}
|
|
BuildRequires: update-desktop-files
|
|
%endif
|
|
Recommends: %{name}-lang = %{version}
|
|
Requires(post): shared-mime-info
|
|
Requires(postun): shared-mime-info
|
|
%kde4_runtime_requires
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
# Fix permissions
|
|
chmod 644 ChangeLog
|
|
|
|
%build
|
|
%cmake_kde4 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
%kde4_makeinstall -C build
|
|
|
|
%if 0%{?suse_version}
|
|
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo AudioVideoEditing
|
|
%endif
|
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
|
|
|
%find_lang %{name}
|
|
|
|
%kde_post_install
|
|
|
|
# Fix persissions
|
|
chmod 755 %{buildroot}%{_kde4_appsdir}/%{name}/scripts/*.py
|
|
chmod 755 %{buildroot}%{_kde4_appsdir}/%{name}/scripts/*.rb
|
|
# Fix rpmlint warning (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}%{_kde4_appsdir}/%{name}/scripts/api/ files_for_doc/
|
|
rm -rf %{buildroot}%{_kde4_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}%{_kde4_appsdir}/%{name}/scripts/README
|
|
|
|
%post
|
|
%mime_database_post
|
|
|
|
%postun
|
|
%mime_database_postun
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING ChangeLog README.md TODO files_for_doc/api
|
|
%{_kde4_bindir}/%{name}
|
|
%{_kde4_applicationsdir}/%{name}.desktop
|
|
%{_kde4_appsdir}/%{name}/
|
|
%{_kde4_configdir}/%{name}rc
|
|
%dir %{_kde4_iconsdir}/hicolor/96x96
|
|
%dir %{_kde4_iconsdir}/hicolor/96x96/apps
|
|
%{_kde4_iconsdir}/hicolor/*/*/*
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
|
|
%changelog
|