File pitivi.spec of Package pitivi

# spec file for package pitivi
# Copyright (c) 2012 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

Name:           pitivi
Version:        0.15.2
Release:        0
Summary:        Intuitive and featureful movie editor
License:        LGPL-2.1+
Group:          Productivity/Multimedia/Video/Editors and Convertors
# Imported frmo git tree. Due to a character error in, this file was missnig frmo the tarball.
Source1:        codecscontainers.jpg
Source2:        mainwindow.jpg
# PATCH-FIX-UPSTREAM pitivi-help_figures.patch bgo#679397 -- Fix a weird issue in help/
Patch0:         pitivi-help_figures.patch
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel >= 0.18.0
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  python-devel
BuildRequires:  shared-mime-info
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
Requires:       gstreamer-0_10 >= 0.10.28
Requires:       gstreamer-0_10-plugin-gnonlin >= 0.10.16
%if 0%{?suse_version} <= 1130
# For gconf
Requires:       python-gnome
Requires:       python-gconf
Requires:       python-goocanvas
Requires:       python-gstreamer-0_10 >= 0.10.19
Requires:       python-gtk >= 2.17.0
Requires:       python-setuptools
Requires:       python-xdg
Requires:       python-zopeinterface
# Pitivi can use the Frei0r plugins, and since this enables lots of effects, we
# really want that by default if possible
Recommends:     frei0r-plugins
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

PiTiVi is a free, intuitive and featureful movie editor.

%setup -q
# Test if the file is in the tarball again.
test ! -f help/C/figures/codecscontainers.jpg
test ! -f help/C/figures/mainwindow.jpg
cp %{S:1} %{S:2} help/C/figures/
%patch0 -p1

%__make %{?_smp_mflags} V=1

%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%fdupes %{buildroot}%{_libdir}

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null

%if 0%{?suse_version} > 1130
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null

%defattr(-, root, root)
%dir %{_datadir}/gnome/help/pitivi
%doc %{_datadir}/gnome/help/pitivi/C/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by