SHA256
1
0
forked from pool/libsoup
libsoup/libsoup.spec

146 lines
4.4 KiB
RPMSpec

#
# spec file for package libsoup
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libsoup
Summary: HTTP client/server library for GNOME
Version: 2.35.92
Release: 1
License: LGPLv2.1+
Group: Development/Libraries/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/libsoup/2.35/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
BuildRequires: glib2-devel
BuildRequires: glib-networking
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: libgnome-keyring-devel
BuildRequires: libxml2-devel
BuildRequires: sqlite3-devel
# We do not need these dependencies needed only for tests.
#BuildRequires: apache2-mod_php5 php5-xmlrpc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 2_4-1
License: LGPLv2.1+
Summary: HTTP client/server library for GNOME
Group: Development/Libraries/GNOME
Requires: glib-networking >= 2.27.90
# For NTLM single sign on
Suggests: samba-winbind
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
# bug437293
%ifarch ppc64
Obsoletes: libsoup-64bit
%endif
#
%description 2_4-1
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 devel
License: LGPLv2.1+
Summary: HTTP client/server library for GNOME - Development Files
Group: Development/Libraries/GNOME
Requires: %{name} = %{version} glib2-devel libgnutls-devel libgcrypt-devel libgpg-error-devel libxml2-devel
Provides: %{name}-doc = %{version}
Obsoletes: %{name}-doc < %{version}
# bug437293
%ifarch ppc64
Obsoletes: libsoup-devel-64bit
%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
%build
%configure\
--disable-static \
--enable-introspection
make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a
%clean
rm -rf $RPM_BUILD_ROOT
%post 2_4-1 -p /sbin/ldconfig
%postun 2_4-1 -p /sbin/ldconfig
%files 2_4-1
%defattr(-, root, root)
%doc README COPYING NEWS AUTHORS
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/Soup-2.4.typelib
%{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/libsoup-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libsoup-gnome-2.4
%{_datadir}/gtk-doc/html/libsoup-2.4
%{_datadir}/gir-1.0/Soup-2.4.gir
%{_datadir}/gir-1.0/SoupGNOME-2.4.gir
%changelog