Strip __DATE__
OBS-URL: https://build.opensuse.org/package/show/science/pari?expand=0&rev=13
This commit is contained in:
parent
d0d851db83
commit
36a460f41a
@ -4,23 +4,17 @@ Date: 2014-02-05 03:01:02.110857012 +0100
|
|||||||
Kill __DATE__ from source, it's pointless and can cause rebuilds.
|
Kill __DATE__ from source, it's pointless and can cause rebuilds.
|
||||||
|
|
||||||
---
|
---
|
||||||
src/gp/gp.c | 6 +++---
|
src/language/paricfg.c | 2 +-
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
Index: pari-2.5.5/src/gp/gp.c
|
Index: pari-2.7.1/src/language/paricfg.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pari-2.5.5.orig/src/gp/gp.c
|
--- pari-2.7.1.orig/src/language/paricfg.c
|
||||||
+++ pari-2.5.5/src/gp/gp.c
|
+++ pari-2.7.1/src/language/paricfg.c
|
||||||
@@ -823,9 +823,9 @@ print_version(void)
|
@@ -17,5 +17,5 @@ const char *paricfg_version = PARIVERSIO
|
||||||
|
const char *paricfg_buildinfo = PARIINFO;
|
||||||
center(paricfg_version);
|
const long paricfg_version_code = PARI_VERSION_CODE;
|
||||||
center(paricfg_buildinfo);
|
const char *paricfg_vcsversion = PARI_VCSVERSION;
|
||||||
- buf = stackmalloc(strlen(__DATE__) + 32 + (ver? strlen(ver): 0));
|
-const char *paricfg_compiledate = __DATE__;
|
||||||
- if (ver) (void)sprintf(buf, "compiled: %s, %s", __DATE__, ver);
|
+const char *paricfg_compiledate = "openSUSE";
|
||||||
- else (void)sprintf(buf, "compiled: %s", __DATE__);
|
const char *paricfg_mt_engine = PARI_MT_ENGINE;
|
||||||
+ buf = stackmalloc(strlen("yes") + 32 + (ver? strlen(ver): 0));
|
|
||||||
+ if (ver) (void)sprintf(buf, "compiled: %s, %s", "yes", ver);
|
|
||||||
+ else (void)sprintf(buf, "compiled: %s", "yes");
|
|
||||||
center(buf);
|
|
||||||
ver = what_readline();
|
|
||||||
buf = stackmalloc(strlen(ver) + 64);
|
|
||||||
|
@ -30,6 +30,7 @@ Url: http://pari.math.u-bordeaux.fr/
|
|||||||
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz
|
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz
|
||||||
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc
|
Source2: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.tar.gz.asc
|
||||||
Source3: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.changelog
|
Source3: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%version.changelog
|
||||||
|
Patch1: pari-nodate.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: fltk-devel
|
BuildRequires: fltk-devel
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
@ -87,6 +88,7 @@ functions.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p 1 -P 1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./Configure --prefix="%_prefix" \
|
./Configure --prefix="%_prefix" \
|
||||||
|
Loading…
Reference in New Issue
Block a user