rpms/Macaulay2/FC-6 Macaulay2-0.9.95-DESTDIR.patch, NONE, 1.1 Macaulay2-0.9.95-bz201739.patch, NONE, 1.1 Macaulay2-0.9.95-xdg_open.patch, NONE, 1.1 .cvsignore, 1.6, 1.7 Macaulay2.desktop, 1.3, 1.4 Macaulay2.spec, 1.27, 1.28 sources, 1.6, 1.7 Macaulay2-0.9.8-htmlview.patch, 1.1, NONE Macaulay2-0.9.8-infodir.patch, 1.1, NONE

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Sun Jan 7 01:04:27 UTC 2007


Author: rdieter

Update of /cvs/extras/rpms/Macaulay2/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18896

Modified Files:
	.cvsignore Macaulay2.desktop Macaulay2.spec sources 
Added Files:
	Macaulay2-0.9.95-DESTDIR.patch Macaulay2-0.9.95-bz201739.patch 
	Macaulay2-0.9.95-xdg_open.patch 
Removed Files:
	Macaulay2-0.9.8-htmlview.patch Macaulay2-0.9.8-infodir.patch 
Log Message:
* Sat Jan 06 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-3
- re-enable ppc build (#201739)

* Tue Jan 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-2
- ./configure --disable-strip, for usable -debuginfo (#220893)

* Mon Dec 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.95-1
- Macaulay2-0.9.95

* Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.5.20060808svn
- .desktop Categories: -Application,Scientific,X-Fedora +ConsoleOnly


Macaulay2-0.9.95-DESTDIR.patch:

--- NEW FILE Macaulay2-0.9.95-DESTDIR.patch ---
--- Macaulay2-0.9.95/include/config.Makefile.in.DESTDIR	2006-12-18 09:17:36.000000000 -0600
+++ Macaulay2-0.9.95/include/config.Makefile.in	2006-12-18 09:42:47.000000000 -0600
@@ -103,8 +103,8 @@
 # this might have to get changed manually, but hopefully not:
 MAINPACKAGE = Core
 
-prefix = @prefix@
-exec_prefix = @exec_prefix@
+prefix = $(DESTDIR)@prefix@
+exec_prefix = $(DESTDIR)@exec_prefix@
 
 ifeq "$(ENCAP)" "yes"
 encapdir = $(prefix)/$(package)
@@ -125,27 +125,11 @@
 # in autoconf >= 2.60, @datadir@ is replaced by ${datarootdir}, so we need to get its value here:
 datarootdir = @datarootdir@
 
-ifeq ($(findstring $(prefix), at infodir@),)
-$(error expected infodir @infodir@ to begin with $(prefix))
-endif
-ifeq ($(findstring $(prefix), at bindir@),)
-$(error expected bindir @bindir@ to begin with $(prefix))
-endif
-ifeq ($(findstring $(prefix), at datadir@),)
-$(error expected datadir @datadir@ to begin with $(prefix))
-endif
-ifeq ($(findstring $(prefix), at libdir@),)
-$(error expected libdir @libdir@ to begin with $(prefix))
-endif
-ifeq ($(findstring $(prefix), at mandir@),)
-$(error expected mandir @mandir@ to begin with $(prefix))
-endif
-
-infoRelDir = $(subst $(prefix)/,, at infodir@)
-binRelDir = $(subst $(prefix)/,, at bindir@)
-dataRelDir = $(subst $(prefix)/,, at datadir@)
-libRelDir = $(subst $(prefix)/,, at libdir@)
-manRelDir = $(subst $(prefix)/,, at mandir@)
+infoRelDir = $(subst $(prefix)/,,$(DESTDIR)@infodir@)
+binRelDir = $(subst $(prefix)/,,$(DESTDIR)@bindir@)
+dataRelDir = $(subst $(prefix)/,,$(DESTDIR)@datadir@)
+libRelDir = $(subst $(prefix)/,,$(DESTDIR)@libdir@)
+manRelDir = $(subst $(prefix)/,,$(DESTDIR)@mandir@)
 man1RelDir = $(manRelDir)/man1
 man3RelDir = $(manRelDir)/man3
 emacsRelDir = $(dataRelDir)/emacs/site-lisp

Macaulay2-0.9.95-bz201739.patch:

--- NEW FILE Macaulay2-0.9.95-bz201739.patch ---
--- Macaulay2-0.9.95/Macaulay2/d/M2lib.c~	2006-10-15 23:22:55.000000000 +0100
+++ Macaulay2-0.9.95/Macaulay2/d/M2lib.c	2006-12-28 12:59:30.000000000 +0000
@@ -368,7 +368,19 @@ char **argv;
 	       personality(oldpersonality | ADDR_NO_RANDOMIZE);
 	       newpersonality = personality(-1);
 	       personality(oldpersonality | ADDR_NO_RANDOMIZE);	/* just in case the previous line sets the personality to -1, which can happen */
-	       if ((newpersonality & ADDR_NO_RANDOMIZE) != 0) return execvp(argv[0],argv);
+	       if ((newpersonality & ADDR_NO_RANDOMIZE) != 0) {
+		       /* Sometimes the personality isn't inherited.
+			  Prevent endless loops by adding --no-personality to
+			  the command line */
+		       char **new_argv = malloc((argc+2) * sizeof(char *));
+		       if (!new_argv) fatal("out of memory");
+
+		       new_argv[0] = argv[0];
+		       new_argv[1] = "--no-personality";
+		       memcpy(&new_argv[2], &argv[1], sizeof(char *) * (argc));
+		       
+		       return execvp(new_argv[0],new_argv);
+	       }
 	  }
 	  else personality(oldpersonality);
      }

