rygel/rygel.spec
Dominique Leuenberger faf7a13086 Accepting request 242465 from home:dimstar:branches:GNOME:Factory
- Update to version 0.22.3:
  + Remove odd build flags.
  + Work-around an issue with valadoc and code samples.
  + Server:
    - Fix UPnP error codes on object creation.
    - Set HTTP version as late as possible.
    - Prevent a critical on upload.
    - Avoid a potential crash by null dereference.
  + Renderer:
    - Set Next* values in GetMediaInfo().
    - Rely on libsoap to handle proxies properly.
    - Fix an issue about non-existing timeout ids.
    - Work-around failing HEAD requests.
    - Set proper UPnP error if instance ids are missing on
      Prev/Next.
    - Send the current byte position.
  + Basic diagnostics: Fix use of repitition parameter in NSLookup.
  + GStreamer Renderer:
    - Fix duration for and position.
    - Parse duration from meta-data.
    - Remove "TRANSITIONING" state when going to "STOPPED" or
      "PAUSED_PLAYBACK".
  + GStreamer Media Engine: Prevent a critical after streaming
    ends.
  + Media Export:
    - Prevent a warning on upload.
    - Fix album art for m4a media.

OBS-URL: https://build.opensuse.org/request/show/242465
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/rygel?expand=0&rev=109
2014-07-29 12:06:11 +00:00

311 lines
11 KiB
RPMSpec

