File gnome-subtitles.spec of Package gnome-subtitles

#
# spec file for package gnome-subtitles
#
# 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:           gnome-subtitles
Version:        1.3
Release:        0
Summary:        Subtitle editor for GNOME
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://gnome-subtitles.sourceforge.net
Source0:        http://downloads.sourceforge.net/project/gnome-subtitles/gnome-subtitles/1.3/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gconf-sharp2
BuildRequires:  gconf2-devel
BuildRequires:  glade-sharp2
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gstreamer-devel
BuildRequires:  gstreamer-plugins-base-devel
BuildRequires:  gtk-sharp2
BuildRequires:  gtk3-devel
BuildRequires:  gtkspell
BuildRequires:  intltool
BuildRequires:  mono-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       glade-sharp2
Requires:       gnome-sharp2
Requires:       gstreamer-plugins-base
Requires:       gtkspell
Requires:       mono-core
Recommends:     %{name}-lang

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%gconf_schemas_prereq

%description
Gnome Subtitles is a subtitle editor for the GNOME desktop. It supports
the most common text-based subtitle formats and allows for subtitle
editing, translation and synchronization.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%{configure} --disable-scrollkeeper \
   --disable-schemas-install
# Disable parallel build - mono fails to often with it
make

%install
%{makeinstall}
%{__rm} %{buildroot}%{_libdir}/%{name}/libgstreamer_playbin.la
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes -s %{buildroot}

%clean
%{__rm} -rf '%{buildroot}'

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%post
%desktop_database_post

%postun
%desktop_database_postun

%files -f %{name}.schemas_list
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/gnome-subtitles.1*
%{_datadir}/pixmaps/gnome-subtitles.svg

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by