| Summary: | (.spec) optional --enable-debug | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
| Component: | libgtk+2 | Assignee: | Yuri N. Sedunov <aris> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | aris |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
Ради того, чтобы легче было узнать по установленному пакету, какой он:
diff --git a/libgtk+2.spec b/libgtk+2.spec
index a3ed729..aaeaefc 100644
--- a/libgtk+2.spec
+++ b/libgtk+2.spec
@@ -1,4 +1,5 @@
%def_disable snapshot
+%def_disable debug
%define _name gtk+
%define api_ver 2.0
@@ -82,6 +83,11 @@ BuildRequires: libXdamage-devel libXcomposite-devel libX11-devel libXcursor-deve
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
Offering a complete set of widgets, GTK+ is suitable for projects
ranging from small one-off projects to complete application suites.
+%if_enabled debug
+
+The library in this package has been built with --enable-debug;
+for debugging, set GTK_DEBUG environment variable to an appropriate value.
+%endif
%package locales
Summary: Internationalization for GTK+
@@ -233,6 +239,7 @@ NOCONFIGURE=1 ./autogen.sh
%autoreconf
%endif
%configure \
+ %{subst_enable debug} \
%{subst_enable xkb} \
%{subst_enable man} \
--with-xinput=yes \
|
2.24.32-alt2 Такое вот несущественное пожелание, чтобы удобно и просто было пересобрать ради отладки так: hsh --build-args='--enable debug' (Отладочные сообщения можно будет увидеть как-то так: G_MESSAGES_DEBUG=printing GTK_DEBUG=printing atril /usr/share/doc/dia/en/dia.pdf ) diff --git a/libgtk+2.spec b/libgtk+2.spec index 874a37b..3490e51 100644 --- a/libgtk+2.spec +++ b/libgtk+2.spec @@ -1,4 +1,5 @@ %def_disable snapshot +%def_disable debug %define _name gtk+ %define api_ver 2.0 @@ -233,6 +234,7 @@ NOCONFIGURE=1 ./autogen.sh %autoreconf %endif %configure \ + %{subst_enable debug} \ %{subst_enable xkb} \ %{subst_enable man} \ --with-xinput=yes \