Macaulay2-0.9.95-xdg_open.patch:

--- NEW FILE Macaulay2-0.9.95-xdg_open.patch ---
--- M2/Macaulay2/bin/M2-help.htmlview	2005-03-13 20:00:26.000000000 -0600
+++ M2/Macaulay2/bin/M2-help	2006-03-28 08:50:07.000000000 -0600
@@ -1,2 +1,2 @@
 #! /bin/sh
-${WWBROWSER:-firefox} "$HOME/.Macaulay2/index.html"
+${WWBROWSER:-xdg-open} "$HOME/.Macaulay2/index.html"


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/Macaulay2/FC-6/.cvsignore,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- .cvsignore	8 Aug 2006 15:54:39 -0000	1.6
+++ .cvsignore	7 Jan 2007 01:03:57 -0000	1.7
@@ -1,4 +1,3 @@
 clog
-Macaulay2-0.9.10-20060710svn.tar.bz2
-Macaulay2-0.9.20-20060724svn.tar.bz2
 Macaulay2-0.9.20-20060808svn.tar.bz2
+Macaulay2-0.9.95-src.tar.gz


Index: Macaulay2.desktop
===================================================================
RCS file: /cvs/extras/rpms/Macaulay2/FC-6/Macaulay2.desktop,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Macaulay2.desktop	11 Apr 2006 17:51:40 -0000	1.3
+++ Macaulay2.desktop	7 Jan 2007 01:03:57 -0000	1.4
@@ -5,5 +5,5 @@
 SwallowTitle=Macaulay2
 Terminal=true
 Type=Application
-Categories=Application;Education;Math;Scientific;
+Categories=ConsoleOnly;Education;Math;
 Encoding=UTF-8


Index: Macaulay2.spec
===================================================================
RCS file: /cvs/extras/rpms/Macaulay2/FC-6/Macaulay2.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- Macaulay2.spec	29 Aug 2006 18:27:59 -0000	1.27
+++ Macaulay2.spec	7 Jan 2007 01:03:57 -0000	1.28
@@ -1,32 +1,31 @@
 
-%define beta 20060808svn
+#define beta 20060808svn
 
 %define emacs_sitelisp  %{_datadir}/emacs/site-lisp/
 %define xemacs_sitelisp %{_datadir}/xemacs/site-packages/lisp/
  
 Summary: System for algebraic geometry and commutative algebra
 Name:    Macaulay2
-Version: 0.9.20
-Release: 0.4.%{beta}%{?dist}
+Version: 0.9.95
+Release: 3%{?dist}
 
 License: GPL
 Group:   Applications/Engineering
 URL:     http://www.math.uiuc.edu/Macaulay2/
-#Source: http://www.math.uiuc.edu/Macaulay2/ftp-site/Macaulay2-%{version}.beta.tar.gz
-Source0: Macaulay2-%{version}-%{beta}.tar.bz2
+Source0: http://www.math.uiuc.edu/Macaulay2/ftp-site/Macaulay2-%{version}-src.tar.gz
+#Source0: Macaulay2-%{version}-%{beta}.tar.bz2
 Source1: Macaulay2-svn_checkout.sh
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# ppc build currently hangs, never finishes, http://bugzilla.redhat.com/201739
-ExcludeArch: ppc
 
 Source10: Macaulay2.png
 Source11: Macaulay2.desktop
 
 Patch0: Macaulay2-0.9.8-optflags.patch
-Patch1: Macaulay2-0.9.8-htmlview.patch
+Patch1: Macaulay2-0.9.95-xdg_open.patch 
 Patch2: Macaulay2-0.9.10-cout.patch
