Commit 2c8ba1bb authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add gvfs

parent 0c4048ff
......@@ -40,7 +40,7 @@ PACKAGES = \
hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf \
dconf gvfs \
$(NULL)
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
......
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index 7f05b39..c520cf9 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -1164,8 +1164,6 @@ is_remote_monitor_supported (const char *dbus_name)
NULL,
&error))
{
- g_printerr ("invoking IsSupported() failed for remote volume monitor with dbus name %s:: %s (%s, %d)\n",
- dbus_name, error->message, g_quark_to_string (error->domain), error->code);
g_error_free (error);
goto out;
}
......@@ -7,6 +7,8 @@ License: Various
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: gnome-sdk
Requires: gnome-platform-base
Requires: gtk2 gtk2-immodules
Requires: gtk3 gtk3-immodules
......@@ -22,6 +24,7 @@ Requires: gobject-introspection
Requires: gtk2 gnome-themes-standard
Requires: dconf libsoup
Requires: gsettings-desktop-schemas
Requires: gvfs
%description
......
......@@ -20,9 +20,11 @@ BuildRequires: librsvg2
BuildRequires: dbus-glib
BuildRequires: gobject-introspection
BuildRequires: libsoup
BuildRequires: gvfs
Requires: gtk2-devel gtk2-immodules
Requires: gtk3-devel gtk3-immodules
Requires: gvfs-devel
Requires: librsvg2-devel
Requires: hicolor-icon-theme
Requires: adwaita-icon-theme-devel
......
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 1.22.2
Release: 1%{?dist}
License: GPLv3 and LGPLv2+ and BSD and MPLv1.1
Group: System Environment/Libraries
URL: http://www.gtk.org
Source: http://download.gnome.org/sources/gvfs/1.22/gvfs-%{version}.tar.xz
BuildRequires: gnome-sdk-base
BuildRequires: glib2-devel
BuildRequires: dbus-glib-devel
# Remove warnings from failed remote monitors that don't
# actually exist on the host
Patch0: %{name}-remote-monitor-remove-warning.patch
# for post-install update-gio-modules and overall functionality
Requires: glib2%{?_isa}
%description
The gvfs package provides backend implementations for the gio
framework in GLib. It includes ftp, sftp, cifs.
%package devel
Summary: Development files for gvfs
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The gvfs-devel package contains headers and other files that are
required to develop applications using gvfs.
%prep
%setup -q
%patch0 -p1 -b .remote-monitor-remove-warning
%build
%configure \
--disable-hal \
--disable-gdu \
--disable-obexftp \
--disable-avahi \
--disable-documentation
make %{?_smp_mflags} V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Copy *all* the monitors in case they are supported on the host
# This is a bit iffy, this info should come from the daemon
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gvfs/remote-volume-monitors
cp -p monitor/*/*.monitor $RPM_BUILD_ROOT%{_datadir}/gvfs/remote-volume-monitors/
rm $RPM_BUILD_ROOT%{_libdir}/gvfs/*.la
rm $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
# Remove daemon side stuff
rm $RPM_BUILD_ROOT%{_libdir}/gvfs/libgvfsdaemon.*
rm $RPM_BUILD_ROOT%{_libexecdir}/gvfsd*
rm $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/*
rm -rf $RPM_BUILD_ROOT%{_datadir}/gvfs/mounts
rm -rf $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas
# trashlib is GPLv3, include the license
cp -p daemon/trashlib/COPYING COPYING.GPL3
%find_lang gvfs
%post
/sbin/ldconfig
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
%postun
/sbin/ldconfig
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
%files -f gvfs.lang
%doc AUTHORS COPYING COPYING.GPL3 NEWS README
%dir %{_datadir}/gvfs
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/gvfs
%{_libdir}/gvfs/libgvfscommon.so
%{_libdir}/gio/modules/libgioremote-volume-monitor.so
%{_libdir}/gio/modules/libgvfsdbus.so
%{_datadir}/gvfs/remote-volume-monitors/
%{_bindir}/gvfs-cat
%{_bindir}/gvfs-copy
%{_bindir}/gvfs-info
%{_bindir}/gvfs-less
%{_bindir}/gvfs-ls
%{_bindir}/gvfs-mime
%{_bindir}/gvfs-mkdir
%{_bindir}/gvfs-monitor-dir
%{_bindir}/gvfs-monitor-file
%{_bindir}/gvfs-mount
%{_bindir}/gvfs-move
%{_bindir}/gvfs-open
%{_bindir}/gvfs-rename
%{_bindir}/gvfs-rm
%{_bindir}/gvfs-save
%{_bindir}/gvfs-trash
%{_bindir}/gvfs-tree
%{_bindir}/gvfs-set-attribute
%files devel
%dir %{_includedir}/gvfs-client
%dir %{_includedir}/gvfs-client/gvfs
%{_includedir}/gvfs-client/gvfs/gvfsurimapper.h
%{_includedir}/gvfs-client/gvfs/gvfsuriutils.h
%changelog
* Tue Nov 25 2014 Alexander Larsson <alexl@redhat.com> - 1.22.2-1
- Initial version
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment