[frobby] import

Rex Dieter rdieter at fedoraproject.org
Mon Jul 7 16:48:26 UTC 2014


commit df5cc4c24c8fd94303e482f6e47d8fb78b363788
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Mon Jul 7 11:48:32 2014 -0500

    import

 .gitignore                   |    1 +
 frobby-0.9.0-Macaulay2.patch |   80 +++++++++++++++++++++++++++++++++++++++
 frobby-0.9.0-makefile.patch  |   55 +++++++++++++++++++++++++++
 frobby.spec                  |   86 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 5 files changed, 223 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..af325a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/frobby_v0.9.0.tar.gz
diff --git a/frobby-0.9.0-Macaulay2.patch b/frobby-0.9.0-Macaulay2.patch
new file mode 100644
index 0000000..29c1d49
--- /dev/null
+++ b/frobby-0.9.0-Macaulay2.patch
@@ -0,0 +1,80 @@
+diff -ur /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/main.cpp frobby_v0.9.0/src/main.cpp
+--- /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/main.cpp	2011-09-23 15:09:12.000000000 -0500
++++ frobby_v0.9.0/src/main.cpp	2013-04-21 15:00:54.000000000 -0500
+@@ -24,6 +24,7 @@
+ 
+ #include <ctime>
+ #include <cstdlib>
++#include <unistd.h>
+ 
+ /** This function runs the Frobby console interface. the ::main
+     function calls this function after having set up DEBUG-specific
+diff -ur /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/randomDataGenerators.cpp frobby_v0.9.0/src/randomDataGenerators.cpp
+--- /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/randomDataGenerators.cpp	2011-09-23 15:09:12.000000000 -0500
++++ frobby_v0.9.0/src/randomDataGenerators.cpp	2013-04-21 15:00:54.000000000 -0500
+@@ -25,6 +25,7 @@
+ 
+ #include <limits>
+ #include <ctime>
++#include <unistd.h>
+ 
+ void generateLinkedListIdeal(BigIdeal& ideal, size_t variableCount) {
+   VarNames names(variableCount);
+diff -ur /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/messages/runtest frobby_v0.9.0/test/messages/runtest
+--- /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/messages/runtest	2011-09-23 15:09:12.000000000 -0500
++++ frobby_v0.9.0/test/messages/runtest	2013-04-21 15:18:15.000000000 -0500
+@@ -9,7 +9,7 @@
+ action="$1"
+ shift
+ 
+-tmpFile="/tmp/errorTestHelperTmp"
++tmpFile="./errorTestHelperTmp"
+ echo "$1" > $tmpFile
+ shift
+ 
+diff -ur /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/testScripts/run_euler_test frobby_v0.9.0/test/testScripts/run_euler_test
+--- /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/testScripts/run_euler_test	2011-09-23 15:09:13.000000000 -0500
++++ frobby_v0.9.0/test/testScripts/run_euler_test	2013-04-21 15:00:54.000000000 -0500
+@@ -3,9 +3,9 @@
+ frobby=../../bin/frobby
+ testhelper=../testScripts/testhelper
+ test="$1"
+-tmpFile=/tmp/frobbyEulerRadicalTmp
+-tmpFileInverted=/tmp/frobbyEulerRadicalInvertedTmp
+-tmpFileTransposed=/tmp/frobbyEulerRadicalTransposedTmp
++tmpFile=./frobbyEulerRadicalTmp
++tmpFileInverted=./frobbyEulerRadicalInvertedTmp
++tmpFileTransposed=./frobbyEulerRadicalTransposedTmp
+ genPivots="rarevar popvar maxsupp minsupp any random rarest raremax"
+ stdPivots="popvar rarevar popgcd any random"
+ shift
+diff -ur /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/testScripts/testhelper frobby_v0.9.0/test/testScripts/testhelper
+--- /Users/dan/src/M2/github/Macaulay2-M2-clone/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/test/testScripts/testhelper	2011-09-23 15:09:13.000000000 -0500
++++ frobby_v0.9.0/test/testScripts/testhelper	2013-04-21 15:00:54.000000000 -0500
+@@ -57,10 +57,10 @@
+ 
+ origParams="$*" # used for debug output below
+ origFrobby="../../bin/frobby"
+-origFrobbyOut="/tmp/frobbyTestScriptTemporary_standardOutput"
+-origFrobbyErr="/tmp/frobbyTestScriptTemporary_standardError"
+-frobbyChangedErr="/tmp/frobbyTestScriptTemporary_standardErrorChanged"
+-frobbyChangedInput="/tmp/frobbyTestScriptTemporary_standardInput"
++origFrobbyOut="./frobbyTestScriptTemporary_standardOutput"
++origFrobbyErr="./frobbyTestScriptTemporary_standardError"
++frobbyChangedErr="./frobbyTestScriptTemporary_standardErrorChanged"
++frobbyChangedInput="./frobbyTestScriptTemporary_standardInput"
+ 
+ frobby="$origFrobby"
+ frobbyOut="$origFrobbyOut"
+diff -ur /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/StatisticsStrategy.cpp frobby_v0.9.0/src/StatisticsStrategy.cpp
+--- /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/mac64.production/libraries/frobby/tmp/frobby_v0.9.0/src/StatisticsStrategy.cpp	2011-09-23 16:09:12.000000000 -0400
++++ frobby_v0.9.0/src/StatisticsStrategy.cpp	2013-05-18 17:22:09.000000000 -0400
+@@ -140,7 +140,7 @@
+   if (_nodeCount == 0)
+     return 0.0;
+   else {
+-    mpz_class q = mpq_class(_subGenSum) / _nodeCount;
++    mpq_class q = mpq_class(_subGenSum) / _nodeCount;
+     return q.get_d();
+   }
+ }
diff --git a/frobby-0.9.0-makefile.patch b/frobby-0.9.0-makefile.patch
new file mode 100644
index 0000000..7fdf5e4
--- /dev/null
+++ b/frobby-0.9.0-makefile.patch
@@ -0,0 +1,55 @@
+diff -up frobby_v0.9.0/Makefile.makefile frobby_v0.9.0/Makefile
+--- frobby_v0.9.0/Makefile.makefile	2011-09-23 15:09:12.000000000 -0500
++++ frobby_v0.9.0/Makefile	2014-06-23 10:06:03.607268763 -0500
+@@ -67,10 +67,10 @@ ifndef CXX
+ endif
+ 
+ ifndef BIN_INSTALL_DIR
+-  BIN_INSTALL_DIR = "/usr/local/bin/"
++  BIN_INSTALL_DIR = "/usr/bin/"
+ endif
+ 
+-cflags = $(CFLAGS) $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR)	\
++cflags = $(CFLAGS) $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR)	\
+          -Wno-uninitialized -Wno-unused-parameter
+ program = frobby
+ library = libfrobby.a
+@@ -204,16 +204,16 @@ ifneq ($(MODE), analysis)
+       mv -f $@.exe $@; \
+ 	fi
+ endif
+-ifeq ($(MODE), release)
+-	strip $@
+-endif
++#ifeq ($(MODE), release)
++#	strip $@
++#endif
+ 
+ # Link object files into library
+ library: bin/$(library)
+ bin/$(library): $(objs) | bin/
+ 	rm -f bin/$(library)
+ ifeq ($(MODE), shared)
+-	$(CXX) -shared -o bin/$(library) $(ldflags) \
++	$(CXX) -shared -Wl,-soname,libfrobby.so.0 -o bin/$(library) $(ldflags) \
+ 	  $(patsubst $(outdir)main.o,,$(objs))
+ else
+ 	ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs))
+@@ -241,11 +241,12 @@ endif
+ 
+ # Installation.
+ install:
+-	if [ "`uname|grep CYGWIN`" = "" ]; then \
+-		sudo install bin/frobby $(BIN_INSTALL_DIR); \
+-	else \
+-		install bin/frobby $(BIN_INSTALL_DIR); \
+-	fi  # Cygwin has no sudo
++	install -D bin/frobby $(BIN_INSTALL_DIR)/frobby
++#	if [ "`uname|grep CYGWIN`" = "" ]; then \
++#		sudo install bin/frobby $(BIN_INSTALL_DIR); \
++#	else \
++#		install bin/frobby $(BIN_INSTALL_DIR)/; \
++#	fi  # Cygwin has no sudo
+ 
+ # ***** Documentation
+ 
diff --git a/frobby.spec b/frobby.spec
new file mode 100644
index 0000000..72dfa19
--- /dev/null
+++ b/frobby.spec
@@ -0,0 +1,86 @@
+
+Name:	 frobby
+Summary: Computations With Monomial Ideals
+Version: 0.9.0
+Release: 3%{?dist}
+
+License: GPLv2+
+URL:	 http://www.broune.com/frobby/
+Source0: http://www.broune.com/frobby/frobby_v%{version}.tar.gz
+
+# make makefile a wee bit more sane
+Patch1: frobby-0.9.0-makefile.patch
+# https://raw.githubusercontent.com/Macaulay2/M2/master/M2/libraries/frobby/patch-0.9.0
+Patch2: frobby-0.9.0-Macaulay2.patch
+
+BuildRequires: doxygen
+BuildRequires: gmp-devel
+# docs
+BuildRequires: tex(latex)
+
+%description
+Frobby is a software system and project for computations with monomial
+ideals. Frobby is free software and it is intended as a vehicle for
+research on monomial ideals, as well as a useful practical tool for
+investigating monomial ideals.
+
+The current functionality includes Hilbert series, maximal standard
+monomials, combinatorial optimization on monomial ideals, primary
+decomposition, irreducible decomposition, Alexander dual, associated
+primes, minimization and intersection of monomial ideals as well as
+the computation of Frobenius problems (using 4ti2) with very large
+numbers. Frobby is also able to translate between formats that can be used
+with several different computer systems, such as Macaulay 2, Monos, 4ti2,
+CoCoA4 and Singular. Thus Frobby can be used with any of those systems.
+
+
+%prep
+%setup -q -n frobby_v%{version}
+
+# W: spurious-executable-perm /usr/share/doc/frobby/COPYING
+chmod -x COPYING
+
+%patch1 -p1 -b .makefile
+%patch2 -p1 -b .Macaulay2
+
+
+%build
+make %{?_smp_mflags} \
+  BIN_INSTALL_DIR=%{_bindir} \
+  CFLAGS="${CFLAGS:-%optflags}" \
+  GMP_INC_DIR=%{_includedir} \
+  LDFLAGS="${LDFLAGS:-%__global_ldflags}" \
+  MODE=shared
+
+# generate docs
+make docPdf
+
+
+%install
+mkdir -p %{buildroot}
+make install BIN_INSTALL_DIR=%{buildroot}%{_bindir}
+
+
+%check
+test/runTests
+
+
+%files
+%doc COPYING
+%doc bin/manual.pdf
+%{_bindir}/frobby
+
+
+%changelog
+* Mon Jul 07 2014 Rex Dieter <rdieter at fedoraproject.org> 0.9.0-3
+- fix W: spurious-executable-perm /usr/share/doc/frobby/COPYING
+
+* Mon Jun 23 2014 Rex Dieter <rdieter at fedoraproject.org> 0.9.0-2
+- explicitly set CFLAGS, LDFLAGS
+
+* Mon Jun 23 2014 Rex Dieter <rdieter at fedoraproject.org> 0.9.0-1
+- frobby-0.9.0
+
+* Thu May 26 2011 Rex Dieter <rdieter at fedoraproject.org> 0.8.2-1
+- first try
+
diff --git a/sources b/sources
index e69de29..e45aa14 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2204f340dad8fb7be156f9f7c403c4a0  frobby_v0.9.0.tar.gz


More information about the scm-commits mailing list