File mingw64-libgadu.spec of Package mingw64-libgadu
#
# spec file for package mingw64-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: mingw64-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: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libgnutls-devel >= 2.10.0
BuildRequires: mingw64-protobuf-c-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: protobuf-c
%_mingw64_package_header_debug
BuildArch: noarch
%description
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.
%package -n mingw64-libgadu3
Summary: Library for handling of Gadu-Gadu Instant Messaging
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-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
%_mingw64_debug_package
%prep
%setup -q -n libgadu-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
--enable-shared --disable-static --with-c99-vsnprintf
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libgadu3
%defattr(-,root,root)
%{_mingw64_bindir}/libgadu-3.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libgadu.h
%{_mingw64_libdir}/libgadu.dll.a
%{_mingw64_libdir}/libgadu.def
%{_mingw64_libdir}/pkgconfig/libgadu.pc
%changelog