subtitlecomposer/subtitlecomposer.spec

66 lines
2.4 KiB
RPMSpec

Name: subtitlecomposer
Version: 0.5.3
Release: 0
Summary: A text-based subtitle editor
License: GPLv2+
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: http://subcomposer.sourceforge.net/
Source0: http://dl.sf.net/sourceforge/subcomposer/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM subtitlecomposer-linkage.patch -- from upstream SVN, remove in next version
Patch0: %{name}-linkage.patch
# PATCH-FIX-UPSTREAM subtitlecomposer-0.5.3-scripting_api.patch https://sf.net/tracker/?func=detail&aid=2816725&group_id=208427&atid=1005652 cmorve69@yahoo.es -- fixes installation of broken symlinks
Patch1: %{name}-%{version}-scripting_api.patch
# PATCH-FIX-UPSTREAM subtitlecomposer-0.5.3-gcc45.patch -- from upstream SVN, remove in next version
Patch2: %{name}-%{version}-gcc45.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# src/main/utils/translator.cpp:223 uses KIO::TransferJob::setTotalSize,
# available since 4.2.1
BuildRequires: libkde4-devel > 4.2.1 libxine-devel
BuildRequires: gstreamer-0_10-devel gstreamer-0_10-plugins-base-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files fdupes
%endif
%kde4_runtime_requires
%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.
%prep
%setup -q
%patch0
%patch1
%patch2
# PATCH-FIX-UPSTREAM prep_section_changes https://sourceforge.net/tracker/?func=detail&aid=2817615&group_id=208427&atid=1005652 cmorve69@yahoo.es -- fixes the installation path of icons
%{__mv} src/main/images/hi48-app-mediaplayer.png src/main/images/hi96-app-mediaplayer.png
%{__mv} src/main/images/hi48-app-mediaplayer-closed.png src/main/images/hi64-app-mediaplayer.png
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} 'AudioVideo;AudioVideoEditing;'
%endif
%fdupes -s '%{buildroot}%{_datadir}'
%find_lang %{name}
%clean
%{__rm} -rf '%{buildroot}'
%files -f build/%{name}.lang
%defattr(0644, root, root, 0755)
%doc AUTHORS ChangeLog COPYING TODO
%attr(755, root, root) %{_bindir}/%{name}
%{_kde_share_dir}/apps/%{name}
%{_kde_config_dir}/%{name}rc
%{_datadir}/applications/kde4/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/%{name}.xml
%changelog