forked from pool/cmis-client
Accepting request 134062 from devel:libraries:c_c++
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/134062 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmis-client?expand=0&rev=3
This commit is contained in:
commit
8cc0fdae50
@ -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
|
Tue May 29 14:46:46 UTC 2012 - cbosdonnat@suse.com
|
||||||
|
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,24 +17,24 @@
|
|||||||
|
|
||||||
|
|
||||||
%define soname 0_2-0
|
%define soname 0_2-0
|
||||||
|
%define incname 0.2
|
||||||
%define _name libcmis
|
%define _name libcmis
|
||||||
|
|
||||||
Name: cmis-client
|
Name: cmis-client
|
||||||
Version: 0.1.0
|
Version: 0.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
|
||||||
Summary: Sample CMIS client
|
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++
|
Group: Development/Libraries/C and C++
|
||||||
Source0: libcmis-%{version}.tar.bz2
|
Url: http://people.freedesktop.org/~cbosdo/libcmis/libcmis-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM warning-free.patch cbosdonnat@suse.com -- Fixes the warnings from -Weffc++
|
Source0: libcmis-%{version}.tar.gz
|
||||||
Patch0: warning-free.patch
|
|
||||||
BuildRequires: intltool
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: libxml2-devel
|
|
||||||
BuildRequires: libcurl-devel
|
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: docbook2X
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
BuildRequires: pkg-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: %{_name}-%{soname} = %{version}
|
Requires: %{_name}-%{soname} = %{version}
|
||||||
|
|
||||||
@ -42,7 +42,6 @@ Requires: %{_name}-%{soname} = %{version}
|
|||||||
Sample client to access CMIS-enabled repositories using libcmis.
|
Sample client to access CMIS-enabled repositories using libcmis.
|
||||||
|
|
||||||
%package -n %{_name}-%{soname}
|
%package -n %{_name}-%{soname}
|
||||||
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
|
||||||
Summary: Library for accessing CMIS-enabled servers
|
Summary: Library for accessing CMIS-enabled servers
|
||||||
Group: Development/Libraries/C and C++
|
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.
|
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
|
%package -n %{_name}-devel
|
||||||
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
|
||||||
Summary: Libcmis development files
|
Summary: Libcmis development files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{_name}-%{soname} = %{version}
|
Requires: %{_name}-%{soname} = %{version}
|
||||||
@ -61,12 +59,12 @@ This allows C++ applications to connect to any CMIS-enabled repositories.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--disable-tests \
|
--disable-tests \
|
||||||
--disable-static
|
--disable-static \
|
||||||
|
--disable-werror
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -83,6 +81,7 @@ make check
|
|||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_bindir}/cmis-client
|
%{_bindir}/cmis-client
|
||||||
|
%doc %{_mandir}/man1/cmis-client.1.gz
|
||||||
|
|
||||||
%files -n %{_name}-%{soname}
|
%files -n %{_name}-%{soname}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -91,7 +90,7 @@ make check
|
|||||||
|
|
||||||
%files -n %{_name}-devel
|
%files -n %{_name}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/%{_name}
|
%{_includedir}/%{_name}-%{incname}
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:99634da83f5c4ebfdfe416b6d260476bce7c97163d7afd2b9dc1be1a73f2f6c4
|
|
||||||
size 291968
|
|
3
libcmis-0.2.1.tar.gz
Normal file
3
libcmis-0.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:88fee78341787c84bc22886c9c79868c4e6a87ad445c57af8c84aaaa127dec9a
|
||||||
|
size 434300
|
@ -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
|
|
||||||
*/
|
|
Loading…
Reference in New Issue
Block a user