[packages/insync] caja package
glen
glen at pld-linux.org
Wed Apr 10 15:24:44 CEST 2013
commit 0327ffdea4c08303ac058e6a81e966f90564c323
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Apr 10 16:24:30 2013 +0300
caja package
insync.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 44 insertions(+), 9 deletions(-)
---
diff --git a/insync.spec b/insync.spec
index eb3ff19..e14bc26 100644
--- a/insync.spec
+++ b/insync.spec
@@ -2,21 +2,23 @@
# - use python-gdata?
# - todo, gnome, cinnamon, kde subpackages
# https://forums.insynchq.com/discussion/1437/insync-for-linux-beta-4-0-9-19
+# - if other DE .desktop added, fill them with OnlyShowIn fields
Summary: Insync - Your Google Docs backup and sync tool
Name: insync
Version: 0.9.41
-Release: 0.1
+Release: 0.4
License: ?
-Group: Applications
+Group: X11/Applications
# DownloadUrl: https://www.insynchq.com/linux
-Source0: http://s.insynchq.com/builds/%{name}-beta-gnome-cinnamon-common-%{version}-1.i686.rpm
-# NoSource0-md5: 7a30c504db7ecf0c4c3c330dc9c4cb5e
+Source0: http://s.insynchq.com/builds/%{name}-beta-mate_%{version}_i386.deb
+# NoSource0-md5: 68299418714c494a7d80f6e1c2bc3c0d
NoSource: 0
-Source1: http://s.insynchq.com/builds/%{name}-beta-gnome-cinnamon-common-%{version}-1.x86_64.rpm
-# NoSource1-md5: 6de980f9a98d7ed729c6825c05433430
+Source1: http://s.insynchq.com/builds/%{name}-beta-mate_%{version}_amd64.deb
+# NoSource1-md5: 8126bb7915b77a88cc0f098d2398aeff
NoSource: 0
URL: https://www.insynchq.com/
BuildRequires: rpm-utils
+BuildRequires: sed >= 4.0
Requires: glib2
Requires: gtk-update-icon-cache
Requires: gvfs
@@ -26,7 +28,7 @@ Requires: xdotool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _appdir %{_libdir}/%{name}
-%define nautilus_pyextdir /usr/share/nautilus-python/extensions
+%define caja_pyextdir /usr/share/caja-python/extensions
# a zip and executable at the same time
%define _noautostrip .*/library.zip\\|.*/insync\\|.*/py
@@ -44,6 +46,14 @@ Insync is Google Drive for business and power users that sync and
supports multiple accounts and offline Google Docs editing using local
applications.
+%package -n caja-insync
+Summary: Insync context menu and emblems for Caja
+Requires: %{name} = %{version}-%{release}
+Requires: mate-file-manager
+
+%description -n caja-insync
+Insync context menu and emblems for Mate File Manager (Caja).
+
%prep
%setup -qcT
%ifarch %{ix86}
@@ -52,12 +62,22 @@ SOURCE=%{SOURCE0}
%ifarch %{x8664}
SOURCE=%{SOURCE1}
%endif
+%if 0
rpm2cpio $SOURCE | cpio -i -d
+%else
+ar x $SOURCE
+tar xzf data.tar.gz
+%endif
mv usr/bin .
mv usr/lib/insync lib
mv usr/share/icons .
+# mate
+mv usr/share/applications/*.desktop .
+cp -p insync.desktop insync-mate.desktop
+mv usr/share/caja-python .
+
# make into symlink, looks cleaner than hardlink:
# we can attach executable attrs to binary and leave no attrs for symlink in
# %files section.
@@ -66,17 +86,21 @@ ln -sf insync lib/library.zip
%{__sed} -i -e '
1s,/bin/bash,/bin/sh,
- s,/usr/lib/insync,%{_appdir},
+s,%{_prefix}/lib/insync,%{_appdir},
' bin/%{name}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir},%{_iconsdir},%{_desktopdir},%{nautilus_pyextdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir},%{_iconsdir},%{_desktopdir},%{caja_pyextdir}}
cp -a lib/* $RPM_BUILD_ROOT%{_appdir}
install -p bin/* $RPM_BUILD_ROOT%{_bindir}
cp -a icons/* $RPM_BUILD_ROOT%{_iconsdir}
+# mate
+cp -p insync-mate.desktop $RPM_BUILD_ROOT%{_desktopdir}
+cp -a caja-python/extensions/* $RPM_BUILD_ROOT%{caja_pyextdir}
+
%post
%update_icon_cache hicolor
@@ -109,3 +133,14 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/insync/greenlet-0.4.0-py*.egg/EGG-INFO
%{_libdir}/insync/greenlet-0.4.0-py*.egg/greenlet.py[co]
%attr(755,root,root) %{_libdir}/insync/greenlet-0.4.0-py*.egg/greenlet.so
+
+%files -n caja-insync
+%defattr(644,root,root,755)
+%{_desktopdir}/insync-mate.desktop
+%{caja_pyextdir}/insync-caja-plugin.py
+%dir %{caja_pyextdir}/libgio
+%{caja_pyextdir}/libgio/__init__.py
+
+# FIXME
+%dir %{caja_pyextdir}
+%dir /usr/share/caja-python
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/insync.git/commitdiff/0327ffdea4c08303ac058e6a81e966f90564c323
More information about the pld-cvs-commit
mailing list