2010-09-06 20:54:56 +00:00
#
2011-02-14 00:21:04 +00:00
# spec file for package rygel
2010-09-06 20:54:56 +00:00
#
2014-02-14 21:02:54 +00:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-09-06 20:54:56 +00:00
#
# 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/
#
2012-02-22 10:31:01 +00:00
2010-09-06 20:54:56 +00:00
Name : rygel
2013-12-26 12:43:19 +00:00
Version : 0.20.3
2011-12-21 14:57:23 +00:00
Release : 0
2011-06-01 10:20:27 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA
2011-12-21 14:57:23 +00:00
License : LGPL-2.0+
2010-09-06 20:54:56 +00:00
Group : Productivity/Multimedia/Other
2011-12-21 14:57:23 +00:00
Url : http://live.gnome.org/Rygel
2013-09-24 20:04:01 +00:00
Source0 : http://download.gnome.org/sources/rygel/0.20/%{name} -%{version} .tar.xz
2014-02-14 21:02:54 +00:00
# PATCH-FIX-UPSTREAM rygel-Make-GstLaunch-pipelines-work-with-gst-1.0.patch bgo#724215 bnc#864121 zaitor@opensuse.org -- Make the GstLaunch pipelines in rygel.conf work with gst-1.0
Patch0 : rygel-Make-GstLaunch-pipelines-work-with-gst-1.0.patch
2010-09-06 20:54:56 +00:00
BuildRequires : intltool
2013-03-13 22:44:30 +00:00
BuildRequires : libgupnp-av-devel >= 0.11.2
BuildRequires : libgupnp-devel >= 0.19.0
BuildRequires : libsoup-devel >= 2.34.0
2012-09-14 12:34:23 +00:00
BuildRequires : libunistring-devel
2013-03-13 22:44:30 +00:00
BuildRequires : libuuid-devel >= 1.41.3
2012-09-07 16:33:44 +00:00
BuildRequires : sqlite3-devel >= 3.5
2012-09-14 12:34:23 +00:00
BuildRequires : systemd
2011-02-15 14:23:24 +00:00
BuildRequires : translation-update-upstream
2010-09-06 20:54:56 +00:00
BuildRequires : update-desktop-files
2013-07-31 18:58:34 +00:00
BuildRequires : vala >= 0.20.0
2013-03-13 22:44:30 +00:00
BuildRequires : pkgconfig(gee-0.8) >= 0.8.0
2012-09-07 16:33:44 +00:00
BuildRequires : pkgconfig(glib-2.0) >= 2.31.13
2013-03-13 22:44:30 +00:00
BuildRequires : pkgconfig(gstreamer-1.0) >= 1.0
BuildRequires : pkgconfig(gstreamer-app-1.0) >= 1.0
BuildRequires : pkgconfig(gstreamer-pbutils-1.0) >= 1.0
2013-06-23 13:42:20 +00:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.0
2013-03-13 22:44:30 +00:00
BuildRequires : pkgconfig(gupnp-dlna-2.0) >= 0.9.4
BuildRequires : pkgconfig(gupnp-dlna-gst-2.0) >= 0.9.4
BuildRequires : pkgconfig(libxml-2.0) >= 2.7
BuildRequires : pkgconfig(tracker-sparql-0.16) >= 0.14.0
Requires : gstreamer-plugins-base
2012-09-07 16:33:44 +00:00
Recommends: %{name} -lang
2013-03-13 22:44:30 +00:00
Recommends: gstreamer-plugins-bad
Recommends: gstreamer-plugins-good
Recommends: gstreamer-plugins-ugly
2010-09-06 20:54:56 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2012-09-14 12:34:23 +00:00
%{?systemd_requires}
2010-09-06 20:54:56 +00:00
%description
2011-06-01 10:20:27 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network. In
technical terms it is both a UPnP AV MediaServer and MediaRenderer
implemented through a plug-in mechanism. Interoperability with other
devices in the market is achieved by conformance to very strict
requirements of DLNA and on the fly conversion of media to format that
client devices are capable of handling.
2010-09-06 20:54:56 +00:00
2013-03-13 22:44:30 +00:00
%package -n librygel-core-2_0-1
2012-09-07 16:33:44 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Core library
Group : System/Libraries
2013-03-13 22:44:30 +00:00
%description -n librygel-core-2_0-1
2012-09-07 16:33:44 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
This package provides the core library of rygel.
2013-03-13 22:44:30 +00:00
%package -n librygel-renderer-2_0-1
2012-09-07 16:33:44 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Renderer library
Group : System/Libraries
2013-03-13 22:44:30 +00:00
%description -n librygel-renderer-2_0-1
2012-09-07 16:33:44 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
This package provides the renderer library of rygel.
2013-03-13 22:44:30 +00:00
%package -n librygel-renderer-gst-2_0-1
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Renderer library
Group : System/Libraries
%description -n librygel-renderer-gst-2_0-1
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
This package provides the renderer library of rygel.
%package -n librygel-server-2_0-1
2012-09-07 16:33:44 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Server library
Group : System/Libraries
2013-03-13 22:44:30 +00:00
%description -n librygel-server-2_0-1
2012-09-07 16:33:44 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
This package provides the server library of rygel.
2010-09-06 20:54:56 +00:00
%package devel
2011-06-01 10:20:27 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Development Files
2010-09-06 20:54:56 +00:00
Group : Development/Libraries/C and C++
Requires : %{name} = %{version}
2013-03-13 22:44:30 +00:00
Requires : librygel-core-2_0-1 = %{version}
Requires : librygel-renderer-2_0-1 = %{version}
Requires : librygel-renderer-gst-2_0-1 = %{version}
Requires : librygel-server-2_0-1 = %{version}
2010-09-06 20:54:56 +00:00
%description devel
2011-06-01 10:20:27 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
2010-09-06 20:54:56 +00:00
This package provides development files for rygel.
%package plugin-gstreamer-renderer
2011-06-01 10:20:27 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- GStreamer Renderer Plugin
2010-09-06 20:54:56 +00:00
Group : Productivity/Multimedia/Other
Requires : %{name} = %{version}
%description plugin-gstreamer-renderer
2011-06-01 10:20:27 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
2010-09-06 20:54:56 +00:00
This package provides a standalone MediaRenderer plugin, based on the
GStreamer playbin2 element.
%package plugin-tracker
2011-06-01 10:20:27 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- Tracker Plugin
2010-09-06 20:54:56 +00:00
Group : Productivity/Multimedia/Other
Requires : %{name} = %{version}
2012-03-11 17:34:42 +00:00
Requires : tracker
2010-09-06 20:54:56 +00:00
Supplements: packageand(%{name} :tracker)
%description plugin-tracker
2011-06-01 10:20:27 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
2010-09-06 20:54:56 +00:00
This package provides a plugin using tracker to export media found on
the local machine.
%package plugin-zdf-mediathek
2011-06-01 10:20:27 +00:00
Summary : Home Media Solution for GNOME based on UPnP/DLNA -- ZDF Mediathek Plugin
2010-09-06 20:54:56 +00:00
Group : Productivity/Multimedia/Other
Requires : %{name} = %{version}
# Make it installable by default for german-speaking users
Provides : locale(%{name} :de)
%description plugin-zdf-mediathek
2011-06-01 10:20:27 +00:00
Rygel is a home media solution that allows you to easily share audio,
video and pictures, and control of media player on your home network.
2010-09-06 20:54:56 +00:00
This package provides a plugin to export online media from the ZDF TV
station.
%lang_package
%prep
%setup -q
2011-02-15 14:23:24 +00:00
translation-update-upstream
2014-02-14 21:02:54 +00:00
%patch0 -p1
2010-09-06 20:54:56 +00:00
%build
%configure --enable-tracker-plugin \
--enable-media-export-plugin \
--enable-external-plugin \
--enable-mediathek-plugin \
--enable-gst-launch-plugin
2012-09-07 16:33:44 +00:00
make %{?_smp_mflags} V=1
2010-09-06 20:54:56 +00:00
%install
2012-09-07 16:33:44 +00:00
%make_install
2012-09-21 19:25:33 +00:00
# test so we know if we can drop the manul installation of the .service file
2012-09-14 12:34:23 +00:00
test ! -f %{buildroot} %{_unitdir} /rygel.service
2012-09-21 19:25:33 +00:00
install -D -m0644 examples/service/systemd/rygel.service %{buildroot} %{_unitdir} /rygel.service
2010-09-06 20:54:56 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
%suse_update_desktop_file rygel
%suse_update_desktop_file rygel-preferences X-SuSE-ControlCenter-System
2011-02-13 21:19:40 +00:00
%find_lang %{name} %{?no_lang_C}
2010-09-06 20:54:56 +00:00
%clean
rm -rf %{buildroot}
2012-09-14 12:34:23 +00:00
%pre
%service_add_pre rygel.service
2010-09-06 20:54:56 +00:00
%post
2011-02-13 21:19:40 +00:00
%desktop_database_post
2010-09-06 20:54:56 +00:00
%icon_theme_cache_post
2012-09-14 12:34:23 +00:00
%service_add_post rygel.service
%preun
%service_del_preun rygel.service
2010-09-06 20:54:56 +00:00
%postun
2011-02-13 21:19:40 +00:00
%desktop_database_postun
2010-09-06 20:54:56 +00:00
%icon_theme_cache_postun
2012-09-14 12:34:23 +00:00
%service_del_postun rygel.service
2010-09-06 20:54:56 +00:00
2013-03-13 22:44:30 +00:00
%post -n librygel-core-2_0-1 -p /sbin/ldconfig
%postun -n librygel-core-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%post -n librygel-renderer-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%postun -n librygel-renderer-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%post -n librygel-renderer-gst-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%postun -n librygel-renderer-gst-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%post -n librygel-server-2_0-1 -p /sbin/ldconfig
%postun -n librygel-server-2_0-1 -p /sbin/ldconfig
2012-09-07 16:33:44 +00:00
2010-09-06 20:54:56 +00:00
%files
%defattr (-, root, root)
%doc AUTHORS COPYING README TODO NEWS
%config (noreplace) %{_sysconfdir} /rygel.conf
2012-09-14 12:34:23 +00:00
%{_unitdir} /rygel.service
2010-09-06 20:54:56 +00:00
%{_bindir} /rygel
%{_bindir} /rygel-preferences
%{_datadir} /rygel/
%{_datadir} /applications/rygel.desktop
%{_datadir} /applications/rygel-preferences.desktop
%{_datadir} /dbus-1/services/org.gnome.Rygel1.service
%{_datadir} /icons/hicolor/*/apps/*
%{_mandir} /*/*
# Plugins that we ship by default because they don't have a dependency and can
# be useful to most people
2013-03-13 22:44:30 +00:00
%dir %{_libdir} /rygel-2.0/
%dir %{_libdir} /rygel-2.0/engines/
%dir %{_libdir} /rygel-2.0/plugins/
%{_libdir} /rygel-2.0/engines/librygel-media-engine-gst.so
%{_libdir} /rygel-2.0/engines/librygel-media-engine-simple.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/engines/media-engine-gst.plugin
%{_libdir} /rygel-2.0/engines/media-engine-simple.plugin
2010-09-06 20:54:56 +00:00
# external applications implementing D-Bus MediaServer spec
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-external.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/external.plugin
2010-09-06 20:54:56 +00:00
# GStreamer pipelines in the config
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-gst-launch.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/gst-launch.plugin
2010-09-06 20:54:56 +00:00
# folders and files in the config
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-media-export.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/media-export.plugin
2010-09-06 20:54:56 +00:00
# media players implementing MPRIS2 D-Bus interface
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-mpris.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/mpris.plugin
2013-03-13 22:44:30 +00:00
%files -n librygel-core-2_0-1
%defattr (-,root,root)
%{_libdir} /librygel-core-2.0.so.*
2010-09-06 20:54:56 +00:00
2013-03-13 22:44:30 +00:00
%files -n librygel-renderer-2_0-1
2012-09-07 16:33:44 +00:00
%defattr (-,root,root)
2013-03-13 22:44:30 +00:00
%{_libdir} /librygel-renderer-2.0.so.*
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%files -n librygel-renderer-gst-2_0-1
2012-09-07 16:33:44 +00:00
%defattr (-,root,root)
2013-03-13 22:44:30 +00:00
%{_libdir} /librygel-renderer-gst-2.0.so.*
2012-09-07 16:33:44 +00:00
2013-03-13 22:44:30 +00:00
%files -n librygel-server-2_0-1
2012-09-07 16:33:44 +00:00
%defattr (-,root,root)
2013-03-13 22:44:30 +00:00
%{_libdir} /librygel-server-2.0.so.*
2012-09-07 16:33:44 +00:00
2010-09-06 20:54:56 +00:00
%files devel
%defattr (-, root, root)
2013-03-13 22:44:30 +00:00
%{_includedir} /rygel-2.0/
%{_libdir} /librygel-core-2.0.so
%{_libdir} /librygel-renderer-2.0.so
%{_libdir} /librygel-renderer-gst-2.0.so
%{_libdir} /librygel-server-2.0.so
%{_libdir} /pkgconfig/rygel-core-2.0.pc
%{_libdir} /pkgconfig/rygel-renderer-2.0.pc
%{_libdir} /pkgconfig/rygel-renderer-gst-2.0.pc
%{_libdir} /pkgconfig/rygel-server-2.0.pc
%{_datadir} /gtk-doc/html/librygel-core/
%{_datadir} /gtk-doc/html/librygel-renderer/
%{_datadir} /gtk-doc/html/librygel-renderer-gst/
%{_datadir} /gtk-doc/html/librygel-server/
%{_datadir} /vala/vapi/rygel-core-2.0.deps
%{_datadir} /vala/vapi/rygel-core-2.0.vapi
%{_datadir} /vala/vapi/rygel-renderer-2.0.deps
%{_datadir} /vala/vapi/rygel-renderer-2.0.vapi
%{_datadir} /vala/vapi/rygel-renderer-gst-2.0.deps
%{_datadir} /vala/vapi/rygel-renderer-gst-2.0.vapi
%{_datadir} /vala/vapi/rygel-server-2.0.deps
%{_datadir} /vala/vapi/rygel-server-2.0.vapi
2010-09-06 20:54:56 +00:00
%files plugin-gstreamer-renderer
%defattr (-, root, root)
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-playbin.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/playbin.plugin
2010-09-06 20:54:56 +00:00
%files plugin-tracker
%defattr (-, root, root)
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-tracker.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/tracker.plugin
2010-09-06 20:54:56 +00:00
%files plugin-zdf-mediathek
%defattr (-, root, root)
2013-03-13 22:44:30 +00:00
%{_libdir} /rygel-2.0/plugins/librygel-mediathek.so
2013-06-23 13:42:20 +00:00
%{_libdir} /rygel-2.0/plugins/mediathek.plugin
2010-09-06 20:54:56 +00:00
%files lang -f %{name}.lang
%changelog