Search
SailfishOS Open Build Service
>
Projects
>
home:wdehoog
>
rygel-test
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 19
[-]
[+]
Changed
rygel.spec
@@ -1,188 +1,188 @@ -Name: rygel -Version: 0.36.0 -Release: 1.3.2 -Summary: A collection of UPnP/DLNA services - -Group: Applications/Multimedia -License: LGPLv2+ -URL: http://live.gnome.org/Rygel -Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/0.32/%{name}-%{version}.tar.xz - -Patch0: rygel-playbin-player.patch -Patch1: rygel.conf.patch -Patch2: rygel.service.patch -Patch3: rygel.xpolicy.conf.patch -Patch4: load-tags-from-stream-as-metadata.patch - -BuildRequires: gnome-common -BuildRequires: gobject-introspection-devel >= 1.36 -BuildRequires: dbus-glib-devel -BuildRequires: desktop-file-utils -BuildRequires: pkgconfig(gstreamer-1.0) -BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) -BuildRequires: pkgconfig(systemd) -BuildRequires: gupnp-devel >= 0.20.14 -BuildRequires: gupnp-av-devel -BuildRequires: gupnp-dlna-devel -BuildRequires: libgee-devel -BuildRequires: libsoup-devel -#BuildRequires: libunistring-devel -BuildRequires: libuuid-devel -BuildRequires: sqlite-devel -BuildRequires: tracker-devel -BuildRequires: pkgconfig(libmediaart-2.0) -BuildRequires: gettext -BuildRequires: pkgconfig(gdk-pixbuf-2.0) -BuildRequires: pkgconfig(glib-2.0) -#Obsoletes: rygel-gst-plugins - -%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: Development package for %{name} -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig - -%description devel -Files for development with %{name}. - -%package tracker -Summary: Tracker plugin for %{name} -Group: Applications/Multimedia -Requires: %{name} = %{version}-%{release} -Requires: tracker - -%description tracker -A plugin for rygel to use tracker to locate media on the local machine. - -%prep -%setup -q -n %{name}-%{version}/%{name} -%patch0 -p0 -%patch1 -p0 -%patch2 -p0 -%patch3 -p0 -%patch4 -p0 - -%build -echo -n %{version} > .version -echo -n %{version} > .tarball-version -# --enable-media-export-plugin still fails to build. all build required libs are available -# but compiling fails: 'error: 1 missing arguments for `void GLib.VariantDict.new' -%autogen release --enable-tracker-plugin --enable-media-export-plugin=no --enable-playbin-plugin --disable-silent-rules --with-media-engine=gstreamer --disable-strict-valac - -make %{?_smp_mflags} V=1 - -%install -make install DESTDIR=%{buildroot} INSTALL='install -p' - -#Remove libtool archives. -find %{buildroot} -name '*.la' -exec rm -f {} ';' - - -mkdir -p %{buildroot}/%{_sysconfdir}/systemd/user/ -cp ./examples/service/systemd/rygel.service %{buildroot}/%{_sysconfdir}/systemd/user/ - -# seems needed otherwise rygel playbin will be muted by default -mkdir -p %{buildroot}/%{_sysconfdir}/pulse/xpolicy.conf.d/ -cp ./examples/rygel.xpolicy.conf %{buildroot}/%{_sysconfdir}/pulse/xpolicy.conf.d/rygel.conf - -%find_lang %{name} - -rm %{buildroot}/%{_datadir}/applications/rygel.desktop -rm %{buildroot}/%{_datadir}/applications/rygel-preferences.desktop -rm -rf %{buildroot}/%{_datadir}/icons/hicolor/*/apps/rygel* - -rm -rf %{buildroot}/usr/lib/debug/.build-id/ - -# do not know what to do with these -rm %{buildroot}/usr/lib/systemd/user/rygel.service -rm %{buildroot}/usr/share/gir-1.0/RygelRendererGst-2.6.gir -#rm %{buildroot}/usr/lib/debug/usr/lib/rygel-2.6/plugins/librygel-lms.so.debug - -%pre -if [ "$1" = "2" ]; then - systemctl-user stop rygel.service - systemctl-user disable rygel.service -fi - -%preun -if [ "$1" = "0" ]; then - systemctl-user stop rygel.service - systemctl-user disable rygel.service -fi - -%post -/sbin/ldconfig -systemctl-user enable rygel.service -systemctl-user start rygel.service - -%postun -/sbin/ldconfig - -%files -f %{name}.lang -%defattr(-,root,root) -%config %{_sysconfdir}/rygel.conf -%config %{_sysconfdir}/systemd/user/rygel.service -%config %{_sysconfdir}/pulse/xpolicy.conf.d/rygel.conf -%{_bindir}/rygel -%{_libdir}/librygel*.so.* -%{_libdir}/rygel-2.6/engines/* -%{_libdir}/rygel-2.6/plugins/librygel-external.so -%{_libdir}/rygel-2.6/plugins/external.plugin -%{_libdir}/rygel-2.6/plugins/librygel-mpris.so -%{_libdir}/rygel-2.6/plugins/mpris.plugin -%{_libdir}/rygel-2.6/plugins/librygel-ruih.so -%{_libdir}/rygel-2.6/plugins/ruih.plugin -#%{_libdir}/rygel-2.6/plugins/librygel-media-export.so -#%{_libdir}/rygel-2.6/plugins/media-export.plugin -%{_libdir}/rygel-2.6/plugins/librygel-playbin.so -%{_libdir}/rygel-2.6/plugins/playbin.plugin -%{_libdir}/rygel-2.6/plugins/librygel-lms.so -%{_libdir}/rygel-2.6/plugins/lms.plugin -%{_libdir}/girepository-1.0/RygelCore-2.6.typelib -%{_libdir}/girepository-1.0/RygelRenderer-2.6.typelib -%{_libdir}/girepository-1.0/RygelRendererGst-2.6.typelib -%{_libdir}/girepository-1.0/RygelServer-2.6.typelib -%{_datadir}/rygel/ -%{_datadir}/dbus-1/services/org.gnome.Rygel1.service -#%{_libdir}/systemd/user/rygel.service - -%files tracker -%{_libdir}/rygel-2.6/plugins/librygel-tracker.so -%{_libdir}/rygel-2.6/plugins/tracker.plugin - -%files devel -%{_libdir}/librygel-*.so -%{_includedir}/rygel-2.6 -%{_libdir}/pkgconfig/rygel*.pc -%{_datadir}/vala/vapi/rygel-* -# gtk-doc dir keeps giving build problems -#%attr(644,root,root) %{_datadir}/gtk-doc/html/librygel-* -#%{_datadir}/gtk-doc/html/librygel-* -%exclude %{_datadir}/gtk-doc/html/librygel-* -%{_datadir}/gir-1.0/RygelCore-2.6.gir -%{_datadir}/gir-1.0/RygelRenderer-2.6.gir -%{_datadir}/gir-1.0/RygelServer-2.6.gir -%changelog -* Thu Nov 10 2016 pvuorela <pekka.vuorela@jolla.com> - 0.32.1-1 -- [rygel] Update to 0.32.1. Contributes to JB#36902 -* Mon Jul 11 2016 pvuorela <pekka.vuorela@jolla.com> - 0.25.3-1 -- [rygel] Update packaging to 0.25.3. Contributes to JB#35229 -* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git4 -- [packaging] fix release version setting -* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git3 -- [packaging] plugins that require Gstreamer 1.0 are also not built for now -* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git2 -- [packaging] disable strict valac to ignore warnings -- [packaging] update packaging for new version -* Tue Oct 21 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git1 -- [packaging] add new libmediaart build require -- [packaging] disable gstreamer 1.x for now as only 0.10 is available in nemo -- [packaging] enable gobject-introspection +Name: rygel +Version: 0.36.0 +Release: 1.3.2 +Summary: A collection of UPnP/DLNA services + +Group: Applications/Multimedia +License: LGPLv2+ +URL: http://live.gnome.org/Rygel +Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/0.32/%{name}-%{version}.tar.xz + +Patch0: rygel-playbin-player.patch +Patch1: rygel.conf.patch +Patch2: rygel.service.patch +Patch3: rygel.xpolicy.conf.patch +Patch4: load-tags-from-stream-as-metadata.patch + +BuildRequires: gnome-common +BuildRequires: gobject-introspection-devel >= 1.36 +BuildRequires: dbus-glib-devel +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(gstreamer-1.0) +BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) +BuildRequires: pkgconfig(systemd) +BuildRequires: gupnp-devel >= 0.20.14 +BuildRequires: gupnp-av-devel +BuildRequires: gupnp-dlna-devel +BuildRequires: libgee-devel +BuildRequires: libsoup-devel +#BuildRequires: libunistring-devel +BuildRequires: libuuid-devel +BuildRequires: sqlite-devel +BuildRequires: tracker-devel +BuildRequires: pkgconfig(libmediaart-2.0) +BuildRequires: gettext +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(glib-2.0) +#Obsoletes: rygel-gst-plugins + +%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: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files for development with %{name}. + +%package tracker +Summary: Tracker plugin for %{name} +Group: Applications/Multimedia +Requires: %{name} = %{version}-%{release} +Requires: tracker + +%description tracker +A plugin for rygel to use tracker to locate media on the local machine. + +%prep +%setup -q -n %{name}-%{version}/%{name} +%patch0 -p0 +%patch1 -p0 +%patch2 -p0 +%patch3 -p0 +#%patch4 -p0 + +%build +echo -n %{version} > .version +echo -n %{version} > .tarball-version +# --enable-media-export-plugin still fails to build. all build required libs are available +# but compiling fails: 'error: 1 missing arguments for `void GLib.VariantDict.new' +%autogen release --enable-tracker-plugin --enable-media-export-plugin=no --enable-playbin-plugin --disable-silent-rules --with-media-engine=gstreamer --disable-strict-valac + +make %{?_smp_mflags} V=1 + +%install +make install DESTDIR=%{buildroot} INSTALL='install -p' + +#Remove libtool archives. +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +mkdir -p %{buildroot}/%{_sysconfdir}/systemd/user/ +cp ./examples/service/systemd/rygel.service %{buildroot}/%{_sysconfdir}/systemd/user/ + +# seems needed otherwise rygel playbin will be muted by default +mkdir -p %{buildroot}/%{_sysconfdir}/pulse/xpolicy.conf.d/ +cp ./examples/rygel.xpolicy.conf %{buildroot}/%{_sysconfdir}/pulse/xpolicy.conf.d/rygel.conf + +%find_lang %{name} + +rm %{buildroot}/%{_datadir}/applications/rygel.desktop +rm %{buildroot}/%{_datadir}/applications/rygel-preferences.desktop +rm -rf %{buildroot}/%{_datadir}/icons/hicolor/*/apps/rygel* + +rm -rf %{buildroot}/usr/lib/debug/.build-id/ + +# do not know what to do with these +rm %{buildroot}/usr/lib/systemd/user/rygel.service +rm %{buildroot}/usr/share/gir-1.0/RygelRendererGst-2.6.gir +#rm %{buildroot}/usr/lib/debug/usr/lib/rygel-2.6/plugins/librygel-lms.so.debug + +%pre +if [ "$1" = "2" ]; then + systemctl-user stop rygel.service + systemctl-user disable rygel.service +fi + +%preun +if [ "$1" = "0" ]; then + systemctl-user stop rygel.service + systemctl-user disable rygel.service +fi + +%post +/sbin/ldconfig +systemctl-user enable rygel.service +systemctl-user start rygel.service + +%postun +/sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%config %{_sysconfdir}/rygel.conf +%config %{_sysconfdir}/systemd/user/rygel.service +%config %{_sysconfdir}/pulse/xpolicy.conf.d/rygel.conf +%{_bindir}/rygel +%{_libdir}/librygel*.so.* +%{_libdir}/rygel-2.6/engines/* +%{_libdir}/rygel-2.6/plugins/librygel-external.so +%{_libdir}/rygel-2.6/plugins/external.plugin +%{_libdir}/rygel-2.6/plugins/librygel-mpris.so +%{_libdir}/rygel-2.6/plugins/mpris.plugin +%{_libdir}/rygel-2.6/plugins/librygel-ruih.so +%{_libdir}/rygel-2.6/plugins/ruih.plugin +#%{_libdir}/rygel-2.6/plugins/librygel-media-export.so +#%{_libdir}/rygel-2.6/plugins/media-export.plugin +%{_libdir}/rygel-2.6/plugins/librygel-playbin.so +%{_libdir}/rygel-2.6/plugins/playbin.plugin +%{_libdir}/rygel-2.6/plugins/librygel-lms.so +%{_libdir}/rygel-2.6/plugins/lms.plugin +%{_libdir}/girepository-1.0/RygelCore-2.6.typelib +%{_libdir}/girepository-1.0/RygelRenderer-2.6.typelib +%{_libdir}/girepository-1.0/RygelRendererGst-2.6.typelib +%{_libdir}/girepository-1.0/RygelServer-2.6.typelib +%{_datadir}/rygel/ +%{_datadir}/dbus-1/services/org.gnome.Rygel1.service +#%{_libdir}/systemd/user/rygel.service + +%files tracker +%{_libdir}/rygel-2.6/plugins/librygel-tracker.so +%{_libdir}/rygel-2.6/plugins/tracker.plugin + +%files devel +%{_libdir}/librygel-*.so +%{_includedir}/rygel-2.6 +%{_libdir}/pkgconfig/rygel*.pc +%{_datadir}/vala/vapi/rygel-* +# gtk-doc dir keeps giving build problems +#%attr(644,root,root) %{_datadir}/gtk-doc/html/librygel-* +#%{_datadir}/gtk-doc/html/librygel-* +%exclude %{_datadir}/gtk-doc/html/librygel-* +%{_datadir}/gir-1.0/RygelCore-2.6.gir +%{_datadir}/gir-1.0/RygelRenderer-2.6.gir +%{_datadir}/gir-1.0/RygelServer-2.6.gir +%changelog +* Thu Nov 10 2016 pvuorela <pekka.vuorela@jolla.com> - 0.32.1-1 +- [rygel] Update to 0.32.1. Contributes to JB#36902 +* Mon Jul 11 2016 pvuorela <pekka.vuorela@jolla.com> - 0.25.3-1 +- [rygel] Update packaging to 0.25.3. Contributes to JB#35229 +* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git4 +- [packaging] fix release version setting +* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git3 +- [packaging] plugins that require Gstreamer 1.0 are also not built for now +* Wed Oct 22 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git2 +- [packaging] disable strict valac to ignore warnings +- [packaging] update packaging for new version +* Tue Oct 21 2014 Islam Amer <islam.amer@jollamobile.com> - 0.24.0+git1 +- [packaging] add new libmediaart build require +- [packaging] disable gstreamer 1.x for now as only 0.10 is available in nemo +- [packaging] enable gobject-introspection