%bcond_with gnome
+%bcond_with introspection
Name: libsoup
Version: 2.46.0
Requires: glib-networking
BuildRequires: gettext-tools
BuildRequires: glib-networking
-%if %{with gnome}
+%if %{with introspection}
BuildRequires: gobject-introspection-devel
+%endif
+%if %{with gnome}
BuildRequires: pkgconfig(gnome-keyring-1)
%endif
BuildRequires: intltool >= 0.35.0
%build
chmod +x autogen.sh
%autogen\
+%if %{with introspection}
+ --enable-introspection \
+%endif
%if %{with gnome}
--with-gnome \
- --enable-introspection \
%else
--without-gnome \
--enable-sqlite=yes \
%license COPYING
%{_libdir}/*.so.*
-%if %{with gnome}
+%if %{with introspection}
%files -n typelib-Soup
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Soup-2.4.typelib
+%if %{with gnome}
%{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib
%endif
+%endif
%files devel
%manifest %{name}.manifest
%{_includedir}/libsoup-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
-%if %{with gnome}
+%if %{with introspection}
%{_datadir}/gir-1.0/Soup-2.4.gir
+%if %{with gnome}
%{_datadir}/gir-1.0/SoupGNOME-2.4.gir
%{_includedir}/libsoup-gnome-2.4
%endif
+%endif