[apache-commons-lang/f19] Properly specify XMvn's compilerSource option

Michal Srb msrb at fedoraproject.org
Tue Apr 9 13:51:40 UTC 2013


commit 8b3ad3046e2c4c5ac4847efbd5bbaafa7c5c0c6c
Author: Michal Srb <msrb at redhat.com>
Date:   Tue Apr 9 15:49:50 2013 +0200

    Properly specify XMvn's compilerSource option

 apache-commons-lang.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/apache-commons-lang.spec b/apache-commons-lang.spec
index 56bc453..fb2bed9 100644
--- a/apache-commons-lang.spec
+++ b/apache-commons-lang.spec
@@ -4,7 +4,7 @@
 
 Name:           apache-%{short_name}
 Version:        2.6
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Provides a host of helper utilities for the java.lang API
 License:        ASL 2.0
 Group:          Development/Libraries
@@ -50,10 +50,12 @@ sed -i 's/\r//' *.txt *.html
     <configuration><source>1.3</source></configuration>"
 
 
-%build
 %mvn_file  : %{name} %{short_name}
 %mvn_alias : org.apache.commons: %{base_name}:%{base_name}
-export XMVN_COMPILER_SOURCE=1.3
+# this package needs to be compiled with -source 1.3 option
+%mvn_config buildSettings/compilerSource 1.3
+
+%build
 %mvn_build
 
 %install
@@ -66,6 +68,9 @@ export XMVN_COMPILER_SOURCE=1.3
 %doc LICENSE.txt NOTICE.txt
 
 %changelog
+* Tue Apr 09 2013 Michal Srb <msrb at redhat.com> - 2.6-11
+- Properly specify XMvn's compilerSource option
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.6-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list