use system LiberationSans-Regular.ttf font for creating statistical graphs
# copy gcstar perl-libs to /usr/share instead of /usr/lib
Patch2: %{name}-perlmoddir.patch
Patch3: system-xdgopen.patch
+Patch4: system-fonts.patch
URL: http://www.gcstar.org/
BuildRequires: perl-Archive-Zip
BuildRequires: perl-Gtk2
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%undos lib/gcstar/GCStats.pm
+%patch4 -p1
#rm BOM from files - it can confuse perl.prov
find -type f -name '*.pm' | xargs sed -i 's/^\xef\xbb\xbf//'
--- /dev/null
+--- gcstar/lib/gcstar/GCStats.pm.orig 2014-03-16 09:04:57.573328268 +0000
++++ gcstar/lib/gcstar/GCStats.pm 2014-03-16 09:10:05.350021621 +0000
+@@ -57,7 +57,7 @@ BEGIN {
+ my $self = {parent => $parent};
+ bless ($self, $class);
+
+- GD::Text->font_path($ENV{GCS_SHARE_DIR}.'/fonts');
++ GD::Text->font_path('/usr/share/fonts/TTF/');
+
+ return $self;
+ }