packages (JPACKAGE): maven/maven.spec - export JAVA_HOME=%{java_home} - use...
pawelz
pawelz at pld-linux.org
Thu Apr 29 18:15:48 CEST 2010
Author: pawelz Date: Thu Apr 29 16:15:48 2010 GMT
Module: packages Tag: JPACKAGE
---- Log message:
- export JAVA_HOME=%{java_home}
- use $() instead of backquotes. Backquotes are so unreadable...
---- Files affected:
packages/maven:
maven.spec (1.18.2.15 -> 1.18.2.16)
---- Diffs:
================================================================
Index: packages/maven/maven.spec
diff -u packages/maven/maven.spec:1.18.2.15 packages/maven/maven.spec:1.18.2.16
--- packages/maven/maven.spec:1.18.2.15 Thu Apr 29 18:10:10 2010
+++ packages/maven/maven.spec Thu Apr 29 18:15:43 2010
@@ -1021,17 +1021,17 @@
cp -p %{SOURCE11} maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/artifact/repository/layout/MavenJPackageDepmap.java
cp -p %{SOURCE7} %{maven_settings_file}
-sed -i -e "s|<url>__INTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" %{maven_settings_file}
+sed -i -e "s|<url>__INTERNAL_REPO_PLACEHOLDER__</url>|<url>file://$(pwd)/m2_repo/repository</url>|g" %{maven_settings_file}
%if %{with bootstrap}
-sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" %{maven_settings_file}
+sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://$(pwd)/external_repo</url>|g" %{maven_settings_file}
%else
sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://%{_datadir}/%{name}/repository</url>|g" %{maven_settings_file}
%endif
-sed -i -e "s|__INTERNAL_REPO_PLACEHOLDER__|file://`pwd`/m2_repo/repository|g" maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
+sed -i -e "s|__INTERNAL_REPO_PLACEHOLDER__|file://$(pwd)/m2_repo/repository|g" maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
%if %{with bootstrap}
-sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://`pwd`/external_repo|g" maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
+sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://$(pwd)/external_repo|g" maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
%else
sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://%{_datadir}/%{name}/repository|g" maven/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
%endif
@@ -1044,6 +1044,9 @@
### build {{{
%build
+
+export JAVA_HOME=%{java_home}
+
# Fix maven-remote-resources-plugin
# we now use plexus-velocity 1.1.7 which has the correct descriptor with a hint.
rm -f maven-plugins/maven-remote-resources-plugin/src/main/resources/META-INF/plexus/components.xml
@@ -1064,7 +1067,7 @@
touch maven/maven-plugins/maven-assembly-plugin/target/generated-resources/plexus/META-INF/plexus/components.xml
# Build maven
-export MAVEN_REPO_LOCAL=`pwd`/%{repo_dir}
+export MAVEN_REPO_LOCAL=$(pwd)/%{repo_dir}
export M2_SETTINGS_FILE=%{maven_settings_file}
# In bootstrap mode, we want it looking at default poms only (controlled via
@@ -1072,10 +1075,10 @@
# breaking build.
export MAVEN_OPTS="$MAVEN_OPTS -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven2.ignore.versions -Dmaven2.offline.mode -Dmaven.test.failure.ignore=true -Dmaven2.jpp.depmap.file=%{SOURCE17}"
-export M2_HOME=`pwd`/maven/home/apache-%{name}-%{version}
+export M2_HOME=$(pwd)/maven/home/apache-%{name}-%{version}
%if %{with bootstrap}
-export MAVEN_OPTS="$MAVEN_OPTS -Dmaven2.jpp.default.repo=`pwd`/external_repo"
+export MAVEN_OPTS="$MAVEN_OPTS -Dmaven2.jpp.default.repo=$(pwd)/external_repo"
%else
export MAVEN_OPTS="$MAVEN_OPTS -Dmaven2.jpp.default.repo=%{_datadir}/%{name}/repository"
%endif
@@ -1087,9 +1090,9 @@
mkdir bootstrap/lib
ln -s $(build-classpath jdom) bootstrap/lib/jdom.jar
-export CLASSPATH=`pwd`/bootstrap/lib/jdom.jar
+export CLASSPATH=$(pwd)/bootstrap/lib/jdom.jar
export JDOMCLASS=$CLASSPATH
-./bootstrap.sh --prefix=`pwd`/home --settings=%{maven_settings_file}
+./bootstrap.sh --prefix=$(pwd)/home --settings=%{maven_settings_file}
unset CLASSPATH
cd - # cd %{name} }}}
@@ -1225,7 +1228,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-export M2_HOME=`pwd`/maven/home/apache-%{name}-%{version}
+export M2_HOME=$(pwd)/maven/home/apache-%{name}-%{version}
# Repository
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/repository
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/maven/maven.spec?r1=1.18.2.15&r2=1.18.2.16&f=u
More information about the pld-cvs-commit
mailing list