[packages/grive] - added json-c-0.14 patch; rel 31
qboosh
qboosh at pld-linux.org
Sat May 2 09:51:14 CEST 2020
commit 47e89caba9b1d63ec0f6627db3b27eb3837d231c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat May 2 09:51:35 2020 +0200
- added json-c-0.14 patch; rel 31
grive-json-c-0.14.patch | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
grive.spec | 11 +++++----
2 files changed, 71 insertions(+), 4 deletions(-)
---
diff --git a/grive.spec b/grive.spec
index 1eb9b63..c931472 100644
--- a/grive.spec
+++ b/grive.spec
@@ -2,7 +2,7 @@
# bash: %%(c=%{commit}; echo ${c:0:7})
%define shortcommit 27817e8
%define cdate 20130702
-%define rel 30
+%define rel 31
Summary: An open source Linux client for Google Drive
Summary(pl.UTF-8): Linuksowy, mające otwarte źródła klient Google Drive
Name: grive
@@ -17,7 +17,8 @@ Patch0: json-c.patch
Patch1: %{name}-bgrive_cmake_fix.patch
Patch2: build.patch
Patch3: binutils-2.34.patch
-URL: http://www.lbreda.com/grive/
+Patch4: %{name}-json-c-0.14.patch
+URL: https://github.com/Grive/grive
BuildRequires: QtCore-devel
BuildRequires: QtGui-devel
BuildRequires: binutils-devel
@@ -60,6 +61,7 @@ Graficzny interfejs użytkownika do Grive.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
install -d build
@@ -69,6 +71,7 @@ cd build
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
@@ -78,8 +81,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
-%attr(755,root,root) %{_bindir}/%{name}
-%{_mandir}/man1/%{name}.1*
+%attr(755,root,root) %{_bindir}/grive
+%{_mandir}/man1/grive.1*
%files -n bgrive
%defattr(644,root,root,755)
diff --git a/grive-json-c-0.14.patch b/grive-json-c-0.14.patch
new file mode 100644
index 0000000..344b4bd
--- /dev/null
+++ b/grive-json-c-0.14.patch
@@ -0,0 +1,64 @@
+--- grive-27817e835fe115ebbda5410ec904aa49a2ad01f1/libgrive/src/protocol/Json.cc.orig 2020-05-02 09:07:09.733415940 +0200
++++ grive-27817e835fe115ebbda5410ec904aa49a2ad01f1/libgrive/src/protocol/Json.cc 2020-05-02 09:11:48.378573057 +0200
+@@ -254,7 +254,7 @@
+ bool Json::Has( const std::string& key ) const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_object_get_ex( m_json, key.c_str(), 0 ) == TRUE ;
++ return ::json_object_object_get_ex( m_json, key.c_str(), 0 ) == 1 ;
+ }
+
+ bool Json::Get( const std::string& key, Json& json ) const
+@@ -294,14 +294,14 @@
+ bool Json::Bool() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_get_boolean( m_json ) == TRUE ;
++ return ::json_object_get_boolean( m_json ) == 1 ;
+ }
+
+ template <>
+ bool Json::Is<bool>() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_is_type( m_json, json_type_boolean ) == TRUE ;
++ return ::json_object_is_type( m_json, json_type_boolean ) == 1 ;
+ }
+
+ template <>
+@@ -320,7 +320,7 @@
+ bool Json::Is<std::string>() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_is_type( m_json, json_type_string ) == TRUE ;
++ return ::json_object_is_type( m_json, json_type_string ) == 1 ;
+ }
+
+ template <>
+@@ -339,7 +339,7 @@
+ bool Json::Is<int>() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_is_type( m_json, json_type_int ) == TRUE ;
++ return ::json_object_is_type( m_json, json_type_int ) == 1 ;
+ }
+
+ template <>
+@@ -402,7 +402,7 @@
+ bool Json::Is<Json::Object>() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_is_type( m_json, json_type_object ) == TRUE ;
++ return ::json_object_is_type( m_json, json_type_object ) == 1 ;
+ }
+
+ template <>
+@@ -426,7 +426,7 @@
+ bool Json::Is<Json::Array>() const
+ {
+ assert( m_json != 0 ) ;
+- return ::json_object_is_type( m_json, json_type_array ) == TRUE ;
++ return ::json_object_is_type( m_json, json_type_array ) == 1 ;
+ }
+
+ template <>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/grive.git/commitdiff/47e89caba9b1d63ec0f6627db3b27eb3837d231c
More information about the pld-cvs-commit
mailing list