1 %define ver @VERSION@ |
|
2 %define name @PACKAGE@ |
|
3 |
|
4 %define with_ssl 1 |
|
5 |
|
6 Summary: Loadmouth is a Jabber client written in C. |
|
7 Name: %name |
|
8 Version: %ver |
|
9 Release: imendio.2 |
|
10 Vendor: Imendio |
|
11 URL: http://www.imendio.com/projects/loudmouth |
|
12 Source0: %{name}-%{ver}.tar.gz |
|
13 License: LGPL |
|
14 Group: System Environment/Libraries |
|
15 BuildRoot: %{_tmppath}/%{name}-root |
|
16 Requires: glib2 >= @GLIB2_REQUIRED@ |
|
17 BuildRequires: glib2-devel >= @GLIB2_REQUIRED@ |
|
18 BuildRequires: gtk-doc >= 0.10 |
|
19 |
|
20 %if %{with_ssl} |
|
21 Requires: gnutls >= @GNUTLS_REQUIRED@ |
|
22 Requires: libtasn1 >= @LIBTASN1_REQUIRED@ |
|
23 BuildRequires: gnutls-devel >= @GNUTLS_REQUIRED@ |
|
24 BuildRequires: libtasn1-devel >= @LIBTASN1_REQUIRED@ |
|
25 %endif |
|
26 |
|
27 %description |
|
28 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. |
|
29 |
|
30 %package devel |
|
31 Summary: Development files for RoadRunner.. |
|
32 Group: Development/Libraries |
|
33 Requires: %name = %{PACKAGE_VERSION} |
|
34 Requires: glib2-devel >= @GLIB2_REQUIRED@ |
|
35 |
|
36 %if %{with_ssl} |
|
37 Requires: gnutls-devel >= @GNUTLS_REQUIRED@ |
|
38 %endif |
|
39 |
|
40 %description devel |
|
41 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. |
|
42 |
|
43 %prep |
|
44 %setup -q |
|
45 |
|
46 %build |
|
47 |
|
48 %configure --enable-gtk-doc \ |
|
49 %if %{with_ssl} |
|
50 --with-ssl=yes |
|
51 %else |
|
52 --with-ssl=no |
|
53 %endif |
|
54 |
|
55 make |
|
56 |
|
57 %install |
|
58 rm -rf %{buildroot} |
|
59 %makeinstall |
|
60 |
|
61 # remove, not shipped |
|
62 rm -f $RPM_BUILD_ROOT%{_libdir}/libloudmouth-1.la |
|
63 |
|
64 %clean |
|
65 rm -rf $RPM_BUILD_ROOT |
|
66 |
|
67 %files |
|
68 %defattr(-,root,root) |
|
69 %doc ChangeLog NEWS README COPYING |
|
70 %{_libdir}/libloudmouth*.so.* |
|
71 |
|
72 %files devel |
|
73 %defattr(-,root,root) |
|
74 %{_libdir}/libloudmouth*.so |
|
75 %{_libdir}/libloudmouth*.a |
|
76 %{_libdir}/pkgconfig/* |
|
77 %{_prefix}/include/loudmouth-1.0 |
|
78 %{_datadir}/gtk-doc/html/loudmouth |
|
79 |
|
80 %changelog |
|
81 * Wed Oct 01 2003 Mikael Hallendal <micke@imendio.com> |
|
82 - Added with_ssl to be able to easily turn of SSL dependency. |
|
83 |
|
84 * Wed Jun 25 2003 Mikael Hallendal <micke@imendio.com> |
|
85 - Updated to reflect move of project. |
|
86 |
|
87 * Sat Mar 29 2003 Mikael Hallendal <micke@codefactory.se> |
|
88 - Initial build |
|