[ldc/f14/master] add patch

MERCIER Jonathan bioinfornatics at fedoraproject.org
Thu Aug 5 20:37:55 UTC 2010


commit ceaba391b5c5136f8876de8c176223c22a8cd0d8
Author: bioinfornatics <bioinfornatics at gmail.com>
Date:   Thu Aug 5 22:37:44 2010 +0200

    add patch

 ldc.spec   |   46 +++++++++++++++++++++++++++++-----------------
 macros.ldc |    2 +-
 2 files changed, 30 insertions(+), 18 deletions(-)
---
diff --git a/ldc.spec b/ldc.spec
index c47dfc2..7e808b4 100644
--- a/ldc.spec
+++ b/ldc.spec
@@ -1,22 +1,23 @@
 %global     alphatag        20100609
-%global     hg_revision     hg1653
+%global     hg_revision     hg1654
 
 # The source for this package was pulled from upstream's mercurial (hg).
 # Use the following commands to generate the tarball:
-# hg clone -r 1653 http://bitbucket.org/lindquist/ldc ldc-20100609hg1653
-# tar -cJvf ldc-20100609hg1653.tar.xz ldc-20100609hg1653
-
-Name:       ldc
-Version:    0.9.2
-Release:    9.%{alphatag}%{hg_revision}%{?dist}
-Summary:    It is a compiler for the D programming language
-
-Group:      Development/Languages    
-License:    BSD    
-URL:        http://www.dsource.org/projects/ldc
-Source0:    %{name}-%{alphatag}%{hg_revision}.tar.xz
-Source1:    macros.%{name}
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# hg clone -r 1654 http://bitbucket.org/lindquist/ldc ldc-20100609hg1654
+# tar -cJvf ldc-20100609hg1654.tar.xz ldc-20100609hg1654
+
+Name:           ldc
+Version:        0.9.2
+Release:        12.%{alphatag}%{hg_revision}%{?dist}
+Summary:        It is a compiler for the D programming language
+
+Group:          Development/Languages    
+License:        BSD    
+URL:            http://www.dsource.org/projects/ldc
+Source0:        %{name}-%{alphatag}%{hg_revision}.tar.xz
+Patch0:         %{name}-0.9.2-fix.patch
+Source1:        macros.%{name}
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  llvm-devel
 BuildRequires:  libconfig
@@ -54,15 +55,16 @@ implémenter.
 
 %prep
 %setup -q -n %{name}-%{alphatag}%{hg_revision}
+%patch0 -p1 -b .fix
 
 %build
 %cmake . -DCMAKE_CXX_FLAGS:STRING=-DLLVM_REV=101676
 
-make VERBOSE=1 %{?_smp_mflags}
+make %{?_smp_mflags} VERBOSE=1
 
 %install
 rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
+make %{?_smp_mflags} install DESTDIR=%{buildroot}
 
 mkdir -p %{buildroot}/%{_sysconfdir}/rpm
 # This empty file is removed because it's never used. "lib" is explicitely used
@@ -99,6 +101,16 @@ rm -rf %{buildroot}
 %config(noreplace)  %{_sysconfdir}/rpm/macros.ldc
 
 %changelog
+* Mon Aug 02 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-12.20100609hg1654
+- Add patch
+
+* Mon Aug 02 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-11.20100609hg1654
+- Add %%{?_smp_mflags} macro for makefile
+- Add flag -O2 for good optimizations in %%{_d_optflags} macro
+
+* Sun Aug 01 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-10.20100609hg1654
+- Update to revision 1654
+
 * Fri Jul 29 2010 Jonathan MERCIER <bioinfornatics at gmail.com> 0.9.2-9.20100609hg1653
 - add %%{_d_libdir} macro in macros.ldc
 - fix lib path in ldc.conf
diff --git a/macros.ldc b/macros.ldc
index e28abb4..60132c6 100644
--- a/macros.ldc
+++ b/macros.ldc
@@ -4,6 +4,6 @@
 # Include directory where all .di or .d file are installed.
 %_d_includedir %{_includedir}/d
 # Compile options for ldc and make file
-%_d_optflags -release -w -g
+%_d_optflags -release -w -g -O2
 # Lib directory path
 %_d_libdir %{_libdir}/d


More information about the scm-commits mailing list