diff --git a/glib2.changes b/glib2.changes index df2019b..172f04f 100644 --- a/glib2.changes +++ b/glib2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 1 11:05:30 EDT 2010 - vuntz@opensuse.org + +- Add a with_systemtap define to easily switch between building + with and without systemtap support, and set it to 0 for now: it + creates a build loop. + ------------------------------------------------------------------- Wed Oct 13 11:11:20 CEST 2010 - vuntz@opensuse.org diff --git a/glib2.spec b/glib2.spec index 72646b1..551ec2a 100644 --- a/glib2.spec +++ b/glib2.spec @@ -17,6 +17,7 @@ # norootforbuild +%define with_systemtap 0 Name: glib2 %define _name glib @@ -52,11 +53,13 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libselinux-devel BuildRequires: pkg-config +%if 0%{?with_systemtap} # systemtap-sdt-devel on openSUSE 11.3 was missing a Requires: python. %if %{?suse_version} <= 1130 BuildRequires: python %endif BuildRequires: systemtap-sdt-devel +%endif BuildRequires: translation-update-upstream BuildRequires: zlib-devel BuildRequires: pkgconfig(libpcre) @@ -253,7 +256,9 @@ fi --enable-static \ --enable-selinux \ --with-pcre=system \ +%if 0%{?with_systemtap} --enable-systemtap \ +%endif --with-runtime-libdir=../../%{_lib} %{__make} %{?_smp_mflags} @@ -439,7 +444,9 @@ rm -rf %{buildroot} %{_datadir}/gtk-doc/html/glib %{_datadir}/gtk-doc/html/gobject %{_datadir}/gdb/auto-load/%{_lib}/*-gdb.py +%if 0%{?with_systemtap} %{_datadir}/systemtap/tapset/*.stp +%endif %{_sysconfdir}/rpm/macros.glib2 # Own these directories to not depend on gtk-doc while building: %dir %{_datadir}/gtk-doc