File mingw64-loudmouth.spec of Package mingw64-loudmouth
#
# spec file for package mingw64-loudmouth
#
# 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-loudmouth
Version: 1.4.3
Release: 0
Summary: Jabber Client Library Written in C
License: LGPL-2.1-or-later
Group: Productivity/Networking/Other
Url: http://www.loudmouth-project.org/
Source0: http://ftp.imendio.com/pub/imendio/loudmouth/src/loudmouth-%{version}.tar.bz2
Patch0: loudmouth-1.4.3-mingw.patch
Patch1: loudmouth-1.4.3-glib.patch
Patch2: loudmouth-1.4.3-gnutls.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk-doc
BuildRequires: mingw64-libgnutls-devel
BuildRequires: sgml-skel
BuildRequires: vim
%_mingw64_package_header_debug
BuildArch: noarch
%description
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It is designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%package -n mingw64-libloudmouth-1-0
Summary: Jabber Client Library Written in C
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libloudmouth-1-0
Loudmouth is a lightweight and easy-to-use C library for programming
with the Jabber protocol. It is designed to be easy to get started with
and yet extensible to let you do anything the Jabber protocol allows.
%package devel
Summary: Jabber Client Library Written in C
Group: Development/Libraries/C and C++
%description devel
This package includes the loudmouth libraries (MinGW Win32 version). To link a program
with libloudmouth, you will have to add -ljpeg and -lz to include the necessary
libjpeg and libz in the linking process.
%_mingw64_debug_package
%prep
%setup -q -n loudmouth-%{version}
%patch -P 0 -p1 -b .mingw
%patch -P 1 -p1 -b .glib
%patch -P 2 -p1 -b .gnutls
%build
NOCONFIGURE=indeed AUTOMAKE=automake gnome-autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} --enable-shared --disable-static --enable-gtk-doc
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libloudmouth-1-0
%defattr(-,root,root)
%{_mingw64_bindir}/libloudmouth-1-0.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/loudmouth-1.0/loudmouth/*.h
%{_mingw64_libdir}/libloudmouth-1.dll.a
%{_mingw64_libdir}/pkgconfig/loudmouth-1.0.pc
%{_mingw64_datadir}/gtk-doc/html/loudmouth
%changelog