[packages/mpqc] - c++11 patch requires compiling in C++ 11 mode
qboosh
qboosh at pld-linux.org
Sat May 27 21:26:13 CEST 2017
commit 28384195c708c3c61ca4b5a0a188807b5a07fa7a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat May 27 21:27:10 2017 +0200
- c++11 patch requires compiling in C++ 11 mode
mpqc.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/mpqc.spec b/mpqc.spec
index 0d1a043..c3e1eed 100644
--- a/mpqc.spec
+++ b/mpqc.spec
@@ -8,7 +8,7 @@ Version: 2.3.1
Release: 6
License: LGPL/GPL (see LICENSE)
Group: Libraries
-Source0: http://dl.sourceforge.net/mpqc/%{name}-%{version}.tar.bz2
+Source0: http://downloads.sourceforge.net/mpqc/%{name}-%{version}.tar.bz2
# Source0-md5: 2f9b4f7487387730d78066a53764f848
Patch0: %{name}-paths.patch
Patch1: %{name}-libfl.patch
@@ -26,6 +26,7 @@ BuildRequires: lapack-devel
BuildRequires: libint-devel
BuildRequires: libstdc++-devel
BuildRequires: perl-base
+BuildRequires: sed >= 4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define no_install_post_check_so 1
@@ -92,12 +93,14 @@ Statyczna biblioteka MPQC.
%patch2 -p1
%patch3 -p1
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' src/bin/mpqc/{ccarun,mpqcrun}.in
+
%build
%{__autoconf}
%configure \
--enable-shared \
--with-cc-optflags="%{rpmcflags}" \
- --with-cxx-optflags="%{rpmcxxflags}" \
+ --with-cxx-optflags="%{rpmcxxflags} -std=c++11" \
--with-flibs="-lgfortran" \
--with-sc-includedir=%{_includedir}/mpqc
# --enable-components (requires cca-chem-config)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mpqc.git/commitdiff/28384195c708c3c61ca4b5a0a188807b5a07fa7a
More information about the pld-cvs-commit
mailing list