File pitivi.spec of Package pitivi

#
# spec file for package pitivi
#
# 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:           pitivi
Version:        0.13.5
Release:        3
License:        LGPLv2.1+
Summary:        Intuitive and featureful movie editor
Url:            http://www.pitivi.org/
Group:          Productivity/Multimedia/Video/Editors and Convertors
Source:         http://download.gnome.org/sources/pitivi/0.13/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
Requires:       gstreamer-0_10
Requires:       gstreamer-0_10-plugin-gnonlin
# For gconf
Requires:       python-gnome
Requires:       python-goocanvas
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-setuptools
Requires:       python-zopeinterface
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%description
PiTiVi is a free, intuitive and featureful movie editor.

%lang_package
%prep
%setup -q

%build
%configure
%__make %{?_smp_mflags} V=1

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

%clean
rm -rf %{buildroot}

%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%else
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif

%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%else
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%endif

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS RELEASE
%{_bindir}/pitivi
%{_libdir}/pitivi/
%{_datadir}/applications/pitivi.desktop
%{_datadir}/icons/hicolor/*/apps/pitivi.png
%{_datadir}/icons/hicolor/*/apps/pitivi.svg
%{_datadir}/mime/packages/pitivi.xml
%{_datadir}/pitivi/

%files lang -f %{name}.lang

%changelog