From f6d3da5da6ee6000b654d37408c5940b47b7783ff6f976918fbccbacde51e4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Mon, 4 Jun 2012 11:43:14 +0000 Subject: [PATCH] - Update to version 0.2.1 + 0.2.0 + Handle all the authentication methods that can be handled by libcurl like Basic, NTLM... + Decode base64 encoded content sent by SharePoint + Set the content of a document + Query nodes by path + Get the allowable actions for a node + Object properties can be updated + Query object types + Creation of folders and documents + Deletion of folders and documents + 0.2.1 + Fixed documentation distribution OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmis-client?expand=0&rev=7 --- cmis-client.changes | 18 +++++++ cmis-client.spec | 33 ++++++------ libcmis-0.1.0.tar.bz2 | 3 -- libcmis-0.2.1.tar.gz | 3 ++ warning-free.patch | 119 ------------------------------------------ 5 files changed, 37 insertions(+), 139 deletions(-) delete mode 100644 libcmis-0.1.0.tar.bz2 create mode 100644 libcmis-0.2.1.tar.gz delete mode 100644 warning-free.patch diff --git a/cmis-client.changes b/cmis-client.changes index aab38a2..d5e9f81 100644 --- a/cmis-client.changes +++ b/cmis-client.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Jun 4 11:37:10 UTC 2012 - cbosdonnat@suse.com + +- Update to version 0.2.1 + + 0.2.0 + + Handle all the authentication methods that can be handled by + libcurl like Basic, NTLM... + + Decode base64 encoded content sent by SharePoint + + Set the content of a document + + Query nodes by path + + Get the allowable actions for a node + + Object properties can be updated + + Query object types + + Creation of folders and documents + + Deletion of folders and documents + + 0.2.1 + + Fixed documentation distribution + ------------------------------------------------------------------- Tue May 29 14:46:46 UTC 2012 - cbosdonnat@suse.com diff --git a/cmis-client.spec b/cmis-client.spec index a002ee2..aaa33f8 100644 --- a/cmis-client.spec +++ b/cmis-client.spec @@ -1,7 +1,7 @@ # -# spec file for package radicale +# spec file for package cmis-client # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,24 @@ %define soname 0_2-0 +%define incname 0.2 %define _name libcmis Name: cmis-client -Version: 0.1.0 +Version: 0.2.1 Release: 0 -License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Summary: Sample CMIS client -Url: http://people.freedesktop.org/~cbosdo/libcmis/libcmis-%{version}.tar.gz +License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Group: Development/Libraries/C and C++ -Source0: libcmis-%{version}.tar.bz2 -# PATCH-FIX-UPSTREAM warning-free.patch cbosdonnat@suse.com -- Fixes the warnings from -Weffc++ -Patch0: warning-free.patch -BuildRequires: intltool -BuildRequires: pkg-config -BuildRequires: libxml2-devel -BuildRequires: libcurl-devel +Url: http://people.freedesktop.org/~cbosdo/libcmis/libcmis-%{version}.tar.gz +Source0: libcmis-%{version}.tar.gz BuildRequires: boost-devel +BuildRequires: docbook2X BuildRequires: gcc-c++ +BuildRequires: intltool +BuildRequires: libcurl-devel +BuildRequires: libxml2-devel +BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{_name}-%{soname} = %{version} @@ -42,7 +42,6 @@ Requires: %{_name}-%{soname} = %{version} Sample client to access CMIS-enabled repositories using libcmis. %package -n %{_name}-%{soname} -License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Summary: Library for accessing CMIS-enabled servers Group: Development/Libraries/C and C++ @@ -50,7 +49,6 @@ Group: Development/Libraries/C and C++ LibCMIS is a C++ client library for the CMIS interface. This allows C++ applications to connect to any CMIS-enabled repositories. %package -n %{_name}-devel -License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Summary: Libcmis development files Group: Development/Libraries/C and C++ Requires: %{_name}-%{soname} = %{version} @@ -61,12 +59,12 @@ This allows C++ applications to connect to any CMIS-enabled repositories. %prep %setup -q -n %{_name}-%{version} -%patch0 -p1 %build %configure \ --disable-tests \ - --disable-static + --disable-static \ + --disable-werror make %{?_smp_mflags} %install @@ -83,6 +81,7 @@ make check %files %defattr(-, root, root) %{_bindir}/cmis-client +%doc %{_mandir}/man1/cmis-client.1.gz %files -n %{_name}-%{soname} %defattr(-, root, root) @@ -91,7 +90,7 @@ make check %files -n %{_name}-devel %defattr(-,root,root) -%{_includedir}/%{_name} +%{_includedir}/%{_name}-%{incname} %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so diff --git a/libcmis-0.1.0.tar.bz2 b/libcmis-0.1.0.tar.bz2 deleted file mode 100644 index 0b837d7..0000000 --- a/libcmis-0.1.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99634da83f5c4ebfdfe416b6d260476bce7c97163d7afd2b9dc1be1a73f2f6c4 -size 291968 diff --git a/libcmis-0.2.1.tar.gz b/libcmis-0.2.1.tar.gz new file mode 100644 index 0000000..c8035fb --- /dev/null +++ b/libcmis-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88fee78341787c84bc22886c9c79868c4e6a87ad445c57af8c84aaaa127dec9a +size 434300 diff --git a/warning-free.patch b/warning-free.patch deleted file mode 100644 index e35b768..0000000 --- a/warning-free.patch +++ /dev/null @@ -1,119 +0,0 @@ -diff --git a/src/cmis-client.cxx b/src/cmis-client.cxx -index 8227737..5c7fbed 100644 ---- a/src/cmis-client.cxx -+++ b/src/cmis-client.cxx -@@ -48,6 +48,14 @@ class CommandException : public exception - - public: - CommandException( const char* msg ) : m_msg( msg ) { } -+ CommandException( const CommandException& copy ) : m_msg( copy.m_msg ) { } -+ -+ CommandException& operator=( const CommandException& copy ) -+ { -+ m_msg = copy.m_msg; -+ return *this; -+ } -+ - virtual const char* what() const throw() { return m_msg; } - }; - -diff --git a/src/libcmis/atom-object.cxx b/src/libcmis/atom-object.cxx -index f4a087f..c437198 100644 ---- a/src/libcmis/atom-object.cxx -+++ b/src/libcmis/atom-object.cxx -@@ -41,16 +41,39 @@ using namespace std; - AtomCmisObject::AtomCmisObject( AtomPubSession* session, string url ) : - m_session( session ), - m_infosUrl( url ), -+ m_id( ), - m_name( ), - m_baseType( ), - m_type( ) - { - } - -+AtomCmisObject::AtomCmisObject( const AtomCmisObject& copy ) : -+ m_session( copy.m_session ), -+ m_infosUrl( copy.m_infosUrl ), -+ m_id( copy.m_id ), -+ m_name( copy.m_name ), -+ m_baseType( copy.m_baseType ), -+ m_type( copy.m_type ) -+{ -+} -+ - AtomCmisObject::~AtomCmisObject( ) - { - } - -+AtomCmisObject& AtomCmisObject::operator=( const AtomCmisObject& copy ) -+{ -+ m_session = copy.m_session; -+ m_infosUrl = copy.m_infosUrl; -+ m_id = copy.m_id; -+ m_name = copy.m_name; -+ m_baseType = copy.m_baseType; -+ m_type = copy.m_type; -+ -+ return *this; -+} -+ - string AtomCmisObject::getId( ) - { - return m_id; -diff --git a/src/libcmis/atom-object.hxx b/src/libcmis/atom-object.hxx -index bcec7d0..b789caf 100644 ---- a/src/libcmis/atom-object.hxx -+++ b/src/libcmis/atom-object.hxx -@@ -48,7 +48,10 @@ class AtomCmisObject : public virtual libcmis::CmisObject - - public: - AtomCmisObject( AtomPubSession* session, std::string url ); -+ AtomCmisObject( const AtomCmisObject& ); - ~AtomCmisObject( ); -+ -+ AtomCmisObject& operator=( const AtomCmisObject& ); - - // Overridden methods from CmisObject - virtual std::string getId( ); -diff --git a/src/libcmis/atom-session.cxx b/src/libcmis/atom-session.cxx -index da12cc2..b7a7f3c 100644 ---- a/src/libcmis/atom-session.cxx -+++ b/src/libcmis/atom-session.cxx -@@ -77,7 +77,10 @@ string UriTemplate::createUrl( const string& pattern, map< string, string > vari - AtomPubSession::AtomPubSession( string atomPubUrl, string repository ) : - Session( ), - m_sAtomPubUrl( atomPubUrl ), -- m_sRepository( repository ) -+ m_sRepository( repository ), -+ m_sRootId( ), -+ m_aCollections( ), -+ m_aUriTemplates( ) - { - // Pull the content from sAtomPubUrl and parse it - string buf = atom::httpGetRequest( m_sAtomPubUrl ); -diff --git a/src/libcmis/cmis-object.hxx b/src/libcmis/cmis-object.hxx -index f1337de..7655779 100644 ---- a/src/libcmis/cmis-object.hxx -+++ b/src/libcmis/cmis-object.hxx -@@ -39,6 +39,8 @@ namespace libcmis - class CmisObject - { - public: -+ virtual ~CmisObject() {} -+ - virtual std::string getId( ) = 0; - virtual std::string getName( ) = 0; - -diff --git a/src/libcmis/session.hxx b/src/libcmis/session.hxx -index 00113d9..bc17229 100644 ---- a/src/libcmis/session.hxx -+++ b/src/libcmis/session.hxx -@@ -36,6 +36,7 @@ namespace libcmis - class Session - { - public: -+ virtual ~Session() { }; - - /** Get the Root folder of the repository - */