[packages/grive] up to 0.3.0 snapshot 27817e8

glen glen at pld-linux.org
Sat Nov 23 17:33:40 CET 2013


commit a1d830652879448fdc4db34f81e2b204285371ca
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Nov 23 18:31:03 2013 +0200

    up to 0.3.0 snapshot 27817e8
    
    https://bugzilla.redhat.com/show_bug.cgi?id=829713#c28 claims this
    upstream is dead?

 grive-bgrive_cmake_fix.patch |  9 +++++++++
 grive.spec                   | 36 ++++++++++++++++++++++++++----------
 2 files changed, 35 insertions(+), 10 deletions(-)
---
diff --git a/grive.spec b/grive.spec
index d5dc486..66c2126 100644
--- a/grive.spec
+++ b/grive.spec
@@ -1,12 +1,17 @@
+%define	commit 27817e835fe115ebbda5410ec904aa49a2ad01f1
+%define	shortcommit %(c=%{commit}; echo ${c:0:7})
+%define	cdate	20130702
 Summary:	An open source Linux client for Google Drive
 Name:		grive
-Version:	0.2.0
-Release:	6
+Version:	0.3.0
+Release:	0.1.%{cdate}git%{shortcommit}
 License:	GPL v2
 Group:		Applications/Networking
+Source0:	https://github.com/Grive/grive/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+# https://github.com/Grive/grive/issues/187
+Patch1:		%{name}-bgrive_cmake_fix.patch
 URL:		http://www.lbreda.com/grive/
-Source0:	http://www.lbreda.com/grive/_media/packages/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	8260b1e6c0369da35ebcfe8c8f840f2b
+BuildRequires:	QtCore-devel
 BuildRequires:	binutils-devel
 BuildRequires:	boost-devel
 BuildRequires:	cmake
@@ -16,27 +21,34 @@ BuildRequires:	json-c-devel
 BuildRequires:	libgcrypt-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	openssl-devel
+BuildRequires:	yajl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 The purpose of this project is to provide an independent
 implementation of Google Drive client. It uses the Google Document
-List API to talk to the servers in Google. The code is written in
-standard C++.
+List API to talk to the servers in Google.
+
+%package -n bgrive
+Summary:	Qt frontend for %{name}
+Group:		Applications/Networking
+Requires:	%{name} = %{version}-%{release}
+
+%description -n bgrive
+GUI frontend for %{name}
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{commit}
+%patch1 -p1
 
 %build
 install -d build
 cd build
 %cmake ..
-
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
@@ -47,4 +59,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README
 %attr(755,root,root) %{_bindir}/%{name}
-%{_mandir}/man1/grive.1*
+%{_mandir}/man1/%{name}.1*
+
+%files -n bgrive
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/bgrive
diff --git a/grive-bgrive_cmake_fix.patch b/grive-bgrive_cmake_fix.patch
new file mode 100644
index 0000000..a5fb116
--- /dev/null
+++ b/grive-bgrive_cmake_fix.patch
@@ -0,0 +1,9 @@
+diff --git a/bgrive/CMakeLists.txt b/bgrive/CMakeLists.txt
+index 074ab38..7bb3269 100644
+--- a/bgrive/CMakeLists.txt
++++ b/bgrive/CMakeLists.txt
+@@ -40,4 +40,3 @@ set_target_properties( bgrive_executable
+ )
+ 
+ install(TARGETS bgrive_executable RUNTIME DESTINATION bin)
+-install(FILES doc/grive.1 DESTINATION share/man/man1 )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grive.git/commitdiff/a1d830652879448fdc4db34f81e2b204285371ca



More information about the pld-cvs-commit mailing list