File mingw32-libgadu.spec of Package mingw32-libgadu

#
# spec file for package mingw32-libgadu
#
# 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-libgadu
Version:        1.12.1
Release:        0
Summary:        Library for handling of Gadu-Gadu Instant Messaging
License:        LGPL-2.1-only
Group:          Development/Libraries/C and C++
Url:            http://toxygen.net/libgadu/
Source0:        http://github.com/wojtekka/libgadu/releases/download/%{version}/libgadu-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  doxygen
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-libgnutls-devel >= 2.10.0
BuildRequires:  mingw32-protobuf-c-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  protobuf-c
%_mingw32_package_header_debug
BuildArch:      noarch

%description
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.

%package -n mingw32-libgadu3
Summary:        Library for handling of Gadu-Gadu Instant Messaging
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw32-libgadu3
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.

%package devel
Summary:        Library for handling of Gadu-Gadu Instant Messaging (development files)
Group:          Development/Libraries/C and C++

%description devel
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.

This package contains all necessary include files and libraries needed
to develop applications that require these.

%lang_package

%_mingw32_debug_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
	--enable-shared --disable-static --with-c99-vsnprintf
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

%files -n mingw32-libgadu3
%defattr(-,root,root)
%{_mingw32_bindir}/libgadu-3.dll

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/libgadu.h
%{_mingw32_libdir}/libgadu.dll.a
%{_mingw32_libdir}/libgadu.def
%{_mingw32_libdir}/pkgconfig/libgadu.pc

%changelog
openSUSE Build Service is sponsored by