commit 905a8c2e6d234d6c936c78d619d6e0c4715b06a7
Author: raveit65 <mate(a)raveit.de>
Date: Thu Aug 16 10:51:27 2018 +0200
Revert "Screw dropbox's new policy for not allowing sharing for free
accounts"
This reverts commit 01f2d9749fcb4fa48f485b506163574073a8b3af.
.gitignore | 2 ++
dead.package | 1 -
nemo-dropbox.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
use_python2.patch | 38 +++++++++++++++++++++
5 files changed, 139 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a600d8f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/nemo-extensions-*.tar.gz
+/nemo-dropbox-*.src.rpm
diff --git a/nemo-dropbox.spec b/nemo-dropbox.spec
new file mode 100644
index 0000000..0a6a205
--- /dev/null
+++ b/nemo-dropbox.spec
@@ -0,0 +1,98 @@
+Summary: Dropbox extension for nemo
+Name: nemo-dropbox
+Version: 3.8.0
+Release: 2%{?dist}
+License: GPLv2+ and LGPLv2+ and MIT
+URL:
https://github.com/linuxmint/nemo-extensions
+Source0: %url/archive/%{version}.tar.gz#/nemo-extensions-%{version}.tar.gz
+Patch0: use_python2.patch
+
+ExclusiveArch: i686 x86_64
+
+BuildRequires: nemo-devel
+BuildRequires: python2-docutils
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: pygobject2-devel
+BuildRequires: pygtk2-devel
+
+Requires: dropbox >= 1:2.10.0
+
+%description
+Dropbox extension for nemo file manager
+Dropbox allows you to sync your files online and across
+your computers automatically.
+
+%prep
+%autosetup -p1 -n nemo-extensions-%{version}
+
+%build
+pushd nemo-dropbox
+NOCONFIGURE=1 ./autogen.sh
+%configure
+%make_build V=1
+popd
+
+%install
+pushd nemo-dropbox
+%make_install
+popd
+
+#Remove libtool archives.
+find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
+
+rm -rf %{buildroot}%{_bindir}
+rm -rf %{buildroot}%{_datadir}
+
+%ldconfig_scriptlets
+
+%files
+%doc nemo-dropbox/{AUTHORS,ChangeLog,NEWS,README}
+%license nemo-dropbox/COPYING
+%{_libdir}/nemo/extensions-3.0/libnemo-dropbox.so
+
+
+%changelog
+* Tue Jul 24 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3.8.0-2
+- Fix build for f29 python changes
+
+* Tue May 01 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 3.8.0-1
+- Update to 3.8.0
+
+* Fri Mar 02 2018 RPM Fusion Release Engineering <leigh123linux(a)googlemail.com> -
3.6.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Fri Oct 27 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 3.6.0-1
+- update to 3.6.0
+
+* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 3.4.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sun Jul 02 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 3.4.0-1
+- update to 3.4.0
+
+* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 3.2.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Wed Nov 09 2016 leigh scott <leigh123linux(a)googlemail.com> - 3.2.0-1
+- update to 3.2.0
+
+* Sun Aug 07 2016 Leigh Scott <leigh123linux(a)googlemail.com> - 3.0.0-2
+- rebuilt
+
+* Fri Jun 17 2016 Leigh Scott <leigh123linux(a)googlemail.com> - 3.0.0-1
+- update to 3.0.0
+
+* Sun Jul 05 2015 Leigh Scott <leigh123linux(a)googlemail.com> - 2.6.0-1
+- update to 2.6.0
+
+* Wed Jan 07 2015 Leigh Scott <leigh123linux(a)googlemail.com> - 2.4.0-1
+- use internal version
+- add ExclusiveArch
+
+* Tue Dec 16 2014 Leigh Scott <leigh123linux(a)googlemail.com> - 2.4.x-2
+- add requires dropbox
+
+* Tue Dec 09 2014 Leigh Scott <leigh123linux(a)googlemail.com> - 2.4.x-1
+- First build
+
diff --git a/sources b/sources
new file mode 100644
index 0000000..2ead431
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3b8df9f23de294ae0bc7c3b394c7c1da nemo-extensions-3.8.0.tar.gz
diff --git a/use_python2.patch b/use_python2.patch
new file mode 100644
index 0000000..f4a3a18
--- /dev/null
+++ b/use_python2.patch
@@ -0,0 +1,38 @@
+--- a/nemo-dropbox/configure.ac
++++ b/nemo-dropbox/configure.ac
+@@ -29,16 +29,16 @@ fi
+ PKG_CHECK_MODULES(NEMO, libnemo-extension >= $NEMO_REQUIRED)
+ PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
+
+-AC_PATH_PROG([PYTHON], [python])
++AC_PATH_PROG([PYTHON], [python2])
+
+-AC_PATH_PROG([RST2MAN], [rst2man], [python rst2man.py])
++AC_PATH_PROG([RST2MAN], [rst2man], [python2 rst2man.py])
+ AC_SUBST(RST2MAN)
+
+ # define module checking macro
+ AC_DEFUN([PYTHON_CHECK_MODULE], [
+ AC_MSG_CHECKING([for $1])
+
+-cat <<EOF | python
++cat <<EOF | python2
+ try:
+ import $2
+ except:
+--- a/nemo-dropbox/Makefile.am
++++ b/nemo-dropbox/Makefile.am
+@@ -6,11 +6,11 @@ EXTRA_DIST = dropbox.in serializeimages.
+ man_MANS = dropbox.1
+
+ dropbox: dropbox.in serializeimages.py
+- python serializeimages.py $(PACKAGE_VERSION) $(datadir)/applications < dropbox.in
> dropbox
++ python2 serializeimages.py $(PACKAGE_VERSION) $(datadir)/applications < dropbox.in
> dropbox
+ chmod +x dropbox
+
+ dropbox.1: dropbox dropbox.txt.in docgen.py
+- python docgen.py $(PACKAGE_VERSION) < dropbox.txt.in > dropbox.txt
++ python2 docgen.py $(PACKAGE_VERSION) < dropbox.txt.in > dropbox.txt
+ $(RST2MAN) dropbox.txt > dropbox.1
+
+ SUBDIRS = data src