Group :: Ferramentas de Arquivo
RPM: clamtk
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: clamtk-gtk.patch
Download
Download
Author: Igor Vlasenko <viy@altlinux.ru>
diff --git a/clamtk/lib/GUI.pm b/clamtk/lib/GUI.pm
index a9d3bdf..bb03467 100644
--- a/clamtk/lib/GUI.pm
+++ b/clamtk/lib/GUI.pm
@@ -13,7 +13,19 @@
# b) the "Artistic License".
package ClamTk::GUI;
-use Gtk3 '-init';
+require Gtk3;
+eval {
+ Gtk3->import('-init');
+};
+if ($@) {
+ if (! $ENV{'RPM_BUILD_ROOT'}) {
+ die $@;
+ } else {
+ # hack for rpmbuild's perl.req
+ return 1;
+ }
+}
+
use Glib 'TRUE', 'FALSE';
# use strict;