File gnome-subtitles.spec of Package gnome-subtitles

#
# spec file for package gnome-subtitles
#
# Copyright (c) 2011 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.2
Release:        1
License:        GPLv2+
Summary:        Subtitle editor for GNOME
Url:            http://gnome-subtitles.sourceforge.net
Group:          Productivity/Multimedia/Video/Editors and Convertors
Source0:        http://downloads.sourceforge.net/project/gnome-subtitles/gnome-subtitles/1.2/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gconf-sharp2
BuildRequires:  gconf2-devel
BuildRequires:  glade-sharp2
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gstreamer-0_10-devel
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  gtk-sharp2
BuildRequires:  gtk2-devel
BuildRequires:  gtkspell
BuildRequires:  intltool
BuildRequires:  mono-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       glade-sharp2
Requires:       gnome-sharp2
Requires:       gstreamer-0_10-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
%__make %{?_smp_mflags}

%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

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%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.png

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by