[packages/spideroak] up to 9948
glen
glen at pld-linux.org
Sun Sep 2 21:02:17 CEST 2012
commit fe06ebfb984168ae9aa0d56e087b3e024fda4fc2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Sep 2 22:02:01 2012 +0300
up to 9948
use original sources, seems to work
spideroak-desktopfile.patch | 4 +-
spideroak.spec | 139 ++++++++++++++++++++++++++++----------------
2 files changed, 90 insertions(+), 53 deletions(-)
---
diff --git a/spideroak.spec b/spideroak.spec
index c691299..2a55635 100644
--- a/spideroak.spec
+++ b/spideroak.spec
@@ -1,42 +1,57 @@
Summary: Online multi-platform backup, storage, access, sharing tool
Name: spideroak
-Version: 9681
-Release: 0.1.1
+Version: 9948
+Release: 0.7
License: Proprietary
Group: Applications/Networking
URL: https://spideroak.com/
-Source0: %{name}-%{version}-config.tar.bz2
-# Source0-md5: 404636ebed84c70577b876e479677c56
-Source1: %{name}-%{version}-i586.tar.bz2
-# Source1-md5: e28f6bedff7b1c70780c85fab0781b87
-Source2: %{name}-%{version}-x86_64.tar.bz2
-# Source2-md5: 8229b6adbe8ad147ffda766d0fb24084
+# https://spideroak.com/directdownload?platform=otherlinux&arch=i386
+Source0: https://spideroak.com/directdownload?platform=fedora&arch=i386#/%{name}-%{version}.i386.rpm
+# NoSource0-md5: 36ceccb84dacec4aa1aa999ca0629e67
+NoSource: 0
+Source1: https://spideroak.com/directdownload?platform=fedora&arch=x86_64#/%{name}-%{version}.x86_64.rpm
+# NoSource1-md5: 4ec6cee6ec6cb9083c10b29aaf8278f8
+NoSource: 1
Patch0: %{name}-desktopfile.patch
BuildRequires: python-devel
+BuildRequires: rpm-utils
#BuildRequires: update-desktop-files
-Requires: python-asn1
-Requires: python-bsddb3
-Requires: python-cerealizer
-Requires: python-concurrentloghandler
-Requires: python-crypto
-Requires: python-louie
-Requires: python-nose
-Requires: python-openssl
+#Requires: python-asn1
+#Requires: python-bsddb3
+#Requires: python-cerealizer
+#Requires: python-concurrentloghandler
+#Requires: python-crypto
+#Requires: python-louie
+#Requires: python-nose
+#Requires: python-openssl
Requires: python-pycurl
-Requires: python-qt4
+#Requires: python-qt4
Requires: python-setuptools
Requires: python-simplejson
-Requires: python-transaction
-Requires: python-twisted
-Requires: python-zc-lockfile
-Requires: python-zdaemon
-Requires: python-zodb3
-Requires: python-zope-event
-Requires: python-zope-proxy
+#Requires: python-transaction
+#Requires: python-twisted
+#Requires: python-zc-lockfile
+#Requires: python-zdaemon
+#Requires: python-zodb3
+#Requires: python-zope-event
+#Requires: python-zope-proxy
+ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _appdir %{_libdir}/%{name}
+# generate no Provides from private modules
+%define _noautoprovfiles %{_libdir}/%{name}
+
+# provided by package itself, but autodeps disabled
+%define _noautoreq libcrypto.so.10 libssl.so.10 libc.so.6(GLIBC_PRIVATE)
+
+# a zip and executable at the same time
+%define _noautostrip .*/library.zip\\|.*/SpiderOak\\|.*/py
+
+# debuginfo wouldn't be useful
+%define _enable_debug_packages 0
+
%description
Whether you need to access a document you have stored on a remote
server, synchronize data between a Mac, Windows or Linux device, share
@@ -46,23 +61,43 @@ up - SpiderOak's free online backup, online sync and online sharing
solution can handle all your needs!
%prep
+%setup -qcT
%ifarch %{ix86}
-%setup -q -c -b 1
-%else
-%setup -q -c -b 2
+SOURCE=%{SOURCE0}
+%endif
+%ifarch %{x8664}
+SOURCE=%{SOURCE1}
%endif
+rpm2cpio $SOURCE | cpio -i -d
+
%patch0
-mv .%{_libdir}/SpiderOak %{name}
+mv .%{_libdir}/SpiderOak lib
mv .%{_bindir} .
mv .%{_datadir}/* .
-%build
+cat <<'EOF' > bin/SpiderOak
+#!/bin/sh
+export LD_LIBRARY_PATH="%{_appdir}:$LD_LIBRARY_PATH"
+expor QT_PLUGIN_PATH=
+export SpiderOak_EXEC_SCRIPT="$0"
+exec %{_appdir}/SpiderOak "$@"
+EOF
+
+# make into symlink, looks cleaner than hardlink:
+# we can attach executable attrs to binary and leave no attrs for symlink in
+# %files section.
+ln -sf SpiderOak lib/library.zip
+ln -sf SpiderOak lib/py
+
+# you'll need this if you cp -a complete dir in source
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_appdir}}
-cp -a %{name}/* $RPM_BUILD_ROOT%{_appdir}
+cp -a lib/* $RPM_BUILD_ROOT%{_appdir}
cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
cp -a applications/* $RPM_BUILD_ROOT%{_desktopdir}
cp -a pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
@@ -73,26 +108,28 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/SpiderOak
-%{_desktopdir}/spideroak-gui.desktop
+%{_desktopdir}/spideroak.desktop
%{_pixmapsdir}/spideroak.png
%dir %{_appdir}
-%dir %{_appdir}/bin
-
-%attr(755,root,root) %{_appdir}/bin/SpiderOak
-%attr(755,root,root) %{_appdir}/bin/activate_this.py
-%attr(755,root,root) %{_appdir}/bin/inotify_dir_watcher
-
-%dir %{_appdir}/lib
-%dir %{_appdir}/lib/python2.6
-%dir %{_appdir}/lib/python2.6/site-packages
-%{_appdir}/lib/python2.6/orig-prefix.txt
-%{_appdir}/lib/python2.6/*.py*
-%{_appdir}/lib/python2.6/site-packages/*.py*
-%{_appdir}/lib/python2.6/site-packages/pip-*.egg
-%{_appdir}/lib/python2.6/site-packages/setuptools*
-%{_appdir}/lib/python2.6/site-packages/easy-install*
-%{_appdir}/lib/python2.6/site-packages/Spider[Oo]ak*
-%{_appdir}/lib/python2.6/config
-%{_appdir}/lib/python2.6/distutils
-%{_appdir}/lib/python2.6/encodings
-%{_appdir}/lib/python2.6/lib-dynload
+%attr(755,root,root) %{_appdir}/SpiderOak
+%attr(755,root,root) %{_appdir}/inotify_dir_watcher
+%{_appdir}/library.zip
+%{_appdir}/py
+%attr(755,root,root) %{_appdir}/*.so*
+%{_appdir}/Louie-1.1-py*.egg
+%{_appdir}/SpideroakVersionMatcher-1.1-py*.egg
+%{_appdir}/Twisted-10.2.0-py*.egg
+%{_appdir}/ZConfig-2.9.0-py*.egg
+%{_appdir}/ZODB3-3.10.3-py*.egg
+%{_appdir}/nose-1.1.1-py*.egg
+%{_appdir}/py_bcrypt-0.2-py*.egg
+%{_appdir}/pyasn1-0.0.13-py*.egg
+%{_appdir}/pycrypto-2.3-py*.egg
+%{_appdir}/setuptools-0.6c11-py*.egg
+%{_appdir}/simplejson-2.1.6-py*.egg
+%{_appdir}/transaction-1.1.1-py*.egg
+%{_appdir}/zc.lockfile-1.0.0-py*.egg
+%{_appdir}/zdaemon-2.0.4-py*.egg
+%{_appdir}/zope.interface-3.6.4-py*.egg
+%{_appdir}/zope.event-3.5.0_1-py*.egg
+
diff --git a/spideroak-desktopfile.patch b/spideroak-desktopfile.patch
index aa0cfc6..34aae06 100644
--- a/spideroak-desktopfile.patch
+++ b/spideroak-desktopfile.patch
@@ -1,5 +1,5 @@
---- usr/share/applications/spideroak-gui.desktop
-+++ usr/share/applications/spideroak-gui.desktop
+--- usr/share/applications/spideroak.desktop
++++ usr/share/applications/spideroak.desktop
@@ -3,7 +3,7 @@
Encoding=UTF-8
Type=Application
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/spideroak.git/commitdiff/fe06ebfb984168ae9aa0d56e087b3e024fda4fc2
More information about the pld-cvs-commit
mailing list