From c57b40071f25848f8fad33549379b8faca6e4e88 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:59:29 +0100 Subject: [PATCH] added glib >= 2.32 patch [release 1.4.3-2mamba;Sun Aug 19 2012] --- README.md | 2 + libloudmouth-1.4.3-glib-2.32.patch | 13 ++++++ libloudmouth.spec | 73 ++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 libloudmouth-1.4.3-glib-2.32.patch create mode 100644 libloudmouth.spec diff --git a/README.md b/README.md index 48006a9..a20f5bf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libloudmouth +Loudmouth is a lightweight and easy-to-use C library for programming with the XMPP protocol. It's designed to be easy to get started with and yet extensible to let you do anything the XMPP protocol allows. + diff --git a/libloudmouth-1.4.3-glib-2.32.patch b/libloudmouth-1.4.3-glib-2.32.patch new file mode 100644 index 0000000..87fc170 --- /dev/null +++ b/libloudmouth-1.4.3-glib-2.32.patch @@ -0,0 +1,13 @@ +Index: loudmouth-1.4.3/loudmouth/lm-error.c +=================================================================== +--- loudmouth-1.4.3.orig/loudmouth/lm-error.c ++++ loudmouth-1.4.3/loudmouth/lm-error.c +@@ -19,7 +19,7 @@ + */ + + #include +-#include ++#include + #include "lm-error.h" + + /** diff --git a/libloudmouth.spec b/libloudmouth.spec new file mode 100644 index 0000000..69a4a60 --- /dev/null +++ b/libloudmouth.spec @@ -0,0 +1,73 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: libloudmouth +Version: 1.4.3 +Release: 2mamba +Summary: An asynchronous XMPP library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://groups.google.com/group/loudmouth-dev +Source: http://ftp.gnome.org/pub/GNOME/sources/loudmouth/%{majver}/loudmouth-%{version}.tar.bz2 +Patch0: %{name}-1.4.3-glib-2.32.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcrypt-devel +BuildRequires: libglib-devel +BuildRequires: libgnutls-devel +BuildRequires: libgpg-error-devel +BuildRequires: libidn-devel +BuildRequires: libtasn1-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Loudmouth is a lightweight and easy-to-use C library for programming with the XMPP protocol. It's designed to be easy to get started with and yet extensible to let you do anything the XMPP protocol allows. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Loudmouth is a lightweight and easy-to-use C library for programming with the XMPP protocol. It's designed to be easy to get started with and yet extensible to let you do anything the XMPP protocol allows. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n loudmouth-%{version} +%patch0 -p1 + +%build +%configure --disable-debug +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libloudmouth-1.so.* +%doc AUTHORS COPYING ChangeLog NEWS README README.WIN32 + +%files devel +%defattr(-,root,root) +%{_includedir}/loudmouth-1.0/loudmouth/*.h +%{_libdir}/libloudmouth-1.a +%{_libdir}/libloudmouth-1.la +%{_libdir}/libloudmouth-1.so +%{_libdir}/pkgconfig/*.pc +%dir %{_datadir}/gtk-doc/html/loudmouth +%{_datadir}/gtk-doc/html/loudmouth/* + +%changelog +* Sun Aug 19 2012 Silvan Calarco 1.4.3-2mamba +- added glib >= 2.32 patch + +* Thu Jan 08 2009 Silvan Calarco 1.4.3-1mamba +- package created by autospec