summaryrefslogtreecommitdiff
path: root/packaging/libsoup.spec
blob: 1c657c24d69a122b587392091b3f7d518c1247c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
%bcond_with gnome

Name:           libsoup
Version:        2.46.0
Release:        0
License:        LGPL-2.1+
Summary:        HTTP client/server library for GNOME
Url:            http://www.gnome.org
Group:          System/Libraries
Source:         http://download.gnome.org/sources/libsoup/2.41/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
Source1001: 	libsoup.manifest
Requires:       glib-networking
BuildRequires:  gettext-tools
BuildRequires:  glib-networking
%if %{with gnome}
BuildRequires:  gobject-introspection-devel
BuildRequires:  pkgconfig(gnome-keyring-1)
%endif
BuildRequires:  intltool >= 0.35.0
BuildRequires:  sqlite3-devel
BuildRequires:  pkgconfig(glib-2.0) >= 2.35.0
BuildRequires:  gnome-common
BuildRequires:  pkgconfig(libxml-2.0)


%description
Libsoup is an HTTP client/server library for GNOME. It uses GObjects
and the glib main loop, to integrate well with GNOME applications.

Features:
  * Both asynchronous (GMainLoop and callback-based) and synchronous APIs
  * Automatically caches connections
  * SSL Support using GnuTLS
  * Proxy support, including authentication and SSL tunneling
  * Client support for Digest, NTLM, and Basic authentication
  * Server support for Digest and Basic authentication
  * XML-RPC support

%package -n typelib-Soup
Summary:        HTTP client/server library for GNOME -- Introspection bindings
Group:          System/Libraries

%description -n typelib-Soup
Libsoup is an HTTP client/server library for GNOME. It uses GObjects
and the glib main loop, to integrate well with GNOME applications.

This package provides the GObject Introspection bindings for libsoup.

%package devel
Summary:        HTTP client/server library for GNOME - Development Files
Group:          Social & Content/GNOME
Requires:       %{name} = %{version}
%if %{with gnome}
Requires:       typelib-Soup = %{version}
%endif

%description devel
Libsoup is an HTTP client/server library for GNOME. It uses GObjects
and the glib main loop, to integrate well with GNOME applications.

Features:
  * Both asynchronous (GMainLoop and callback-based) and synchronous APIs
  * Automatically caches connections
  * SSL Support using GnuTLS
  * Proxy support, including authentication and SSL tunneling
  * Client support for Digest, NTLM, and Basic authentication
  * Server support for Digest and Basic authentication
  * XML-RPC support

%prep
%setup -q
cp %{SOURCE1001} .

%build
chmod +x autogen.sh
%autogen\
%if %{with gnome}
    --with-gnome \
    --enable-introspection \
%else
    --without-gnome \
    --enable-sqlite=yes \
    --disable-tls-check \
%endif
    --disable-static 
make %{?_smp_mflags}

%install
%make_install

%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%lang_package

%files
%manifest %{name}.manifest
%defattr(-, root, root)
%license COPYING
%{_libdir}/*.so.*

%if %{with gnome}
%files -n typelib-Soup
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Soup-2.4.typelib
%{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib
%endif

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/libsoup-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if %{with gnome}
%{_datadir}/gir-1.0/Soup-2.4.gir
%{_datadir}/gir-1.0/SoupGNOME-2.4.gir
%{_includedir}/libsoup-gnome-2.4
%endif