File mingw64-libgloox.spec of Package mingw64-libgloox

#
# spec file for package mingw64-libgloox
#
# 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/
#


%define _basename gloox
Name:           mingw64-%{_basename}
Version:        1.0
Release:        0
#!BuildIgnore: post-build-checks
Summary:        An extensible library for the development of XMPP clients and components
License:        GPL-2.0-only
Group:          Development/Libraries/C and C++
Url:            http://camaya.net/gloox/
Source0:        %{_basename}-%{version}.tar.bz2
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libgnutls-devel
BuildRequires:  mingw64-libidn-devel
BuildRequires:  mingw64-libopenssl-devel
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
gloox is Jabber/XMPP client library, written in ANSI C++. It facilitates
writing clients and allows for integration of Jabber/XMPP functionality
into existing applications.

%package -n mingw64-libgloox8
Summary:        An extensible library for the development of XMPP clients and components
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libgloox8
gloox is Jabber/XMPP client library, written in ANSI C++. It facilitates
writing clients and allows for integration of Jabber/XMPP functionality
into existing applications.

%package devel
Summary:        A stable, extensible library for the development of XMPP clients and components
Group:          Development/Libraries/C and C++

%description devel
gloox is Jabber/XMPP client library, written in ANSI C++. It facilitates
writing clients and allows for integration of Jabber/XMPP functionality
into existing applications.

%_mingw64_debug_package

%prep
%setup -q -n %{_basename}-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
    --without-openssl \
    --with-gnutls \
    --without-libidn \
    --with-zlib \
    --without-examples \
    --without-tests \
    --disable-static \
    --with-schannel \
    --enable-shared

%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

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

%files -n mingw64-libgloox8
%defattr(-,root,root,-)
%{_mingw64_bindir}/libgloox-8.dll

%files devel
%defattr(-,root,root,-)
%{_mingw64_bindir}/gloox-config
%{_mingw64_libdir}/libgloox.dll.a
%{_mingw64_libdir}/pkgconfig/gloox.pc
%{_mingw64_includedir}/gloox/

%changelog
openSUSE Build Service is sponsored by