[xgap] New upstream release. Fix bz 819705 issues: - Fix xgap shell script. - Install X11 resource file. -

Jerry James jjames at fedoraproject.org
Wed May 9 18:33:17 UTC 2012


commit f778903754866babbb03adca8a3f79c72a490424
Author: Jerry James <loganjerry at gmail.com>
Date:   Wed May 9 12:32:52 2012 -0600

    New upstream release.
    Fix bz 819705 issues:
    - Fix xgap shell script.
    - Install X11 resource file.
    - Turn off autoloading, as that interferes with SAGE.

 .gitignore |    2 +-
 sources    |    2 +-
 xgap.spec  |   24 ++++++++++++++++++++++--
 3 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fb8e755..15bb4e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/xgap-4.22.tar.gz
+/xgap-4.23.tar.gz
diff --git a/sources b/sources
index c93871a..133ee2f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b53b871f2192bfe819d15c053a231736  xgap-4.22.tar.gz
+473e90c2add914974d8c4243c687e539  xgap-4.23.tar.gz
diff --git a/xgap.spec b/xgap.spec
index 824d574..26aa6e9 100644
--- a/xgap.spec
+++ b/xgap.spec
@@ -1,13 +1,17 @@
 Name:           xgap
-Version:        4.22
+Version:        4.23
 Release:        1%{?dist}
 Summary:        GUI for GAP
 
 License:        GPLv2+
 URL:            http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/%{name}4.html
 Source0:        http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/%{name}4/%{name}-%{version}.tar.gz
+# Created by Jerry James <loganjerry at gmail.com>
 Source1:        %{name}.desktop
-# This patch quiets some compiler warnings.
+# Created by Paulo César Pereira de Andrade
+# <paulo.cesar.pereira.de.andrade at gmail.com>
+Source2:        XGap
+# Sent upstream 9 May 2012.  This patch quiets some compiler warnings.
 Patch0:         %{name}-warning.patch
 
 BuildRequires:  desktop-file-utils
@@ -22,6 +26,9 @@ A X Windows GUI for GAP.
 %setup -q -n %{name}
 %patch0
 
+# Autoloading this package interferes with SAGE (bz 819705).
+sed -i "/^Autoload/s/true/false/" PackageInfo.g 
+
 %build
 export LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed"
 %configure --with-gaproot=%{_gap_arch_dir}
@@ -36,6 +43,7 @@ cp -p bin/*/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}.bin
 
 # The xgap.sh generated during build contains paths in the build root
 sed -e "s|@gapdir@|%{_gap_dir}|" \
+    -e "s|^GAP_PRG=.*|GAP_PRG=%{_bindir}/gap|" \
     -e "s|^XGAP_PRG=.*|XGAP_PRG=%{_bindir}/%{name}.bin|" \
     -e "s|\$XGAP_DIR/pkg/%{name}/bin/||" \
     -e "s|\$GAP_DIR/bin/\$GAP_PRG|\$GAP_PRG|" \
@@ -47,6 +55,10 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
 desktop-file-install --mode=644 --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
   %{SOURCE1}
 
+# Install the X resource file
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
+
 %posttrans -p %{_bindir}/update-gap-workspace
 
 %post
@@ -60,9 +72,17 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||:
 %doc Changelog.*
 %{_bindir}/%{name}*
 %{_datadir}/applications/%{name}.desktop
+%{_datadir}/X11/app-defaults/XGap
 %{_gap_dir}/pkg/%{name}
 
 %changelog
+* Wed May  9 2012 Jerry James <loganjerry at gmail.com> - 4.23-1
+- New upstream release
+- Fix bz 819705 issues:
+- Fix xgap shell script
+- Install X11 resource file
+- Turn off autoloading, as that interferes with SAGE
+
 * Mon Apr 23 2012 Jerry James <loganjerry at gmail.com> - 4.22-1
 - New upstream release
 - Add gap-devel BR to get _gap_dir and _gap_arch_dir macros


More information about the scm-commits mailing list