[packages/mate-vfs] - for old MATE compatibility
qboosh
qboosh at pld-linux.org
Sat Jan 11 13:34:48 CET 2014
commit 8e2ea559eb40418811cc3f12125e17099b887be1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 11 13:35:30 2014 +0100
- for old MATE compatibility
mate-vfs-ac-libs.patch | 47 ++++++++
mate-vfs-am.patch | 18 +++
mate-vfs-fstab_edit_crash.patch | 13 +++
mate-vfs-glib.patch | 52 +++++++++
mate-vfs-headers-define.patch | 19 ++++
mate-vfs-no_mate_mime.patch | 11 ++
mate-vfs.spec | 245 ++++++++++++++++++++++++++++++++++++++++
7 files changed, 405 insertions(+)
---
diff --git a/mate-vfs.spec b/mate-vfs.spec
new file mode 100644
index 0000000..755b78b
--- /dev/null
+++ b/mate-vfs.spec
@@ -0,0 +1,245 @@
+# NOTE: this package is deprecated, meant for MATE <= 1.4 compatibility only
+#
+# Conditional build:
+%bcond_with hal # build with HAL support (HAL is deprecated)
+#
+Summary: MATE - virtual file system
+Summary(pl.UTF-8): MATE - wirtualny system plików
+Name: mate-vfs
+Version: 1.4.0
+Release: 1
+License: LGPL v2+
+Group: Applications
+Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz
+# Source0-md5: 1e9d9384b739741c979fd834170f9214
+Patch0: %{name}-no_mate_mime.patch
+Patch1: %{name}-fstab_edit_crash.patch
+Patch3: %{name}-headers-define.patch
+Patch4: %{name}-ac-libs.patch
+Patch5: %{name}-glib.patch
+Patch6: %{name}-am.patch
+URL: http://mate-desktop.org
+BuildRequires: acl-devel >= 2.2.34
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: attr-devel
+BuildRequires: avahi-glib-devel >= 0.6.17
+BuildRequires: bzip2-devel
+%{?with_hal:BuildRequires: dbus-devel >= 0.32}
+BuildRequires: dbus-glib-devel >= 0.60
+BuildRequires: docbook-dtd412-xml >= 1.0-10
+BuildRequires: fam-devel
+BuildRequires: flex
+BuildRequires: gettext-devel >= 0.10.40
+BuildRequires: glib2-devel >= 1:2.10.0
+BuildRequires: gtk-doc >= 1.0
+%{?with_hal:BuildRequires: hal-devel >= 0.5.7}
+BuildRequires: heimdal-devel
+BuildRequires: intltool >= 0.36.2
+BuildRequires: libselinux-devel
+BuildRequires: libsmbclient-devel >= 3.0
+BuildRequires: libtool >= 2:1.5.14
+BuildRequires: libxml2-devel >= 1:2.6.0
+BuildRequires: mate-common
+BuildRequires: mate-conf-devel >= 1.1.0
+BuildRequires: openssl-devel >= 0.9.8b
+BuildRequires: perl-base >= 5.002
+BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.1-10
+BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRequires: zlib-devel
+Requires(post,preun): mate-conf >= 1.1.0
+Requires: %{name}-libs = %{version}-%{release}
+Requires: mate-conf >= 1.1.0
+Requires: shared-mime-info >= 0.18
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define mateconf_schema_install() \
+ umask 022; \
+ MATECONF_CONFIG_SOURCE="xml:readwrite:/etc/mateconf/mateconf.xml.defaults" /usr/bin/mateconftool-2 --makefile-install-rule /etc/mateconf/schemas/%{?1}%{!?1:*.schemas} > /dev/null ; \
+ %{nil}
+
+%define mateconf_schema_uninstall() \
+ if [ $1 = 0 -a -x /usr/bin/mateconftool-2 ]; then \
+ umask 022; \
+ MATECONF_CONFIG_SOURCE="xml:readwrite:/etc/mateconf/mateconf.xml.defaults" /usr/bin/mateconftool-2 --makefile-uninstall-rule /etc/mateconf/schemas/%{?1} > /dev/null \
+ fi ; \
+ %{nil}
+
+%description
+MATE Virtual File System.
+
+%description -l pl.UTF-8
+Wirtualny Systemu Plików MATE.
+
+%package libs
+Summary: mate-vfs library
+Summary(pl.UTF-8): Biblioteka mate-vfs
+Group: Libraries
+%{?with_hal:Requires: hal-libs >= 0.5.7}
+Requires: avahi-glib >= 0.6.17
+Requires: dbus-glib >= 0.60
+Requires: glib2 >= 1:2.10.0
+Requires: mate-conf-libs >= 1.1.0
+Requires: openssl >= 0.9.8b
+
+%description libs
+This package contains mate-vfs libraries.
+
+%description libs -l pl.UTF-8
+Pakiet zawiera biblioteki mate-vfs.
+
+%package devel
+Summary: mate-vfs - header files
+Summary(pl.UTF-8): mate-vfs - pliki nagłówkowe
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Requires: avahi-glib-devel >= 0.6.17
+Requires: dbus-glib-devel >= 0.60
+Requires: glib2-devel >= 1:2.10.0
+Requires: libselinux-devel
+Requires: mate-conf-devel >= 1.1.0
+Requires: openssl-devel >= 0.9.8b
+
+%description devel
+This package contains header files for mate-vfs library.
+
+%description devel -l pl.UTF-8
+Pakiet ten zawiera pliki nagłówkowe biblioteki mate-vfs.
+
+%package apidocs
+Summary: mate-vfs API documentation
+Summary(pl.UTF-8): Dokumentacja API mate-vfs
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+mate-vfs API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API mate-vfs.
+
+%prep
+%setup -q -n mate-vfs-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch3 -p0
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+
+%build
+%{__gtkdocize}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ MATECONFTOOL=/usr/bin/mateconftool-2 \
+ %{!?with_hal:--disable-hal} \
+ --disable-howl \
+ --disable-schemas-install \
+ %{!?with_static_libs:--disable-static} \
+ --enable-gtk-doc \
+ --enable-ipv6 \
+ --with-html-dir=%{_gtkdocdir}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \
+ $RPM_BUILD_ROOT%{_libdir}/mate-vfs-2.0/modules/*.la
+
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr at ije,sr at ijekavian}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%mateconf_schema_install desktop_default_applications.schemas
+%mateconf_schema_install desktop_mate_url_handlers.schemas
+%mateconf_schema_install system_dns_sd.schemas
+%mateconf_schema_install system_http_proxy.schemas
+%mateconf_schema_install system_smb.schemas
+
+%preun
+%mateconf_schema_uninstall desktop_default_applications.schemas
+%mateconf_schema_uninstall desktop_mate_url_handlers.schemas
+%mateconf_schema_uninstall system_dns_sd.schemas
+%mateconf_schema_uninstall system_http_proxy.schemas
+%mateconf_schema_uninstall system_smb.schemas
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%dir %{_sysconfdir}/mate-vfs-2.0
+%dir %{_sysconfdir}/mate-vfs-2.0/modules
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mate-vfs-2.0/modules/default-modules.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mate-vfs-2.0/modules/smb-module.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mate-vfs-2.0/modules/ssl-modules.conf
+%{_sysconfdir}/mateconf/schemas/desktop_default_applications.schemas
+%{_sysconfdir}/mateconf/schemas/desktop_mate_url_handlers.schemas
+%{_sysconfdir}/mateconf/schemas/system_dns_sd.schemas
+%{_sysconfdir}/mateconf/schemas/system_http_proxy.schemas
+%{_sysconfdir}/mateconf/schemas/system_smb.schemas
+%attr(755,root,root) %{_bindir}/matevfs-cat
+%attr(755,root,root) %{_bindir}/matevfs-copy
+%attr(755,root,root) %{_bindir}/matevfs-df
+%attr(755,root,root) %{_bindir}/matevfs-info
+%attr(755,root,root) %{_bindir}/matevfs-ls
+%attr(755,root,root) %{_bindir}/matevfs-mkdir
+%attr(755,root,root) %{_bindir}/matevfs-monitor
+%attr(755,root,root) %{_bindir}/matevfs-mv
+%attr(755,root,root) %{_bindir}/matevfs-rm
+%attr(755,root,root) %{_libexecdir}/mate-vfs-daemon
+%dir %{_libdir}/mate-vfs-2.0/modules
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libbzip2.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libcomputer.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libdns-sd.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libfile.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libftp.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libgzip.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libhttp.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libnetwork.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libnntp.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libsftp.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libsmb.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libtar.so
+%attr(755,root,root) %{_libdir}/mate-vfs-2.0/modules/libvfs-test.so
+%{_datadir}/dbus-1/services/mate-vfs-daemon.service
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmatevfs-2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmatevfs-2.so.0
+%dir %{_libdir}/mate-vfs-2.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmatevfs-2.so
+%{_includedir}/mate-vfs-2.0
+%{_includedir}/mate-vfs-module-2.0
+%{_libdir}/mate-vfs-2.0/include
+%{_pkgconfigdir}/mate-vfs-2.0.pc
+%{_pkgconfigdir}/mate-vfs-module-2.0.pc
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/mate-vfs-2.0
diff --git a/mate-vfs-ac-libs.patch b/mate-vfs-ac-libs.patch
new file mode 100644
index 0000000..d0de59b
--- /dev/null
+++ b/mate-vfs-ac-libs.patch
@@ -0,0 +1,47 @@
+--- mate-vfs-1.4.0/configure.in.orig 2014-01-11 10:12:06.403815442 +0100
++++ mate-vfs-1.4.0/configure.in 2014-01-11 10:31:10.477100763 +0100
+@@ -565,17 +565,12 @@
+ if test "x${with_samba_libs}" != "xno" -a "x${have_samba_includes}" != "xno"; then
+ LDFLAGS_save="$LDFLAGS"
+
+- LDFLAGS="$LDFLAGS -L$with_samba_libs"
+ AC_CHECK_LIB(smbclient, smbc_new_context,samba_libs="yes", samba_libs="no")
+ LDFLAGS="$LDFLAGS_save"
+ if test "x${samba_libs}" != "xno"; then
+ AC_DEFINE(HAVE_SAMBA,, [Define to 1 if you have the samba 3.0 libraries])
+ msg_samba="yes"
+- if test x$with_samba_libs != x/usr/lib; then
+- SAMBA_LIBS="-L$with_samba_libs -lsmbclient"
+- else
+ SAMBA_LIBS="-lsmbclient"
+- fi
+ else
+ SAMBA_CFLAGS=""
+ SAMBA_LIBS=""
+@@ -641,7 +636,7 @@
+ [
+ dnl How can we test to see if we need to link to libld for sure??
+ dnl RedHat 6.2 seems to need to but Debian Woody doesn't
+- LDFLAGS="$LDFLAGS -L$with_openssl_libs -lssl -lcrypto -ldl"
++ LDFLAGS="$LDFLAGS -lssl -lcrypto -ldl"
+ AC_TRY_LINK_FUNC(SSL_read, openssl_libs="yes", openssl_libs="no")
+ LDFLAGS="$LDFLAGS_save"
+ ])
+@@ -649,7 +644,7 @@
+ AC_DEFINE(HAVE_OPENSSL, 1, [Define to 1 if OpenSSL is available])
+ msg_openssl="yes"
+ if test x$with_openssl_libs != x/usr/lib; then
+- OPENSSL_LIBS="-L$with_openssl_libs -lssl -lcrypto"
++ OPENSSL_LIBS="-lssl -lcrypto"
+ else
+ OPENSSL_LIBS="-lssl -lcrypto"
+ fi
+@@ -1265,7 +1260,7 @@
+ [ --with-afs support -fstype afs],
+ [ AC_DEFINE(AFS, [], [Define if you have the Andrew File System])
+ CPPFLAGS="$CPPFLAGS -I/usr/afsws/include"
+- LIBS="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"])
++ LIBS="$LIBS -lsys -lrx -llwp"])
+
+ AC_MSG_CHECKING(how to get filesystem type)
+ fstype=no
diff --git a/mate-vfs-am.patch b/mate-vfs-am.patch
new file mode 100644
index 0000000..6247a2c
--- /dev/null
+++ b/mate-vfs-am.patch
@@ -0,0 +1,18 @@
+--- mate-vfs-1.4.0/test/Makefile.am.orig 2014-01-11 10:36:15.573754627 +0100
++++ mate-vfs-1.4.0/test/Makefile.am 2014-01-11 10:39:47.053745750 +0100
+@@ -58,13 +58,13 @@
+ TESTS_ENVIRONMENT = MATE_VFS_MODULE_PATH=$(top_builddir)/modules/.libs \
+ MATE_VFS_MODULE_CONFIG_PATH=$(top_srcdir)/modules \
+ MATE_VFS_TEST_CONFIG_FILE=$(top_srcdir)/test/queue-test-config.xml \
+- SRCDIR=$(srcdir)
++ SRCDIR=$(top_srcdir)/test
+ TESTS = test-acl \
+ test-address \
+ test-async-cancel \
+ test-escape \
+ test-uri \
+- $(srcdir)/auto-test
++ auto-test
+
+ libraries = \
+ $(top_builddir)/libmatevfs/libmatevfs-2.la \
diff --git a/mate-vfs-fstab_edit_crash.patch b/mate-vfs-fstab_edit_crash.patch
new file mode 100644
index 0000000..a5767cf
--- /dev/null
+++ b/mate-vfs-fstab_edit_crash.patch
@@ -0,0 +1,13 @@
+# GNOME upstream http://bugzilla.gnome.org/show_bug.cgi?id=300547
+
+--- mate-vfs-1.4.0/libmatevfs/mate-vfs-volume-monitor-daemon.c.orig 2012-07-05 19:22:56.000000000 +0200
++++ mate-vfs-1.4.0/libmatevfs/mate-vfs-volume-monitor-daemon.c 2014-01-11 10:09:04.173823090 +0100
+@@ -742,6 +742,8 @@
+ for (l = removed; l != NULL; l = l->next) {
+ mount = l->data;
+ uri = mate_vfs_get_uri_from_local_path (mount->mount_path);
++ if (uri == NULL)
++ continue;
+
+ drive = _mate_vfs_volume_monitor_find_fstab_drive_by_activation_uri (volume_monitor, uri);
+
diff --git a/mate-vfs-glib.patch b/mate-vfs-glib.patch
new file mode 100644
index 0000000..37d914b
--- /dev/null
+++ b/mate-vfs-glib.patch
@@ -0,0 +1,52 @@
+--- mate-vfs-1.4.0.orig/daemon/Makefile.am 2010-02-09 12:16:14.000000000 +0000
++++ mate-vfs-1.4.0/daemon/Makefile.am 2013-04-01 21:44:19.908635060 +0000
+@@ -8,7 +8,6 @@
+ -D_LARGEFILE64_SOURCE \
+ -D_POSIX_PTHREAD_SEMANTICS \
+ -D_REENTRANT \
+- -DG_DISABLE_DEPRECATED \
+ -DMATE_VFS_PREFIX=\"$(prefix)\" \
+ -DMATE_VFS_DATADIR=\"$(datadir)\" \
+ -DMATE_VFS_LIBDIR=\"$(libdir)\" \
+--- mate-vfs-1.4.0.orig/libmatevfs/Makefile.am 2010-02-09 12:16:14.000000000 +0000
++++ mate-vfs-1.4.0/libmatevfs/Makefile.am 2013-04-01 21:44:11.708635665 +0000
+@@ -19,7 +19,6 @@
+ -D_LARGEFILE64_SOURCE \
+ -D_POSIX_PTHREAD_SEMANTICS \
+ -D_REENTRANT \
+- -DG_DISABLE_DEPRECATED \
+ -DMATE_VFS_PREFIX=\"$(prefix)\" \
+ -DMATE_VFS_BINDIR=\"$(bindir)\" \
+ -DMATE_VFS_DATADIR=\"$(datadir)\" \
+--- mate-vfs-1.4.0.orig/modules/Makefile.am 2010-02-09 12:16:14.000000000 +0000
++++ mate-vfs-1.4.0/modules/Makefile.am 2013-04-01 21:44:04.397572624 +0000
+@@ -18,7 +18,6 @@
+ -D_POSIX_PTHREAD_SEMANTICS \
+ -D_REENTRANT \
+ -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" \
+- -DG_DISABLE_DEPRECATED \
+ -DMATE_VFS_PREFIX=\"$(prefix)\" \
+ -DMATE_VFS_DATADIR=\"$(datadir)\" \
+ -DMATE_VFS_LIBDIR=\"$(libdir)\" \
+--- mate-vfs-1.4.0.orig/programs/Makefile.am 2010-02-09 12:16:14.000000000 +0000
++++ mate-vfs-1.4.0/programs/Makefile.am 2013-04-01 21:44:29.118635602 +0000
+@@ -4,8 +4,7 @@
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ $(TEST_CFLAGS) \
+- $(VFS_CFLAGS) \
+- -DG_DISABLE_DEPRECATED
++ $(VFS_CFLAGS)
+
+ libraries = \
+ $(top_builddir)/libmatevfs/libmatevfs-2.la \
+--- mate-vfs-1.4.0.orig/test/Makefile.am 2010-02-09 12:16:14.000000000 +0000
++++ mate-vfs-1.4.0/test/Makefile.am 2013-04-01 21:43:52.417571921 +0000
+@@ -6,7 +6,6 @@
+ -I$(top_builddir)/libmatevfs \
+ $(TEST_CFLAGS) \
+ $(VFS_CFLAGS) \
+- -DG_DISABLE_DEPRECATED \
+ -DMODULES_PATH=\"$(libdir)/vfs/modules\"
+
+ if OS_WIN32
diff --git a/mate-vfs-headers-define.patch b/mate-vfs-headers-define.patch
new file mode 100644
index 0000000..f74db8e
--- /dev/null
+++ b/mate-vfs-headers-define.patch
@@ -0,0 +1,19 @@
+--- configure.in 2006-06-13 00:36:14.000000000 -0500
++++ configure.in 2006-06-13 00:54:15.000000000 -0500
+@@ -191,6 +191,16 @@
+
+ AC_CHECK_HEADERS(sys/param.h sys/resource.h sys/vfs.h sys/mount.h sys/statfs.h sys/statvfs.h sys/param.h wctype.h sys/poll.h poll.h)
+
++AC_CHECK_HEADERS([pwd.h])
++if test "$ac_cv_header_pwd_h" = "yes"; then
++ AC_DEFINE(HAVE_PWD_H, [1], [pwd.h present])
++fi
++
++AC_CHECK_HEADERS([grp.h])
++if test "$ac_cv_header_grp_h" = "yes"; then
++ AC_DEFINE(HAVE_GRP_H, [1], [grp.h present])
++fi
++
+ dnl
+ dnl file system type member in statfs struct
+ dnl
diff --git a/mate-vfs-no_mate_mime.patch b/mate-vfs-no_mate_mime.patch
new file mode 100644
index 0000000..8e1c1ec
--- /dev/null
+++ b/mate-vfs-no_mate_mime.patch
@@ -0,0 +1,11 @@
+--- mate-vfs-1.4.0/configure.in.orig 2014-01-11 08:10:00.344122887 +0100
++++ mate-vfs-1.4.0/configure.in 2014-01-11 09:51:30.537200641 +0100
+@@ -1044,7 +1044,7 @@
+ dnl End of IPv6 checks
+ dnl ==============================================================================
+
+-PKG_CHECK_MODULES(LIBMATEVFS, glib-2.0 >= $GLIB_REQUIRED gmodule-no-export-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED mateconf-2.0 >= $MATECONF_REQUIRED libxml-2.0 >= $XML_REQUIRED mate-mime-data-2.0 $dbus_requirement)
++PKG_CHECK_MODULES(LIBMATEVFS, glib-2.0 >= $GLIB_REQUIRED gmodule-no-export-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED mateconf-2.0 >= $MATECONF_REQUIRED libxml-2.0 >= $XML_REQUIRED $dbus_requirement)
+ LIBMATEVFS_CFLAGS="$LIBMATEVFS_CFLAGS $OPENSSL_CFLAGS $LIBGNUTLS_CFLAGS $HOWL_CFLAGS $AVAHI_CFLAGS"
+ LIBMATEVFS_LIBS="$LIBMATEVFS_LIBS $OPENSSL_LIBS $LIBGNUTLS_LIBS $HOWL_LIBS $AVAHI_LIBS $RESOLVER_LIBS"
+ AC_SUBST(LIBMATEVFS_CFLAGS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mate-vfs.git/commitdiff/8e2ea559eb40418811cc3f12125e17099b887be1
More information about the pld-cvs-commit
mailing list