[palp] Update to latest upstream release.
pcpa
pcpa at fedoraproject.org
Sat Sep 15 15:10:26 UTC 2012
commit 4b0f1f5312ba4ce481e28c171992591d407d6580
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Sat Sep 15 12:08:07 2012 -0300
Update to latest upstream release.
Sagemath 5.3 doctests using palp now are silent and give no errors.
.gitignore | 2 ++
palp.spec | 40 ++++++++++++++++++++++++++++++----------
sources | 4 ++--
3 files changed, 34 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 274baf6..d39a79e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
palp-1.1.tar.gz
/0204356v1.pdf
+/palp-2.1.tar.gz
+/1205.4147v1.pdf
diff --git a/palp.spec b/palp.spec
index ac57c77..d07649e 100644
--- a/palp.spec
+++ b/palp.spec
@@ -1,13 +1,14 @@
Name: palp
-Version: 1.1
-Release: 8%{?dist}
+Version: 2.1
+Release: 1%{?dist}
Summary: A Package for Analyzing Lattice Polytopes
Group: Applications/Engineering
License: GPLv3+
URL: http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html
Source0: http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/palp-%{version}.tar.gz
-Source1: http://arxiv.org/pdf/math/0204356v1.pdf
-
+# No longer available direct link
+# http://arxiv.org/pdf/1205.4147v1
+Source1: 1205.4147v1.pdf
%description
PALP contains routines for vertex and facet enumeration, computation of
@@ -20,28 +21,47 @@ toric Calabi-Yau varieties.
%prep
-%setup -q -n %{name}
+%setup -q
%build
cp -a %{SOURCE1} .
-make %{?_smp_mflags}
+
+mkdir bin
+mv Global.h Global.h-template
+for dim in 4 5 6 11; do
+ echo Building PALP optimized for $dim dimensions
+ sed "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax $dim/" Global.h-template > Global.h
+ make %{?_smp_mflags} CFLAGS="%{optflags}"
+ for file in poly class cws nef mori; do
+ mv ${file}.x bin/${file}-${dim}d.x
+ done
+ make cleanall
+done
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
-for exe in *.x; do
- install -m 755 $exe $RPM_BUILD_ROOT%{_bindir}/$exe
+pushd bin
+ for exe in *.x; do
+ install -m 755 $exe $RPM_BUILD_ROOT%{_bindir}/$exe
+ done
+popd
+for file in poly class cws nef mori; do
+ ln -sf ${file}-6d.x $RPM_BUILD_ROOT%{_bindir}/${file}.x
done
-
%files
%doc COPYING
-%doc 0204356v1.pdf
+%doc 1205.4147v1.pdf
%{_bindir}/*
%changelog
+* Sat Sep 15 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 2.1-1
+- Update to latest upstream release
+- Adapt to match sagemath palp build
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index b218650..fef24ab 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-6133f32e22a594f15d0c883b2b3eb26c palp-1.1.tar.gz
-9ac0370c27bf4a14eef8ce69c2ff6037 0204356v1.pdf
+f3791acd2e60846cb63bc98e87ad7509 palp-2.1.tar.gz
+d516bb138219c3d85caa5679d46ad922 1205.4147v1.pdf
More information about the scm-commits
mailing list