From c22f0d33dd6ae810a054c0a2f1585c98d8e3e62f Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jun 20 2017 10:45:38 +0000 Subject: Add back missing desktop icon (#1462987) - Include pari/gp desktop icon, dropped from upstream releases after 2.5.x (#1462987) - Drop redundant Group: tags --- diff --git a/pari.spec b/pari.spec index ee61928..4c85ced 100644 --- a/pari.spec +++ b/pari.spec @@ -1,13 +1,13 @@ Name: pari Version: 2.9.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Number Theory-oriented Computer Algebra System -Group: System Environment/Libraries # No version is specified License: GPL+ URL: http://pari.math.u-bordeaux.fr/ Source0: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{version}.tar.gz Source1: gp.desktop +Source2: pari.xpm Patch0: pari-2.5.1-xdgopen.patch Patch1: pari-2.9.0-optflags.patch Patch10: pari-2.9.0-missing-field-init.patch @@ -48,7 +48,6 @@ calculator PARI/GP is in package pari-gp. %package devel Summary: Header files and libraries for PARI development -Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel @@ -56,7 +55,6 @@ Header files and libraries for PARI development. %package gp Summary: PARI calculator -Group: Applications/Engineering Requires: %{name} = %{version}-%{release} Requires: bzip2 Requires: gzip @@ -118,6 +116,7 @@ mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} +install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pari/misc/ # Don't bother installing the simple gp wrapper script, so avoiding the # need to patch it to fix the path to the executable @@ -165,6 +164,11 @@ make test-all %{_libdir}/libpari.so %changelog +* Tue Jun 20 2017 Paul Howarth - 2.9.2-3 +- Include pari/gp desktop icon, dropped from upstream releases after 2.5.x + (#1462987) +- Drop redundant Group: tags + * Tue Apr 18 2017 Paul Howarth - 2.9.2-2 - Drop the compat library for pari 2.7 as nothing in Fedora is using it now diff --git a/pari.xpm b/pari.xpm new file mode 100644 index 0000000..32a5d2d --- /dev/null +++ b/pari.xpm @@ -0,0 +1,60 @@ +/* XPM */ +static char *pari-gp-tiny[] = { +/* width height num_colors chars_per_pixel */ +" 56 40 13 1", +/* colors */ +". c #ffffff", +"# c #006cf8", +"a c #20d010", +"b c #a0d3ff", +"c c #88ff68", +"d c #009900", +"e c #000000", +"f c #9f9f9f", +"g c #0000cc", +"h c #b0032b", +"i c #bfbfbf", +"j c #ffc1b9", +"k c #f71814", +/* pixels */ +"........................................................", +".......................#a...............................", +"......................#bcd..............................", +"............eeeeef....#bcd....eeeeef...eeee.............", +".............ee..ef...gbcd.....ee..ef...ee..............", +".............ee..ee..#bhhca....ee..ee...ee..............", +".............ee..ef..g.hh.d....ee..ef...ee..............", +".............eeeef...hhhhhh....eeeef....ee..............", +".............ee.....bhhhhhhc...eeiei....ee..............", +".............ee.....g..hh..d...ee.iei...ee..............", +".............ee....bg.bhhc.dc..ee..iei..ee..............", +"............eeee...gb.b..c.cd.eeee.eeefeeee.............", +"..................bg..b..c..dc..........................", +".................#gb.bb..cc.ad..........................", +".................g#..bb..cc.c...........................", +"........................................................", +"........................................................", +".......jkkkkkjj..k...jkkkkkkkkkkj.......................", +"......kkkkkkkkkj.k.....kkkkk...kkkj.....................", +"....jkkkj.....jkjk......kkkk....jkkk....................", +"....kkkj.......jkk......kkkk.....kkkj...................", +"...jkkk.........kk......kkkk.....kkkk..hhhhj............", +"...kkkj..........k......kkkk.....kkkk...hhhhhj..........", +"..jkkk...........k......kkkk.....kkkk....jhhhhh.........", +"..kkkk..................kkkk.....kkkj......hhhhhj.......", +"..kkkk..................kkkk....kkkk........jhhhhh......", +"..kkkk..................kkkk..jkkkk...........hhhhhj....", +"..kkkk..................kkkkkkkkkj.............jhhhhh...", +"..kkkk.......kkkkkk.....kkkk.....................hhhhh..", +"..kkkkj.......kkkk......kkkk...................jhhhhh...", +"..jkkkj.......kkkk......kkkk..................hhhhhj....", +"...kkkk.......kkkk......kkkk................jhhhhh......", +"...jkkkj......kkkk......kkkk...............hhhhhj.......", +"....jkkk.....jkkkk......kkkk.............jhhhhh.........", +".....jkkkj..jkkkkj.....jkkkkj...........hhhhhj..........", +".......jkkkkkkkjj....kkkkkkkkkk........hhhhj............", +"........................................................", +"........................................................", +"........................................................", +"........................................................" +};