File mingw32-cmis-client.spec of Package mingw32-cmis-client

#
# spec file for package mingw32-cmis-client
#
# Copyright (c) 2014 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-cmis-client
Version:        0.5.0
Release:        0
Summary:        Sample CMIS client
License:        MPL-1.1 or GPL-2.0-or-later or LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://sf.net/projects/libcmis/
Source:         http://downloads.sf.net/project/libcmis/libcmis-%{version}.tar.gz
Patch0:         libcmis-0.5.0-boost.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  docbook2X
BuildRequires:  libtool
BuildRequires:  libxslt
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-libcppunit-devel
BuildRequires:  mingw32-libcurl-devel
BuildRequires:  mingw32-libxml2-devel
%_mingw32_package_header_debug
BuildArch:      noarch
%if 0%{?suse_version} > 1210
BuildRequires:  libxslt-tools
%endif

%description
Sample client to access CMIS-enabled repositories using libcmis.

%package -n mingw32-libcmis-0_5-5
Summary:        Library for accessing CMIS-enabled servers
Group:          System/Libraries
Obsoletes:      mingw32-libcmis
Provides:       mingw32-libcmis

%description -n mingw32-libcmis-0_5-5
LibCMIS is a C++ client library for the CMIS interface.
This allows C++ applications to connect to any CMIS-enabled repositories.

%package -n mingw32-libcmis-c-0_5-5
Summary:        C Wrapper for libcmis, a library for accessing CMIS-enabled servers
Group:          System/Libraries
Obsoletes:      mingw32-libcmis-c
Provides:       mingw32-libcmis-c

%description -n mingw32-libcmis-c-0_5-5
libcmis-c is a C client library for the CMIS interface.
This allows C applications to connect to any CMIS-enabled repositories.
It is only a wrapper for its C++ sister libcmis.

%package -n mingw32-libcmis-devel
Summary:        Libcmis development files
Group:          Development/Libraries/C and C++

%description -n mingw32-libcmis-devel
Development files for libcmis. LibCMIS is a C++ client library for the CMIS interface.
This allows C++ applications to connect to any CMIS-enabled repositories.

%package -n mingw32-libcmis-c-devel
Summary:        Libcmis-c development files
Group:          Development/Libraries/C and C++

%description -n mingw32-libcmis-c-devel
Development files for libcmis-c. Libcmis-c is a C client library for the CMIS interface.
This allows C applications to connect to any CMIS-enabled repositories.
It is only a wrapper for its C++ sister libcmis.

%_mingw32_debug_package

%prep
%setup -q -n libcmis-%{version}
%patch -P 0 -p1

%build
libtoolize --force --copy
aclocal -I m4
automake -a -c --foreign
autoconf
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
MINGW32_CXXFLAGS="%_mingw32_cxxflags -std=c++11"
%{_mingw32_configure} \
	--with-boost=%{_mingw32_prefix} \
	--enable-shared --disable-static \
	--disable-werror
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files
%defattr(-,root,root)
%{_mingw32_bindir}/cmis-client.exe
%{_mingw32_mandir}/man1/cmis-client.1*

%files -n mingw32-libcmis-0_5-5
%defattr(-,root,root)
%{_mingw32_bindir}/libcmis-0.5-5.dll

%files -n mingw32-libcmis-c-0_5-5
%defattr(-,root,root)
%{_mingw32_bindir}/libcmis-c-0.5-5.dll

%files -n mingw32-libcmis-devel
%defattr(-,root,root)
%{_mingw32_includedir}/libcmis-0.5/libcmis/*
%{_mingw32_libdir}/libcmis-0.5.dll.a
%{_mingw32_libdir}/pkgconfig/libcmis-0.5.pc

%files -n mingw32-libcmis-c-devel
%defattr(-,root,root)
%{_mingw32_includedir}/libcmis-c-0.5/libcmis-c/*
%{_mingw32_libdir}/libcmis-c-0.5.dll.a
%{_mingw32_libdir}/pkgconfig/libcmis-c-0.5.pc

%changelog
openSUSE Build Service is sponsored by