Blob Blame History Raw
Name:           gloox
Epoch:          1
Version:        1.0.13
Release:        1%{?dist}
Summary:        A rock-solid, full-featured Jabber/XMPP client C++ library
License:        GPLv3
URL:            http://camaya.net/gloox
Source0:        http://camaya.net/download/%{name}-%{version}.tar.bz2
BuildRequires:  gnutls-devel >= 1.2
BuildRequires:  libgcrypt-devel
BuildRequires:  libidn-devel >= 0.5
BuildRequires:  zlib-devel >= 1.2.3

%description
gloox is a rock-solid, full-featured Jabber/XMPP client library written in
C++. It makes writing spec-compliant clients easy and allows for hassle-free
integration of Jabber/XMPP functionality into existing applications.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires:       gnutls-devel%{?_isa}
Requires:       libidn-devel%{?_isa}

%description    devel
This package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -n %{name}-%{version}%{?prerel}
# recode to UTF
mv -f AUTHORS AUTHORS.old
iconv -f iso8859-1 -t UTF-8 AUTHORS.old > AUTHORS

%build
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -name '*.la' -delete -print

%check
make check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%doc AUTHORS ChangeLog LICENSE
%{_libdir}/libgloox.so.*

%files devel
%doc TODO UPGRADING
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libgloox.so

%changelog
* Thu Feb 05 2015 Christopher Meng <rpm@cicku.me> - 1:1.0.13-1
- Update to 1.0.13

* Sun Dec 1 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 1:1.0.9-1
- Update to 1.0.9 bz#1034994