loudmouth.spec.in
author Mikael Hallendal <micke@imendio.com>
Sat, 25 Oct 2008 16:21:50 +0200
changeset 545 58954d98a7f9
parent 84 7ae7b690aa89
permissions -rw-r--r--
Removed the async_connect_waiting and blocking states from LmConnection. As a first step of cleaning up the network code underlying LmConnection I want to make the blocking and non-blocking calls be as similar as possible. The socket should be able to connect in asynchronous manner even if we want to block on the open call since the mainloop iteration will handle the "block" for lm_connection_open_and_block.

%define ver @VERSION@
%define name @PACKAGE@

%define with_ssl 1

Summary: Loadmouth is a Jabber client written in C.
Name: %name
Version: %ver
Release: imendio.2
Vendor: Imendio
URL: http://www.imendio.com/projects/loudmouth
Source0: %{name}-%{ver}.tar.gz
License: LGPL
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-root
Requires: glib2 >= @GLIB2_REQUIRED@
BuildRequires: glib2-devel >= @GLIB2_REQUIRED@
BuildRequires: gtk-doc >= 0.10

%if %{with_ssl}
Requires: gnutls >= @GNUTLS_REQUIRED@
Requires: libtasn1 >= @LIBTASN1_REQUIRED@
BuildRequires: gnutls-devel >= @GNUTLS_REQUIRED@
BuildRequires: libtasn1-devel >= @LIBTASN1_REQUIRED@
%endif

%description
Loudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol. It's designed to be easy to get started with and yet extensible to let you do anything the Jabber protocol allows. 

%package devel
Summary:	Development files for RoadRunner..
Group: 		Development/Libraries
Requires:	%name = %{PACKAGE_VERSION}
Requires:	glib2-devel >= @GLIB2_REQUIRED@

%if %{with_ssl}
Requires:       gnutls-devel >= @GNUTLS_REQUIRED@
%endif

%description devel
Loudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol. It's designed to be easy to get started with and yet extensible to let you do anything the Jabber protocol allows. 

%prep
%setup -q

%build

%configure --enable-gtk-doc \
%if %{with_ssl}
           --with-ssl=yes
%else
           --with-ssl=no
%endif
	  
make

%install
rm -rf %{buildroot}
%makeinstall 

# remove, not shipped
rm -f $RPM_BUILD_ROOT%{_libdir}/libloudmouth-1.la

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog NEWS README COPYING
%{_libdir}/libloudmouth*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libloudmouth*.so
%{_libdir}/libloudmouth*.a
%{_libdir}/pkgconfig/*
%{_prefix}/include/loudmouth-1.0
%{_datadir}/gtk-doc/html/loudmouth

%changelog
* Wed Oct 01 2003 Mikael Hallendal <micke@imendio.com>
- Added with_ssl to be able to easily turn of SSL dependency.
  
* Wed Jun 25 2003 Mikael Hallendal <micke@imendio.com>
- Updated to reflect move of project.

* Sat Mar 29 2003 Mikael Hallendal <micke@codefactory.se>
- Initial build