commit
e72a109f6d
@ -0,0 +1 @@
|
|||||||
|
SOURCES/libcmis-0.6.2.tar.xz
|
@ -0,0 +1 @@
|
|||||||
|
0ee530972bdc99a4178cb05bf1886637b53bee86 SOURCES/libcmis-0.6.2.tar.xz
|
@ -0,0 +1,412 @@
|
|||||||
|
--- a/src/libcmis/allowable-actions.cxx
|
||||||
|
+++ b/src/libcmis/allowable-actions.cxx
|
||||||
|
@@ -62,7 +62,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- ObjectAction::Type ObjectAction::parseType( string type ) throw ( Exception )
|
||||||
|
+ ObjectAction::Type ObjectAction::parseType( string type )
|
||||||
|
{
|
||||||
|
Type value = DeleteObject;
|
||||||
|
if ( type == "canDeleteObject" )
|
||||||
|
--- a/src/libcmis/allowable-actions.hxx
|
||||||
|
+++ b/src/libcmis/allowable-actions.hxx
|
||||||
|
@@ -92,7 +92,7 @@
|
||||||
|
/** Parses the permission name into one of the enum values or throws
|
||||||
|
an exception for invalid input strings.
|
||||||
|
*/
|
||||||
|
- static Type parseType( std::string type ) throw ( Exception );
|
||||||
|
+ static Type parseType( std::string type );
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
--- a/src/libcmis/document.hxx
|
||||||
|
+++ b/src/libcmis/document.hxx
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
|
||||||
|
@return the parents folder if any.
|
||||||
|
*/
|
||||||
|
- virtual std::vector< boost::shared_ptr< Folder > > getParents( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual std::vector< boost::shared_ptr< Folder > > getParents( ) = 0;
|
||||||
|
|
||||||
|
/** Get the content stream without using a temporary file.
|
||||||
|
|
||||||
|
@@ -74,7 +74,7 @@
|
||||||
|
guaranteed.
|
||||||
|
*/
|
||||||
|
virtual boost::shared_ptr< std::istream > getContentStream( std::string streamId = std::string( ) )
|
||||||
|
- throw ( Exception ) = 0;
|
||||||
|
+ = 0;
|
||||||
|
|
||||||
|
/** Set or replace the content stream of the document.
|
||||||
|
|
||||||
|
@@ -88,7 +88,7 @@
|
||||||
|
capability.
|
||||||
|
*/
|
||||||
|
virtual void setContentStream( boost::shared_ptr< std::ostream > os, std::string contentType,
|
||||||
|
- std::string filename, bool overwrite = true ) throw ( Exception ) = 0;
|
||||||
|
+ std::string filename, bool overwrite = true ) = 0;
|
||||||
|
|
||||||
|
/** Get the content mime type.
|
||||||
|
*/
|
||||||
|
@@ -107,12 +107,12 @@
|
||||||
|
|
||||||
|
\return the Private Working Copy document
|
||||||
|
*/
|
||||||
|
- virtual boost::shared_ptr< Document > checkOut( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual boost::shared_ptr< Document > checkOut( ) = 0;
|
||||||
|
|
||||||
|
/** Cancels the checkout if the document is a private working copy, or
|
||||||
|
throws an exception.
|
||||||
|
*/
|
||||||
|
- virtual void cancelCheckout( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual void cancelCheckout( ) = 0;
|
||||||
|
|
||||||
|
/** Check in the private working copy and create a new version or throw
|
||||||
|
an exception.
|
||||||
|
@@ -131,9 +131,9 @@
|
||||||
|
virtual boost::shared_ptr< Document > checkIn( bool isMajor, std::string comment,
|
||||||
|
const std::map< std::string, PropertyPtr >& properties,
|
||||||
|
boost::shared_ptr< std::ostream > stream,
|
||||||
|
- std::string contentType, std::string fileName ) throw ( Exception ) = 0;
|
||||||
|
+ std::string contentType, std::string fileName ) = 0;
|
||||||
|
|
||||||
|
- virtual std::vector< boost::shared_ptr< Document > > getAllVersions( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual std::vector< boost::shared_ptr< Document > > getAllVersions( ) = 0;
|
||||||
|
|
||||||
|
// virtual methods form Object
|
||||||
|
virtual std::vector< std::string > getPaths( );
|
||||||
|
--- a/src/libcmis/folder.cxx
|
||||||
|
+++ b/src/libcmis/folder.cxx
|
||||||
|
@@ -40,7 +40,7 @@
|
||||||
|
return paths;
|
||||||
|
}
|
||||||
|
|
||||||
|
- libcmis::FolderPtr Folder::getFolderParent( ) throw ( libcmis::Exception )
|
||||||
|
+ libcmis::FolderPtr Folder::getFolderParent( )
|
||||||
|
{
|
||||||
|
if ( getAllowableActions( ).get() && !getAllowableActions()->isAllowed( libcmis::ObjectAction::GetFolderParent ) )
|
||||||
|
throw libcmis::Exception( string( "GetFolderParent not allowed on node " ) + getId() );
|
||||||
|
--- a/src/libcmis/folder.hxx
|
||||||
|
+++ b/src/libcmis/folder.hxx
|
||||||
|
@@ -59,20 +59,20 @@
|
||||||
|
|
||||||
|
virtual std::vector< std::string > getPaths( );
|
||||||
|
|
||||||
|
- virtual ::boost::shared_ptr< Folder > getFolderParent( ) throw ( Exception );
|
||||||
|
- virtual std::vector< ObjectPtr > getChildren( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual ::boost::shared_ptr< Folder > getFolderParent( );
|
||||||
|
+ virtual std::vector< ObjectPtr > getChildren( ) = 0;
|
||||||
|
virtual std::string getParentId( );
|
||||||
|
virtual std::string getPath( );
|
||||||
|
|
||||||
|
virtual bool isRootFolder( );
|
||||||
|
|
||||||
|
virtual ::boost::shared_ptr< Folder > createFolder( const std::map< std::string, PropertyPtr >& properties )
|
||||||
|
- throw ( libcmis::Exception ) = 0;
|
||||||
|
+ = 0;
|
||||||
|
virtual ::boost::shared_ptr< Document > createDocument( const std::map< std::string, PropertyPtr >& properties,
|
||||||
|
- boost::shared_ptr< std::ostream > os, std::string contentType, std::string fileName ) throw ( Exception ) = 0;
|
||||||
|
+ boost::shared_ptr< std::ostream > os, std::string contentType, std::string fileName ) = 0;
|
||||||
|
|
||||||
|
virtual std::vector< std::string > removeTree( bool allVersion = true, UnfileObjects::Type unfile = UnfileObjects::Delete,
|
||||||
|
- bool continueOnError = false ) throw ( Exception ) = 0;
|
||||||
|
+ bool continueOnError = false ) = 0;
|
||||||
|
|
||||||
|
virtual std::string toString( );
|
||||||
|
};
|
||||||
|
--- a/src/libcmis/object.cxx
|
||||||
|
+++ b/src/libcmis/object.cxx
|
||||||
|
@@ -226,7 +226,6 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
ObjectPtr Object::addSecondaryType( string id, PropertyPtrMap properties )
|
||||||
|
- throw ( Exception )
|
||||||
|
{
|
||||||
|
// First make sure the cmis:secondaryObjectTypeIds property can be defined
|
||||||
|
map< string, PropertyTypePtr >& propertyTypes = getTypeDescription( )->
|
||||||
|
@@ -253,7 +252,7 @@
|
||||||
|
return updateProperties( newProperties );
|
||||||
|
}
|
||||||
|
|
||||||
|
- ObjectPtr Object::removeSecondaryType( string id ) throw ( Exception )
|
||||||
|
+ ObjectPtr Object::removeSecondaryType( string id )
|
||||||
|
{
|
||||||
|
// First make sure the cmis:secondaryObjectTypeIds property can be defined
|
||||||
|
map< string, PropertyTypePtr >& propertyTypes = getTypeDescription( )->
|
||||||
|
@@ -297,12 +296,12 @@
|
||||||
|
return m_typeDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
- vector< RenditionPtr> Object::getRenditions( string /*filter*/ ) throw ( Exception )
|
||||||
|
+ vector< RenditionPtr> Object::getRenditions( string /*filter*/ )
|
||||||
|
{
|
||||||
|
return m_renditions;
|
||||||
|
}
|
||||||
|
|
||||||
|
- string Object::getThumbnailUrl( ) throw ( Exception )
|
||||||
|
+ string Object::getThumbnailUrl( )
|
||||||
|
{
|
||||||
|
string url;
|
||||||
|
vector< RenditionPtr > renditions = getRenditions( );
|
||||||
|
--- a/src/libcmis/object.hxx
|
||||||
|
+++ b/src/libcmis/object.hxx
|
||||||
|
@@ -129,8 +129,7 @@
|
||||||
|
*/
|
||||||
|
virtual boost::shared_ptr< Object > addSecondaryType(
|
||||||
|
std::string id,
|
||||||
|
- PropertyPtrMap properties )
|
||||||
|
- throw ( Exception );
|
||||||
|
+ PropertyPtrMap properties );
|
||||||
|
|
||||||
|
/** Convenience function removing a secondary type from the object.
|
||||||
|
|
||||||
|
@@ -154,8 +153,7 @@
|
||||||
|
to throw a constraint exception if it doesn't allow the
|
||||||
|
operation.
|
||||||
|
*/
|
||||||
|
- virtual boost::shared_ptr< Object > removeSecondaryType( std::string id )
|
||||||
|
- throw ( Exception );
|
||||||
|
+ virtual boost::shared_ptr< Object > removeSecondaryType( std::string id );
|
||||||
|
|
||||||
|
/** Gives access to the properties of the object.
|
||||||
|
|
||||||
|
@@ -179,8 +177,7 @@
|
||||||
|
\attention
|
||||||
|
The streamId of the rendition is used in getContentStream( )
|
||||||
|
*/
|
||||||
|
- virtual std::vector< RenditionPtr> getRenditions( std::string filter = std::string( ) )
|
||||||
|
- throw ( Exception );
|
||||||
|
+ virtual std::vector< RenditionPtr> getRenditions( std::string filter = std::string( ) );
|
||||||
|
virtual AllowableActionsPtr getAllowableActions( ) { return m_allowableActions; }
|
||||||
|
|
||||||
|
/** Update the object properties and return the updated object.
|
||||||
|
@@ -191,21 +188,21 @@
|
||||||
|
are still two different instances to ease memory handling.
|
||||||
|
*/
|
||||||
|
virtual boost::shared_ptr< Object > updateProperties(
|
||||||
|
- const PropertyPtrMap& properties ) throw ( Exception ) = 0;
|
||||||
|
+ const PropertyPtrMap& properties ) = 0;
|
||||||
|
|
||||||
|
virtual ObjectTypePtr getTypeDescription( );
|
||||||
|
|
||||||
|
/** Reload the data from the server.
|
||||||
|
*/
|
||||||
|
- virtual void refresh( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual void refresh( ) = 0;
|
||||||
|
virtual time_t getRefreshTimestamp( ) { return m_refreshTimestamp; }
|
||||||
|
|
||||||
|
- virtual void remove( bool allVersions = true ) throw ( Exception ) = 0;
|
||||||
|
+ virtual void remove( bool allVersions = true ) = 0;
|
||||||
|
|
||||||
|
- virtual void move( boost::shared_ptr< Folder > source, boost::shared_ptr< Folder > destination ) throw ( Exception ) = 0;
|
||||||
|
+ virtual void move( boost::shared_ptr< Folder > source, boost::shared_ptr< Folder > destination ) = 0;
|
||||||
|
|
||||||
|
|
||||||
|
- virtual std::string getThumbnailUrl( ) throw ( Exception );
|
||||||
|
+ virtual std::string getThumbnailUrl( );
|
||||||
|
|
||||||
|
/** Dump the object as a string for debugging or display purpose.
|
||||||
|
*/
|
||||||
|
--- a/src/libcmis/object-type.cxx
|
||||||
|
+++ b/src/libcmis/object-type.cxx
|
||||||
|
@@ -293,22 +293,22 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- void ObjectType::refresh( ) throw ( Exception )
|
||||||
|
+ void ObjectType::refresh( )
|
||||||
|
{
|
||||||
|
throw Exception( "ObjectType::refresh() shouldn't be called" );
|
||||||
|
}
|
||||||
|
|
||||||
|
- ObjectTypePtr ObjectType::getParentType( ) throw ( Exception )
|
||||||
|
+ ObjectTypePtr ObjectType::getParentType( )
|
||||||
|
{
|
||||||
|
throw Exception( "ObjectType::getParentType() shouldn't be called" );
|
||||||
|
}
|
||||||
|
|
||||||
|
- ObjectTypePtr ObjectType::getBaseType( ) throw ( Exception )
|
||||||
|
+ ObjectTypePtr ObjectType::getBaseType( )
|
||||||
|
{
|
||||||
|
throw Exception( "ObjectType::getBaseType() shouldn't be called" );
|
||||||
|
}
|
||||||
|
|
||||||
|
- vector< ObjectTypePtr > ObjectType::getChildren( ) throw ( Exception )
|
||||||
|
+ vector< ObjectTypePtr > ObjectType::getChildren( )
|
||||||
|
{
|
||||||
|
throw Exception( "ObjectType::getChildren() shouldn't be called" );
|
||||||
|
}
|
||||||
|
--- a/src/libcmis/object-type.hxx
|
||||||
|
+++ b/src/libcmis/object-type.hxx
|
||||||
|
@@ -94,7 +94,7 @@
|
||||||
|
This method needs to be implemented in subclasses or it will
|
||||||
|
do nothing
|
||||||
|
*/
|
||||||
|
- virtual void refresh( ) throw ( Exception );
|
||||||
|
+ virtual void refresh( );
|
||||||
|
virtual time_t getRefreshTimestamp( ) const;
|
||||||
|
|
||||||
|
std::string getId( ) const;
|
||||||
|
@@ -104,9 +104,9 @@
|
||||||
|
std::string getQueryName( ) const;
|
||||||
|
std::string getDescription( ) const;
|
||||||
|
|
||||||
|
- virtual boost::shared_ptr< ObjectType > getParentType( ) throw ( Exception );
|
||||||
|
- virtual boost::shared_ptr< ObjectType > getBaseType( ) throw ( Exception );
|
||||||
|
- virtual std::vector< boost::shared_ptr< ObjectType > > getChildren( ) throw ( Exception );
|
||||||
|
+ virtual boost::shared_ptr< ObjectType > getParentType( );
|
||||||
|
+ virtual boost::shared_ptr< ObjectType > getBaseType( );
|
||||||
|
+ virtual std::vector< boost::shared_ptr< ObjectType > > getChildren( );
|
||||||
|
|
||||||
|
/** Get the parent type id without extracting the complete parent type from
|
||||||
|
the repository. This is mainly provided for performance reasons.
|
||||||
|
--- a/src/libcmis/session-factory.cxx
|
||||||
|
+++ b/src/libcmis/session-factory.cxx
|
||||||
|
@@ -57,7 +57,7 @@
|
||||||
|
|
||||||
|
Session* SessionFactory::createSession( string bindingUrl, string username,
|
||||||
|
string password, string repository, bool noSslCheck,
|
||||||
|
- libcmis::OAuth2DataPtr oauth2, bool verbose ) throw ( Exception )
|
||||||
|
+ libcmis::OAuth2DataPtr oauth2, bool verbose )
|
||||||
|
{
|
||||||
|
Session* session = NULL;
|
||||||
|
|
||||||
|
@@ -138,7 +138,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
vector< RepositoryPtr > SessionFactory::getRepositories( string bindingUrl,
|
||||||
|
- string username, string password, bool verbose ) throw ( Exception )
|
||||||
|
+ string username, string password, bool verbose )
|
||||||
|
{
|
||||||
|
vector< RepositoryPtr > repos;
|
||||||
|
|
||||||
|
--- a/src/libcmis/session-factory.hxx
|
||||||
|
+++ b/src/libcmis/session-factory.hxx
|
||||||
|
@@ -128,7 +128,7 @@
|
||||||
|
std::string password = std::string( ),
|
||||||
|
std::string repositoryId = std::string( ),
|
||||||
|
bool noSslCheck = false,
|
||||||
|
- OAuth2DataPtr oauth2 = OAuth2DataPtr(), bool verbose = false ) throw ( Exception );
|
||||||
|
+ OAuth2DataPtr oauth2 = OAuth2DataPtr(), bool verbose = false );
|
||||||
|
|
||||||
|
/**
|
||||||
|
Gets the informations of the repositories on the server.
|
||||||
|
@@ -142,7 +142,7 @@
|
||||||
|
static std::vector< RepositoryPtr > getRepositories( std::string bindingUrl,
|
||||||
|
std::string username = std::string( ),
|
||||||
|
std::string password = std::string( ),
|
||||||
|
- bool verbose = false ) throw ( Exception );
|
||||||
|
+ bool verbose = false );
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/src/libcmis/session.hxx
|
||||||
|
+++ b/src/libcmis/session.hxx
|
||||||
|
@@ -47,7 +47,7 @@
|
||||||
|
|
||||||
|
/** Get the current repository.
|
||||||
|
*/
|
||||||
|
- virtual RepositoryPtr getRepository( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual RepositoryPtr getRepository( ) = 0;
|
||||||
|
|
||||||
|
virtual std::vector< RepositoryPtr > getRepositories( ) = 0;
|
||||||
|
|
||||||
|
@@ -61,27 +61,27 @@
|
||||||
|
|
||||||
|
/** Get the Root folder of the repository
|
||||||
|
*/
|
||||||
|
- virtual FolderPtr getRootFolder() throw ( Exception )= 0;
|
||||||
|
+ virtual FolderPtr getRootFolder() = 0;
|
||||||
|
|
||||||
|
/** Get a CMIS object from its ID.
|
||||||
|
*/
|
||||||
|
- virtual ObjectPtr getObject( std::string id ) throw ( Exception ) = 0;
|
||||||
|
+ virtual ObjectPtr getObject( std::string id ) = 0;
|
||||||
|
|
||||||
|
/** Get a CMIS object from one of its path.
|
||||||
|
*/
|
||||||
|
- virtual ObjectPtr getObjectByPath( std::string path ) throw ( Exception ) = 0;
|
||||||
|
+ virtual ObjectPtr getObjectByPath( std::string path ) = 0;
|
||||||
|
|
||||||
|
/** Get a CMIS folder from its ID.
|
||||||
|
*/
|
||||||
|
- virtual libcmis::FolderPtr getFolder( std::string id ) throw ( Exception ) = 0;
|
||||||
|
+ virtual libcmis::FolderPtr getFolder( std::string id ) = 0;
|
||||||
|
|
||||||
|
/** Get a CMIS object type from its ID.
|
||||||
|
*/
|
||||||
|
- virtual ObjectTypePtr getType( std::string id ) throw ( Exception ) = 0;
|
||||||
|
+ virtual ObjectTypePtr getType( std::string id ) = 0;
|
||||||
|
|
||||||
|
/** Get all the CMIS base object types known by the server.
|
||||||
|
*/
|
||||||
|
- virtual std::vector< ObjectTypePtr > getBaseTypes( ) throw ( Exception ) = 0;
|
||||||
|
+ virtual std::vector< ObjectTypePtr > getBaseTypes( ) = 0;
|
||||||
|
|
||||||
|
/** Enable or disable the SSL certificate verification.
|
||||||
|
|
||||||
|
--- a/src/libcmis/xml-utils.cxx
|
||||||
|
+++ b/src/libcmis/xml-utils.cxx
|
||||||
|
@@ -361,7 +361,6 @@
|
||||||
|
string getXmlNodeAttributeValue( xmlNodePtr node,
|
||||||
|
const char* attributeName,
|
||||||
|
const char* defaultValue )
|
||||||
|
- throw ( Exception )
|
||||||
|
{
|
||||||
|
xmlChar* xmlStr = xmlGetProp( node, BAD_CAST( attributeName ) );
|
||||||
|
if ( xmlStr == NULL )
|
||||||
|
@@ -450,7 +449,7 @@
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
- bool parseBool( string boolStr ) throw ( Exception )
|
||||||
|
+ bool parseBool( string boolStr )
|
||||||
|
{
|
||||||
|
bool value = false;
|
||||||
|
if ( boolStr == "true" || boolStr == "1" )
|
||||||
|
@@ -462,7 +461,7 @@
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
- long parseInteger( string intStr ) throw ( Exception )
|
||||||
|
+ long parseInteger( string intStr )
|
||||||
|
{
|
||||||
|
char* end;
|
||||||
|
errno = 0;
|
||||||
|
@@ -481,7 +480,7 @@
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
- double parseDouble( string doubleStr ) throw ( Exception )
|
||||||
|
+ double parseDouble( string doubleStr )
|
||||||
|
{
|
||||||
|
char* end;
|
||||||
|
errno = 0;
|
||||||
|
--- a/src/libcmis/xml-utils.hxx
|
||||||
|
+++ b/src/libcmis/xml-utils.hxx
|
||||||
|
@@ -132,8 +132,7 @@
|
||||||
|
*/
|
||||||
|
std::string getXmlNodeAttributeValue( xmlNodePtr node,
|
||||||
|
const char* attributeName,
|
||||||
|
- const char* defaultValue = NULL )
|
||||||
|
- throw ( Exception );
|
||||||
|
+ const char* defaultValue = NULL );
|
||||||
|
|
||||||
|
/** Parse a xsd:dateTime string and return the corresponding UTC posix time.
|
||||||
|
*/
|
||||||
|
@@ -142,11 +141,11 @@
|
||||||
|
/// Write a UTC time object to an xsd:dateTime string
|
||||||
|
std::string writeDateTime( boost::posix_time::ptime time );
|
||||||
|
|
||||||
|
- bool parseBool( std::string str ) throw ( Exception );
|
||||||
|
+ bool parseBool( std::string str );
|
||||||
|
|
||||||
|
- long parseInteger( std::string str ) throw ( Exception );
|
||||||
|
+ long parseInteger( std::string str );
|
||||||
|
|
||||||
|
- double parseDouble( std::string str ) throw ( Exception );
|
||||||
|
+ double parseDouble( std::string str );
|
||||||
|
|
||||||
|
/** Trim spaces on the left and right of a string.
|
||||||
|
*/
|
@ -0,0 +1,23 @@
|
|||||||
|
From 72618e63433c7243e4d9e79a638f19a09402eecc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||||
|
Date: Tue, 21 Nov 2023 23:10:07 +0100
|
||||||
|
Subject: [PATCH] Fix build with libxml2-2.12 (missing include)
|
||||||
|
|
||||||
|
See also: https://github.com/tdf/libcmis/issues/51
|
||||||
|
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||||
|
---
|
||||||
|
inc/libcmis/xml-utils.hxx | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/inc/libcmis/xml-utils.hxx b/inc/libcmis/xml-utils.hxx
|
||||||
|
index 929385e1..9bd99aed 100644
|
||||||
|
--- a/inc/libcmis/xml-utils.hxx
|
||||||
|
+++ b/inc/libcmis/xml-utils.hxx
|
||||||
|
@@ -34,6 +34,7 @@
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <boost/date_time.hpp>
|
||||||
|
+#include <libxml/parser.h>
|
||||||
|
#include <libxml/tree.h>
|
||||||
|
#include <libxml/xpathInternals.h>
|
||||||
|
#include <libxml/xmlwriter.h>
|
@ -0,0 +1,350 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.6.5)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 6;
|
||||||
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
|
print(release_number + base_release_number - 1);
|
||||||
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
|
## END: Set by rpmautospec
|
||||||
|
|
||||||
|
%global apiversion 0.6
|
||||||
|
|
||||||
|
Name: libcmis
|
||||||
|
Version: 0.6.2
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: A C/C++ client library for CM interfaces
|
||||||
|
|
||||||
|
License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
|
||||||
|
URL: https://github.com/tdf/libcmis
|
||||||
|
Source: https://github.com/tdf/libcmis/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
||||||
|
# https://github.com/tdf/libcmis/issues/51
|
||||||
|
Patch: libxmis-0.6.2-libxml2-2.12.0-includes.patch
|
||||||
|
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pkgconfig(cppunit)
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: xmlto
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
|
%description
|
||||||
|
LibCMIS is a C/C++ client library for working with CM (content management)
|
||||||
|
interfaces. The primary supported interface (which gave the library its
|
||||||
|
name) is CMIS, which allows applications to connect to any ECM behaving
|
||||||
|
as a CMIS server (Alfresco or Nuxeo are examples of open source ones).
|
||||||
|
Another supported interface is Google Drive.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package tools
|
||||||
|
Summary: Command line tool to access CMIS
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description tools
|
||||||
|
The %{name}-tools package contains a tool for accessing CMIS from the
|
||||||
|
command line.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-silent-rules --disable-static --disable-werror \
|
||||||
|
DOCBOOK2MAN='xmlto man'
|
||||||
|
sed -i \
|
||||||
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
||||||
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
||||||
|
libtool
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
rm -f %{buildroot}/%{_libdir}/*.la
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%check
|
||||||
|
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||||
|
%make_build check
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS NEWS
|
||||||
|
%license COPYING.*
|
||||||
|
%{_libdir}/%{name}-%{apiversion}.so.*
|
||||||
|
%{_libdir}/%{name}-c-%{apiversion}.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%doc ChangeLog
|
||||||
|
%{_includedir}/%{name}-%{apiversion}
|
||||||
|
%{_includedir}/%{name}-c-%{apiversion}
|
||||||
|
%{_libdir}/%{name}-%{apiversion}.so
|
||||||
|
%{_libdir}/%{name}-c-%{apiversion}.so
|
||||||
|
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
||||||
|
%{_libdir}/pkgconfig/%{name}-c-%{apiversion}.pc
|
||||||
|
|
||||||
|
%files tools
|
||||||
|
%{_bindir}/cmis-client
|
||||||
|
%{_mandir}/man1/cmis-client.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Dec 22 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.6.2-6
|
||||||
|
- Rebuilt for MSVSphere 10
|
||||||
|
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 18 2024 Jonathan Wakely <jwakely@redhat.com> - 0.6.2-3
|
||||||
|
- Rebuilt for Boost 1.83
|
||||||
|
|
||||||
|
* Wed Nov 29 2023 David King <amigadave@amigadave.com> - 0.6.2-2
|
||||||
|
- Fix building against libxml2 2.12.0 and above
|
||||||
|
|
||||||
|
* Wed Nov 15 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.6.2-1
|
||||||
|
- 0.6.2
|
||||||
|
|
||||||
|
* Mon Nov 13 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.6.1-1
|
||||||
|
- 0.6.1
|
||||||
|
|
||||||
|
* Thu Oct 12 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.6.0-1
|
||||||
|
- 0.6.0
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-21
|
||||||
|
- Rebuilt for Boost 1.81
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 21 2022 David Tardon <dtardon@redhat.com> - 0.5.2-16
|
||||||
|
- Convert license to SPDX
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 0.5.2-14
|
||||||
|
- Rebuilt for Boost 1.78
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-12
|
||||||
|
- Rebuilt for Boost 1.76
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-10
|
||||||
|
- Rebuilt for removed libstdc++ symbol (#1937698)
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-8
|
||||||
|
- Rebuilt for Boost 1.75
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 0.5.2-6
|
||||||
|
- Use make macros
|
||||||
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
|
|
||||||
|
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-5
|
||||||
|
- Rebuilt for Boost 1.73
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 0.5.2-2
|
||||||
|
- Rebuilt for Boost 1.69
|
||||||
|
|
||||||
|
* Thu Dec 27 2018 David Tardon <dtardon@redhat.com> - 0.5.2-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Mon Dec 10 2018 Caolán McNamara <caolanm@redhat.com> - 0.5.1-14
|
||||||
|
- allow building with c++17
|
||||||
|
|
||||||
|
* Wed Sep 12 2018 Stephan Bergmann <sbergman@redhat.com> - 0.5.1-13
|
||||||
|
- fix Google Drive login
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-10
|
||||||
|
- Rebuilt for Boost 1.66
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-7
|
||||||
|
- Rebuilt for Boost 1.64
|
||||||
|
|
||||||
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 27 2017 David Tardon <dtardon@redhat.com> - 0.5.1-5
|
||||||
|
- Resolves: rhbz#1410197 work around infinite redirection loop
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-3
|
||||||
|
- Rebuilt for Boost 1.63
|
||||||
|
|
||||||
|
* Wed May 04 2016 David Tardon <dtardon@redhat.com> - 0.5.1-2
|
||||||
|
- fix Google Drive login
|
||||||
|
|
||||||
|
* Fri Mar 04 2016 David Tardon <dtardon@redhat.com> - 0.5.1-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Wed Mar 02 2016 David Tardon <dtardon@redhat.com> - 0.5.0-12
|
||||||
|
- add a bunch of fixes for problems found by coverity
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.5.0-10
|
||||||
|
- Rebuilt for Boost 1.60
|
||||||
|
|
||||||
|
* Wed Sep 02 2015 Jonathan Wakely <jwakely@redhat.com> 0.5.0-9
|
||||||
|
- Patched and rebuilt for Boost 1.59
|
||||||
|
|
||||||
|
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
||||||
|
|
||||||
|
* Fri Jul 24 2015 Adam Williamson <awilliam@redhat.com> - 0.5.0-7
|
||||||
|
- rebuild for Boost 1.58 (for f23, for real this time)
|
||||||
|
|
||||||
|
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.5.0-6
|
||||||
|
- rebuild for Boost 1.58
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Apr 12 2015 David Tardon <dtardon@redhat.com> - 0.5.0-4
|
||||||
|
- rebuild for yet another C++ ABI break
|
||||||
|
|
||||||
|
* Fri Feb 20 2015 David Tardon <dtardon@redhat.com> - 0.5.0-3
|
||||||
|
- rebuild for C++ stdlib ABI change in gcc5
|
||||||
|
|
||||||
|
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.5.0-2
|
||||||
|
- Rebuild for boost 1.57.0
|
||||||
|
|
||||||
|
* Sun Dec 21 2014 David Tardon <dtardon@redhat.com> - 0.5.0-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Fri Sep 05 2014 David Tardon <dtardon@redhat.com> - 0.4.1-8
|
||||||
|
- coverity: fix mismatching exceptions
|
||||||
|
|
||||||
|
* Thu Sep 04 2014 David Tardon <dtardon@redhat.com> - 0.4.1-7
|
||||||
|
- a few use-after-free fixes for the C wrapper
|
||||||
|
|
||||||
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.4.1-4
|
||||||
|
- Rebuild for boost 1.55.0
|
||||||
|
|
||||||
|
* Fri Feb 28 2014 David Tardon <dtardon@redhat.com> - 0.4.1-3
|
||||||
|
- Resolves: rhbz#1070691 test failing on big endians
|
||||||
|
|
||||||
|
* Thu Nov 21 2013 David Tardon <dtardon@redhat.com> - 0.4.1-2
|
||||||
|
- disable tests on arm
|
||||||
|
|
||||||
|
* Wed Nov 06 2013 David Tardon <dtardon@redhat.com> - 0.4.1-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.3.1-8
|
||||||
|
- Resolves: rhbz#1000819 pkgconfig file for libcmis-c is broken
|
||||||
|
|
||||||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 27 2013 pmachata@redhat.com - 0.3.1-6
|
||||||
|
- Rebuild for boost 1.54.0
|
||||||
|
|
||||||
|
* Wed Apr 24 2013 David Tardon <dtardon@redhat.com> - 0.3.1-5
|
||||||
|
- Resolves: rhbz#918079 libcmis::sha1() can return digests with fewer
|
||||||
|
than 40 hexadecimal digits
|
||||||
|
- Resolves: rhbz#918080 restrict redirection protocols
|
||||||
|
|
||||||
|
* Mon Apr 08 2013 David Tardon <dtardon@redhat.com> - 0.3.1-4
|
||||||
|
- Resolves: rhbz#918044 memory leaks on exception path in C wrapper
|
||||||
|
|
||||||
|
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.1-3
|
||||||
|
- Rebuild for Boost-1.53.0
|
||||||
|
|
||||||
|
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.1-2
|
||||||
|
- Rebuild for Boost-1.53.0
|
||||||
|
|
||||||
|
* Mon Feb 04 2013 David Tardon <dtardon@redhat.com> - 0.3.1-1
|
||||||
|
- new release
|
||||||
|
|
||||||
|
* Wed Dec 19 2012 David Tardon <dtardon@redhat.com> - 0.3.0-6
|
||||||
|
- use xmlto for generating man page
|
||||||
|
|
||||||
|
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-5
|
||||||
|
- another pointless bump
|
||||||
|
|
||||||
|
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-4
|
||||||
|
- another pointless rebuild
|
||||||
|
|
||||||
|
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-3
|
||||||
|
- pointless rebuild
|
||||||
|
|
||||||
|
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
|
||||||
|
- force rebuild
|
||||||
|
|
||||||
|
* Thu Dec 06 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Tue Nov 06 2012 Caolán McNamara <caolanm@redhat.com> - 0.2.3-4
|
||||||
|
- clarify license
|
||||||
|
|
||||||
|
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.2.3-3
|
||||||
|
- rebuilt for boost 1.50
|
||||||
|
|
||||||
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 28 2012 David Tardon <dtardon@redhat.com> - 0.2.3-1
|
||||||
|
- new upstream version
|
||||||
|
|
||||||
|
* Wed Jun 20 2012 David Tardon <dtardon@redhat.com> - 0.2.2-1
|
||||||
|
- latest upstream version
|
||||||
|
|
||||||
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
|
||||||
|
- Rebuilt for c++ ABI breakage
|
||||||
|
|
||||||
|
* Wed Dec 21 2011 David Tardon <dtardon@redhat.com> 0.1.0-1
|
||||||
|
- initial import
|
||||||
|
|
||||||
|
## END: Generated by rpmautospec
|
Loading…
Reference in new issue