fixed packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 27 Nov 2012 03:27:25 +0000 (19:27 -0800)
committerdavid <david@david-desktop.(none)>
Fri, 21 Nov 2014 01:41:00 +0000 (09:41 +0800)
packaging/baselibs.conf [new file with mode: 0644]
packaging/libsoup.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..2469eef
--- /dev/null
@@ -0,0 +1,5 @@
+libsoup
+  obsoletes "libsoup-<targettype>"
+libsoup-devel
+ requires -libsoup-<targettype>
+ requires "libsoup-<targettype> = <version>"
diff --git a/packaging/libsoup.spec b/packaging/libsoup.spec
new file mode 100644 (file)
index 0000000..b7aaa6d
--- /dev/null
@@ -0,0 +1,99 @@
+Name:           libsoup
+Version:        2.40.1
+Release:        0
+License:        LGPL-2.1+
+Summary:        HTTP client/server library for GNOME
+Url:            http://www.gnome.org
+Group:          Development/Libraries/GNOME
+Source:         http://download.gnome.org/sources/libsoup/2.40/%{name}-%{version}.tar.xz
+Source99:       baselibs.conf
+BuildRequires:  gettext-tools
+BuildRequires:  glib-networking
+BuildRequires:  gobject-introspection-devel
+BuildRequires:  gtk-doc
+BuildRequires:  intltool >= 0.35.0
+BuildRequires:  sqlite3-devel
+BuildRequires:  pkgconfig(glib-2.0) >= 2.31.7
+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:          Development/Libraries/GNOME
+Requires:       %{name} = %{version}
+Requires:       typelib-Soup = %{version}
+
+%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 %{?_smp_mflags}
+
+%install
+%make_install
+
+%find_lang %{name}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%lang_package
+
+%files
+%defattr(-, root, root)
+%license COPYING
+%{_libdir}/*.so.*
+
+%files -n typelib-Soup
+%defattr(-,root,root)
+%{_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