+%bcond_with introspection
+
%define baseline 3.12
%define USE_EVOLDAP 0
-%define with_introspection 1
%define enable_goa no
%define enable_uoa no
%define enable_gtk no
%if %{?enable_goa} != no
BuildRequires: pkgconfig(goa-1.0) >= 3.2
%endif
+%if %{with introspection}
BuildRequires: pkgconfig(gobject-introspection-1.0)
+%endif
%if %{?enable_gtk} != no
BuildRequires: pkgconfig(gtk+-3.0)
%endif
This package contains a shared system library to access address books.
-%if %{?with_introspection}
+%if %{with introspection}
%package -n typelib-EBookContacts
Summary: Evolution Data Server - Address Book Backend Library, Introspection bindings
This package contains a shared system library for address book backends.
-%if %{?with_introspection}
+%if %{with introspection}
%package -n typelib-EBook
Summary: Evolution Data Server - Address Book Backend Library, Introspection bindings
This package contains a shared system library.
-%if %{?with_introspection}
+%if %{with introspection}
%package -n typelib-EDataServer
Summary: Evolution Data Server - Utilities Library, Introspection bindings
Requires: libedata-book = %{version}
Requires: libedata-cal = %{version}
Requires: libedataserver = %{version}
-%if %{?with_introspection}
+%if %{with introspection}
Requires: typelib-EBook = %{version}
Requires: typelib-EDataServer = %{version}
%endif
%{_libdir}/libebook-1.2.so.%{so_ebook}*
-%if %{?with_introspection}
+%if %{with introspection}
%files -n typelib-EBook
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EBook-1.2.typelib
%{_libdir}/libebook-contacts-1.2.so.0*
-%if %{?with_introspection}
+%if %{with introspection}
%files -n typelib-EBookContacts
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EBookContacts-1.2.typelib
%{_libdir}/libedataserver-1.2.so.%{so_edataserver}*
-%if %{?with_introspection}
+%if %{with introspection}
%files -n typelib-EDataServer
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EDataServer-1.2.typelib
%{_includedir}/evolution-data-server/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
-%if %{?with_introspection}
+%if %{with introspection}
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi