rygel/rygel.spec

183 lines
6.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package rygel
#
# Copyright (c) 2012 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.13.1
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.13/%{name}-%{version}.tar.xz
BuildRequires: gstreamer-0_10-devel
BuildRequires: intltool
BuildRequires: libgee-devel
BuildRequires: libgupnp-av-devel
BuildRequires: libgupnp-devel
BuildRequires: libgupnp-dlna-devel
BuildRequires: libsoup-devel
BuildRequires: libuuid-devel
BuildRequires: sqlite3-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.14.1
BuildRequires: pkgconfig(gtk+-3.0)
Requires: gstreamer-0_10-plugins-base
Recommends: gstreamer-0_10-plugins-bad
Recommends: gstreamer-0_10-plugins-good
Recommends: gstreamer-0_10-plugins-ugly
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 devel
Summary: Home Media Solution for GNOME based on UPnP/DLNA -- Development Files
Group: Development/Libraries/C and C++
Requires: %{name} = %{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: tracker
Requires: %{name} = %{version}
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
%makeinstall
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}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README TODO NEWS
%config(noreplace) %{_sysconfdir}/rygel.conf
%{_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-1.0/
# external applications implementing D-Bus MediaServer spec
%{_libdir}/rygel-1.0/librygel-external.so
# GStreamer pipelines in the config
%{_libdir}/rygel-1.0/librygel-gst-launch.so
# folders and files in the config
%{_libdir}/rygel-1.0/librygel-media-export.so
# media players implementing MPRIS2 D-Bus interface
%{_libdir}/rygel-1.0/librygel-mpris.so
%files devel
%defattr(-, root, root)
%{_includedir}/rygel-1.0/
%{_libdir}/pkgconfig/rygel-1.0.pc
%{_datadir}/vala/vapi/rygel-1.0.deps
%{_datadir}/vala/vapi/rygel-1.0.vapi
%files plugin-gstreamer-renderer
%defattr(-, root, root)
%{_libdir}/rygel-1.0/librygel-playbin.so
%files plugin-tracker
%defattr(-, root, root)
%{_libdir}/rygel-1.0/librygel-tracker.so
%files plugin-zdf-mediathek
%defattr(-, root, root)
%{_libdir}/rygel-1.0/librygel-mediathek.so
%files lang -f %{name}.lang
%changelog