File arista.spec of Package arista

#
# spec file for package arista
#
# 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:           arista
Version:        0.9.6
Release:        2
# FIXME: when python-gudev enters Factory, replace the dbus-1-python + hal Requires with a python-gudev Requires
License:        LGPLv2.1+
Summary:        Preset-based transcoder for the GNOME Desktop
Url:            http://www.transcoder.org/
Group:          Productivity/Multimedia/Video/Editors and Convertors
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE arista-remove-shebangs.patch badshah400@gmail.com -- Remove shebangs from .py files
Patch0:         arista-remove-shebangs.patch
# PATCH-FIX-UPSTREAM arista-pycompile.patch dimstar@opensuse.org -- Byte compile also when installed to root != / (reported upstream issue 54, already in git)
Patch1:         arista-pycompile.patch
BuildRequires:  fdupes
# For directory ownership
BuildRequires:  python-nautilus
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       gstreamer-0_10-plugins-bad
Requires:       gstreamer-0_10-plugins-base
Requires:       gstreamer-0_10-plugins-good
Requires:       gstreamer-0_10-plugins-ugly
Requires:       hal
# For gconf bindings
Requires:       python-gnome
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-notify
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
Arista is a simple preset-based transcoder for the GNOME Desktop and a
small script for terminal-based transcoding. Settings are chosen based
on output device and quality preset.

Features:
 * Presets for Android, iPod, computer, DVD player, PSP, and more
 * Live preview to see encoded quality
 * Automatically discover available DVD drives and media
 * Rip straight from DVD media easily
 * Automatically discover and record from Video4Linux devices
 * Support for H.264, WebM, FLV, Ogg, DivX and more
 * Batch processing of entire directories easily
 * Simple terminal client for scripting
 * Nautilus extension for right-click file conversion

%package -n nautilus-extension-arista
License:        LGPLv2.1+
Summary:        Arista extension for Nautilus
Group:          Productivity/Multimedia/Video/Editors and Convertors
Requires:       %{name} = %{version}
Requires:       python-nautilus
Supplements:    packageand(%{name}:nautilus)

%description -n nautilus-extension-arista
Arista is a simple preset-based transcoder for the GNOME Desktop and a
small script for terminal-based transcoding. Settings are chosen based
on output device and quality preset.

Features:
 * Presets for Android, iPod, computer, DVD player, PSP, and more
 * Live preview to see encoded quality
 * Automatically discover available DVD drives and media
 * Rip straight from DVD media easily
 * Automatically discover and record from Video4Linux devices
 * Support for H.264, WebM, FLV, Ogg, DivX and more
 * Batch processing of entire directories easily
 * Simple terminal client for scripting
 * Nautilus extension for right-click file conversion

This package contains a Nautilus extension to add Arista based actions.

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build

%install
%{__python} setup.py install --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --root=%{buildroot}
# Remove files we install with %doc
rm %{buildroot}%{_datadir}/doc/arista/{AUTHORS,LICENSE,README.md}
# Remove file that should not get installed
rm %{buildroot}%{_datadir}/locale/templates/arista.pot
%suse_update_desktop_file arista AudioVideoEditing
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}/arista/

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr(-,root,root)
%doc AUTHORS LICENSE README.md
%{_bindir}/arista-gtk
%{_bindir}/arista-transcode
%{_datadir}/applications/arista.desktop
%{_datadir}/arista/
%{python_sitelib}/arista/
%{python_sitelib}/*.egg-info

%files -n nautilus-extension-arista
%defattr(-,root,root)
%{_datadir}/nautilus-python/extensions/arista-nautilus.py*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by