[pure] Update to 0.48

Michel Alexandre Salim salimma at fedoraproject.org
Fri Nov 11 21:07:16 UTC 2011


commit 4dea43c0911d28a6b56bedbac9ba5fc10ef015a0
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Fri Nov 11 22:06:50 2011 +0100

    Update to 0.48

 .gitignore |    4 ++--
 pure.spec  |   39 ++++++++++++++++++++++++---------------
 sources    |    4 ++--
 3 files changed, 28 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ad1480b..e2e7387 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/pure-0.47.tar.gz
-/pure-docs-0.47.tar.gz
+/pure-0.48.tar.gz
+/pure-docs-0.48.tar.gz
diff --git a/pure.spec b/pure.spec
index f23a85a..84438f0 100644
--- a/pure.spec
+++ b/pure.spec
@@ -1,6 +1,6 @@
 Name:           pure
-Version:        0.47
-Release:        3%{?dist}.2
+Version:        0.48
+Release:        1%{?dist}
 Summary:        A term-rewriting functional programming language
 
 Group:          Development/Languages
@@ -9,13 +9,17 @@ URL:            http://code.google.com/p/pure-lang/
 Source0:        http://pure-lang.googlecode.com/files/pure-%{version}.tar.gz
 Source1:        http://pure-lang.googlecode.com/files/pure-docs-%{version}.tar.gz
 Source2:        pure-init.el
-Patch0:         pure-0.47-pc_mode.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  gmp-devel libedit-devel
-BuildRequires:  llvm-devel >= 2.4 flex bison
-# clang build is not ready yet
-# BuildRequires:  clang
+BuildRequires:  llvm-devel >= 2.5 flex bison
+# for LLVM 3.x, starting from Fedora 17
+# INSTALL says it should work from LLVM 2.8 but it does not seem to work
+# even in Fedora 16; perhaps due to libstdc++ issues
+%if 0%{?fedora} >= 17
+BuildRequires:  clang
+%endif
+BuildRequires:  gmp-devel
+BuildRequires:  libedit-devel
+BuildRequires:  mpfr-devel
 # For compiling emacs mode
 BuildRequires:  emacs emacs-el
 # For integrated help in the interpreter
@@ -74,25 +78,24 @@ This package contains the elisp source file for the Pure mode for Emacs.
 %prep
 %setup -q
 cp -p %{SOURCE1} .
-%patch0 -p1 -b .pc_mode
 
 
 %build
-# TODO
-#export CC=clang
-#export CXX=clang++
+%if 0%{?fedora} >= 17
+export CC=clang
+export CXX=clang++
+%endif
 %ifarch ppc
 # http://code.google.com/p/pure-lang/issues/detail?id=13#c47
-%configure --disable-fastcc
+%configure --enable-release --disable-fastcc
 %else
-%configure
+%configure --enable-release
 %endif
 
 make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 # trick the docs installation to go to %{_datadir} so it can be
 # shared among different arches
@@ -109,8 +112,10 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
 make check
 
 
+%if 0%{?rhel}
 %clean
 rm -rf $RPM_BUILD_ROOT
+%endif
 
 
 %post -p /sbin/ldconfig
@@ -156,6 +161,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Nov 11 2011 Michel Salim <salimma at fedoraproject.org> - 0.48-1
+- Update to 0.48
+- Build against clang on Fedora 17 and above
+
 * Wed Oct 26 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.47-3.2
 - rebuild with new gmp without compat lib
 
diff --git a/sources b/sources
index e70ac7e..c095b29 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-0b3745be6151c2d77150bd4678b4534d  pure-0.47.tar.gz
-fcf37e92ede02e99704a824906665aa2  pure-docs-0.47.tar.gz
+f1e26fc4b428bc269ce8551d73cfabae  pure-0.48.tar.gz
+ce04b557bc25133f7b832b582e6afb62  pure-docs-0.48.tar.gz


More information about the scm-commits mailing list