File mingw64-cmis-client.spec of Package mingw64-cmis-client
#
# spec file for package mingw64-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: mingw64-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: mingw64-boost-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libcppunit-devel
BuildRequires: mingw64-libcurl-devel
BuildRequires: mingw64-libxml2-devel
%_mingw64_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 mingw64-libcmis-0_5-5
Summary: Library for accessing CMIS-enabled servers
Group: System/Libraries
Obsoletes: mingw64-libcmis
Provides: mingw64-libcmis
%description -n mingw64-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 mingw64-libcmis-c-0_5-5
Summary: C Wrapper for libcmis, a library for accessing CMIS-enabled servers
Group: System/Libraries
Obsoletes: mingw64-libcmis-c
Provides: mingw64-libcmis-c
%description -n mingw64-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 mingw64-libcmis-devel
Summary: Libcmis development files
Group: Development/Libraries/C and C++
%description -n mingw64-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 mingw64-libcmis-c-devel
Summary: Libcmis-c development files
Group: Development/Libraries/C and C++
%description -n mingw64-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.
%_mingw64_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'" >>%{_mingw64_cache}
MINGW64_CXXFLAGS="%_mingw64_cxxflags -std=c++11"
%{_mingw64_configure} \
--with-boost=%{_mingw64_prefix} \
--enable-shared --disable-static \
--disable-werror
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/cmis-client.exe
%{_mingw64_mandir}/man1/cmis-client.1*
%files -n mingw64-libcmis-0_5-5
%defattr(-,root,root)
%{_mingw64_bindir}/libcmis-0.5-5.dll
%files -n mingw64-libcmis-c-0_5-5
%defattr(-,root,root)
%{_mingw64_bindir}/libcmis-c-0.5-5.dll
%files -n mingw64-libcmis-devel
%defattr(-,root,root)
%{_mingw64_includedir}/libcmis-0.5/libcmis/*
%{_mingw64_libdir}/libcmis-0.5.dll.a
%{_mingw64_libdir}/pkgconfig/libcmis-0.5.pc
%files -n mingw64-libcmis-c-devel
%defattr(-,root,root)
%{_mingw64_includedir}/libcmis-c-0.5/libcmis-c/*
%{_mingw64_libdir}/libcmis-c-0.5.dll.a
%{_mingw64_libdir}/pkgconfig/libcmis-c-0.5.pc
%changelog