#
# spec file for package rygel
#
# Copyright (c) 2014 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: rygel
Version: 0.22.3
Release: 0
Summary: Home Media Solution for GNOME based on UPnP/DLNA
License: LGPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://live.gnome.org/Rygel
Source0: http://download.gnome.org/sources/rygel/0.22/%{name}-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: libgupnp-av-devel >= 0.12.4
BuildRequires: libgupnp-devel >= 0.19.0
BuildRequires: libsoup-devel >= 2.44.0
BuildRequires: libunistring-devel
BuildRequires: libuuid-devel >= 1.41.3
BuildRequires: sqlite3-devel >= 3.5
BuildRequires: systemd
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.22.0
BuildRequires: pkgconfig(gee-0.8) >= 0.8.0
BuildRequires: pkgconfig(glib-2.0) >= 2.31.13
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.0
BuildRequires: pkgconfig(gstreamer-app-1.0) >= 1.0
BuildRequires: pkgconfig(gstreamer-pbutils-1.0) >= 1.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0
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-1.0) >= 0.14.0
Requires: gstreamer-plugins-base
Recommends: %{name}-lang
Recommends: gstreamer-plugins-bad
Recommends: gstreamer-plugins-good
Recommends: gstreamer-plugins-ugly
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%description
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.
%package -n librygel-core-2_2-2
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Core library
Group: System/Libraries
%description -n librygel-core-2_2-2
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.
%package -n librygel-renderer-2_2-2
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Renderer library
Group: System/Libraries
%description -n librygel-renderer-2_2-2
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-renderer-gst-2_2-2
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Renderer library
Group: System/Libraries
%description -n librygel-renderer-gst-2_2-2
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_2-2
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Server library
Group: System/Libraries
%description -n librygel-server-2_2-2
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.
%package devel
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Development Files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: librygel-core-2_2-2 = %{version}
Requires: librygel-renderer-2_2-2 = %{version}
Requires: librygel-renderer-gst-2_2-2 = %{version}
Requires: librygel-server-2_2-2 = %{version}
%description devel
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 development files for rygel.
%package plugin-gstreamer-renderer
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- GStreamer Renderer Plugin
Group: Productivity/Multimedia/Other
Requires: %{name} = %{version}
%description plugin-gstreamer-renderer
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 a standalone MediaRenderer plugin, based on the
GStreamer playbin2 element.
%package plugin-tracker
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Tracker Plugin
Group: Productivity/Multimedia/Other
Requires: %{name} = %{version}
Requires: tracker
Supplements: packageand(%{name}:tracker)
%description plugin-tracker
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 a plugin using tracker to export media found on
the local machine.
%package plugin-zdf-mediathek
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- ZDF Mediathek Plugin
Group: Productivity/Multimedia/Other
Requires: %{name} = %{version}
# Make it installable by default for german-speaking users
Provides: locale(%{name}:de)
%description plugin-zdf-mediathek
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 a plugin to export online media from the ZDF TV
station.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --enable-tracker-plugin \
--enable-media-export-plugin \
--enable-external-plugin \
--enable-mediathek-plugin \
--enable-gst-launch-plugin
make %{?_smp_mflags} V=1
%install
%make_install
# test so we know if we can drop the manul installation of the .service file
test ! -f %{buildroot}%{_unitdir}/rygel.service
install -D -m0644 examples/service/systemd/rygel.service %{buildroot}%{_unitdir}/rygel.service
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file rygel
%suse_update_desktop_file rygel-preferences X-SuSE-ControlCenter-System
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%pre
%service_add_pre rygel.service
%post
%desktop_database_post
%icon_theme_cache_post
%service_add_post rygel.service
%preun
%service_del_preun rygel.service
%postun
%desktop_database_postun
%icon_theme_cache_postun
%service_del_postun rygel.service
%post -n librygel-core-2_2-2 -p /sbin/ldconfig
%postun -n librygel-core-2_2-2 -p /sbin/ldconfig
%post -n librygel-renderer-2_2-2 -p /sbin/ldconfig
%postun -n librygel-renderer-2_2-2 -p /sbin/ldconfig
%post -n librygel-renderer-gst-2_2-2 -p /sbin/ldconfig
%postun -n librygel-renderer-gst-2_2-2 -p /sbin/ldconfig
%post -n librygel-server-2_2-2 -p /sbin/ldconfig
%postun -n librygel-server-2_2-2 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README TODO NEWS
%config(noreplace) %{_sysconfdir}/rygel.conf
%{_unitdir}/rygel.service
%{_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
%dir %{_libdir}/rygel-2.2/
%dir %{_libdir}/rygel-2.2/engines/
%dir %{_libdir}/rygel-2.2/plugins/
%{_libdir}/rygel-2.2/engines/librygel-media-engine-gst.so
%{_libdir}/rygel-2.2/engines/librygel-media-engine-simple.so
%{_libdir}/rygel-2.2/engines/media-engine-gst.plugin
%{_libdir}/rygel-2.2/engines/media-engine-simple.plugin
# external applications implementing D-Bus MediaServer spec
%{_libdir}/rygel-2.2/plugins/librygel-external.so
%{_libdir}/rygel-2.2/plugins/external.plugin
# GStreamer pipelines in the config
%{_libdir}/rygel-2.2/plugins/librygel-gst-launch.so
%{_libdir}/rygel-2.2/plugins/gst-launch.plugin
# folders and files in the config
%{_libdir}/rygel-2.2/plugins/librygel-media-export.so
%{_libdir}/rygel-2.2/plugins/media-export.plugin
# media players implementing MPRIS2 D-Bus interface
%{_libdir}/rygel-2.2/plugins/librygel-mpris.so
%{_libdir}/rygel-2.2/plugins/mpris.plugin
%files -n librygel-core-2_2-2
%defattr(-,root,root)
%{_libdir}/librygel-core-2.2.so.*
%files -n librygel-renderer-2_2-2
%defattr(-,root,root)
%{_libdir}/librygel-renderer-2.2.so.*
%files -n librygel-renderer-gst-2_2-2
%defattr(-,root,root)
%{_libdir}/librygel-renderer-gst-2.2.so.*
%files -n librygel-server-2_2-2
%defattr(-,root,root)
%{_libdir}/librygel-server-2.2.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/rygel-2.2/
%{_libdir}/librygel-core-2.2.so
%{_libdir}/librygel-renderer-2.2.so
%{_libdir}/librygel-renderer-gst-2.2.so
%{_libdir}/librygel-server-2.2.so
%{_libdir}/pkgconfig/rygel-core-2.2.pc
%{_libdir}/pkgconfig/rygel-renderer-2.2.pc
%{_libdir}/pkgconfig/rygel-renderer-gst-2.2.pc
%{_libdir}/pkgconfig/rygel-server-2.2.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.2.deps
%{_datadir}/vala/vapi/rygel-core-2.2.vapi
%{_datadir}/vala/vapi/rygel-renderer-2.2.deps
%{_datadir}/vala/vapi/rygel-renderer-2.2.vapi
%{_datadir}/vala/vapi/rygel-renderer-gst-2.2.deps
%{_datadir}/vala/vapi/rygel-renderer-gst-2.2.vapi
%{_datadir}/vala/vapi/rygel-server-2.2.deps
%{_datadir}/vala/vapi/rygel-server-2.2.vapi
%files plugin-gstreamer-renderer
%defattr(-, root, root)
%{_libdir}/rygel-2.2/plugins/librygel-playbin.so
%{_libdir}/rygel-2.2/plugins/playbin.plugin
%files plugin-tracker
%defattr(-, root, root)
%{_libdir}/rygel-2.2/plugins/librygel-tracker.so
%{_libdir}/rygel-2.2/plugins/tracker.plugin
%files plugin-zdf-mediathek
%defattr(-, root, root)
%{_libdir}/rygel-2.2/plugins/librygel-mediathek.so
%{_libdir}/rygel-2.2/plugins/mediathek.plugin
%files lang -f %{name}.lang
%changelog