-Patch3: Macaulay2-0.9.8-infodir.patch
+Patch3: Macaulay2-0.9.95-DESTDIR.patch
 Patch4: Macaulay2-0.9.10-gcc41.patch
+Patch201739: Macaulay2-0.9.95-bz201739.patch
 
 BuildRequires: desktop-file-utils
 BuildRequires: gc-devel
@@ -34,7 +33,7 @@
 BuildRequires: factory-devel 
 BuildRequires: libfac-devel 
 BuildRequires: lapack
-%if "%{?fedora}" > "3"
+%if 0%{?fedora} > 3 || 0%{?rhel} > 4
 BuildRequires: lapack-devel
 %endif
 BuildRequires: gdbm-devel
@@ -46,8 +45,6 @@
 # etags
 BuildRequires: emacs-common
 Source20: etags.sh
-# M2-help
-Requires: htmlview
 
 BuildRequires: automake
 
@@ -56,6 +53,11 @@
 Obsoletes: Macaulay2-emacs < %{version}-%{release}
 Provides:  Macaulay2-emacs = %{version}-%{release}
 
+Requires(post): xdg-utils
+Requires(postun): xdg-utils
+# M2-help
+Requires: xdg-utils
+
 %description
 Macaulay 2 is a new software system devoted to supporting research in
 algebraic geometry and commutative algebra written by Daniel R. Grayson
@@ -68,10 +70,11 @@
 install -p -m755 %{SOURCE20} ./etags
 
 %patch0 -p1 -b .optflags
-%patch1 -p1 -b .htmlview
+%patch1 -p1 -b .xdg_open
 %patch2 -p1 -b .cout
-%patch3 -p1 -b .infodir
+%patch3 -p1 -b .DESTDIR
 %patch4 -p1 -b .gcc41
+%patch201739 -p1 -b .bz201739
 
 [ -f configure -a -f include/config.h ] || make 
 
@@ -86,13 +89,14 @@
   --disable-dumpdata \
   --disable-optimize \
   --disable-static \
+  --disable-strip \
   --with-lapacklibs="-llapack"
 
 # Not smp-safe
 make 
 
 
-%check || :
+%check 
 # util/screen dies on fc5/buildsystem (could not open pty)
 #make -k check ||:
 
@@ -100,17 +104,15 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make install prefix=$RPM_BUILD_ROOT%{_prefix}
+make install DESTDIR=$RPM_BUILD_ROOT
 
 # app img
 install -p -m644 -D %{SOURCE10} \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/Macaulay2.png
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
 desktop-file-install \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
-  --vendor fedora \
-  --add-category "X-Fedora" \
+  --vendor="fedora" \
   %{SOURCE11}
 
 # Make a new home for emacs files
@@ -133,12 +135,10 @@
 
 
 %post
-touch --no-create %{_datadir}/icons/hicolor ||:
-gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor ||:
-gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
 
 %triggerin -- emacs-common
 if [ -d %{emacs_sitelisp} ]; then 
@@ -163,8 +163,6 @@
 
 %files
 %defattr(-,root,root,-)
-#README awol on latest release.
-#doc Macaulay2/README 
 %doc Macaulay2/CHANGES Macaulay2/COPYING
 %{_bindir}/*
 %{_datadir}/Macaulay2/
@@ -179,6 +177,18 @@
 
 
 %changelog
+* Sat Jan 06 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-3
+- re-enable ppc build (#201739)
+
+* Tue Jan 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-2
+- ./configure --disable-strip, for usable -debuginfo (#220893)
+
+* Mon Dec 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.95-1
+- Macaulay2-0.9.95
+
+* Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.5.20060808svn
+- .desktop Categories: -Application,Scientific,X-Fedora +ConsoleOnly
+
 * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.4.20060808svn
 - fc6 respin
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/Macaulay2/FC-6/sources,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- sources	8 Aug 2006 15:54:39 -0000	1.6
+++ sources	7 Jan 2007 01:03:57 -0000	1.7
@@ -1,2 +1 @@
-7586384990e8151157c32efdd17356f6  Macaulay2-0.9.20-20060724svn.tar.bz2
-322a36e7dc6fc95f5e101d152fed45ee  Macaulay2-0.9.20-20060808svn.tar.bz2
+dbe13387812577b0abfdfa6c54eccecc  Macaulay2-0.9.95-src.tar.gz


--- Macaulay2-0.9.8-htmlview.patch DELETED ---


--- Macaulay2-0.9.8-infodir.patch DELETED ---




More information about the scm-commits mailing list