LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnome-dvb-daemon.spec of Package gnome-dvb-daemon (Project openSUSE:11.4)

#
# spec file for package gnome-dvb-daemon
#
# 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-dvb-daemon
Version:        0.1.22
Release:        2
License:        GPLv3+
Summary:        Daemon to use DVB devices
Url:            http://live.gnome.org/DVBDaemon
Group:          Productivity/Multimedia/Other
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-python
BuildRequires:  fdupes
BuildRequires:  gstreamer-0_10-plugins-bad
BuildRequires:  gstreamer-0_10-plugins-good
BuildRequires:  gstreamer-0_10-utils
BuildRequires:  intltool
BuildRequires:  python-gobject2
BuildRequires:  python-gstreamer-0_10
BuildRequires:  python-gtk
BuildRequires:  python-devel
# Really just for directory ownership of the plugin
BuildRequires:  totem
BuildRequires:  update-desktop-files
BuildRequires:  vala-devel
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-rtsp-0.10)
BuildRequires:  pkgconfig(gst-rtsp-server-0.10)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(sqlite3)
Requires:       gstreamer-0_10-plugins-bad
Requires:       gstreamer-0_10-plugins-good
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
DVB Daemon is a daemon written in Vala to setup your DVB devices,
record and watch TV shows and browse EPG. It can be controlled directly
via its D-Bus interface or with UI applications that come with it.

%package -n python-gnome-dvb-daemon
License:        GPLv3+
Summary:        Daemon to use DVB devices -- Python Library
Url:            http://live.gnome.org/DVBDaemon
Requires:       %{name} = %{version}
Requires:       dbus-1-python
Requires:       python-gobject2
Requires:       python-gstreamer-0_10
Requires:       python-gtk
# Note: we put the Recommends for the lang package here and not in the main
# package because that's where the translatable strings live. We could change
# the name of the lang package, but the .mo files are named gnome-dvb-daemon,
# so it's better this way.
Recommends:     %{name}-lang
# For tuning data
Recommends:     dvb
Provides:       python-gnomedvb = %{version}
%py_requires

%description -n python-gnome-dvb-daemon
DVB Daemon is a daemon written in Vala to setup your DVB devices,
record and watch TV shows and browse EPG. It can be controlled directly
via its D-Bus interface or with UI applications that come with it.

This package contains a a Python library to use the D-Bus interfaces
of DVB Daemon.

%package -n totem-plugin-gnome-dvb-daemon
License:        GPLv3+
Summary:        Daemon to use DVB devices -- Totem Plugin
Url:            http://live.gnome.org/DVBDaemon
Requires:       python-gnome-dvb-daemon = %{version}
Requires:       totem
Supplements:    packageand(%{name}:totem)

%description -n totem-plugin-gnome-dvb-daemon
DVB Daemon is a daemon written in Vala to setup your DVB devices,
record and watch TV shows and browse EPG. It can be controlled directly
via its D-Bus interface or with UI applications that come with it.

This package contains a Totem plugin to use your DVB devices.

%lang_package
%prep
%setup -q

%build
%configure \
        --enable-totem-plugin
%__make %{?_smp_mflags} V=1

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file gnome-dvb-control
%suse_update_desktop_file gnome-dvb-setup
# Two different calls, since the files are not in the same package
%fdupes %{buildroot}%{python_sitelib}
%fdupes %{buildroot}%{_libdir}/totem/

%clean
rm -rf %{buildroot}

%post -n python-gnome-dvb-daemon
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%endif

%postun -n python-gnome-dvb-daemon
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/gnome-dvb-daemon
%{_datadir}/dbus-1/services/org.gnome.DVB.service
%{_datadir}/dbus-1/services/org.gnome.UPnP.MediaServer1.DVBDaemon.service
%{_datadir}/dbus-1/services/org.gnome.UPnP.MediaServer2.DVBDaemon.service

%files -n python-gnome-dvb-daemon
%defattr(-, root, root)
%{_bindir}/gnome-dvb-control
%{_bindir}/gnome-dvb-setup
%{_datadir}/applications/gnome-dvb-control.desktop
%{_datadir}/applications/gnome-dvb-setup.desktop
%{_datadir}/icons/hicolor/*/apps/gnome-dvb-daemon.*
%{_datadir}/icons/hicolor/*/apps/gnome-dvb-setup.*
%{python_sitelib}/gnomedvb/

%files -n totem-plugin-gnome-dvb-daemon
%defattr(-, root, root)
%{_libdir}/totem/plugins/dvb-daemon/

%files lang -f %{name}.lang

%changelog