Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37863363
en ru br
ALT Linux repos
S:6.16-alt1
5.0: 4.02-alt1
4.1: 3.06-alt1
4.0: 2.31-alt1
3.0: 2.03-alt0.1

Other repositories
Upstream:3.08

Group :: File tools
RPM: clamtk

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: clamtk-gtk.patch
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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin