This commit is contained in:
parent
5b66c1b3e1
commit
60aa703a2e
@ -73,16 +73,6 @@ Javadoc for %{name}.
|
|||||||
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
|
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %with maven
|
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
||||||
mkdir -p ${MAVEN_REPO_LOCAL}
|
|
||||||
export MAVEN_OPTS="-Dmaven2.jpp.mode=true -Dmaven2.jpp.depmap.file=%{SOURCE2} -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dproject.build.directory=$(pwd)/target"
|
|
||||||
%{_bindir}/mvn-jpp \
|
|
||||||
-e \
|
|
||||||
-s $(pwd)/settings.xml \
|
|
||||||
install javadoc:javadoc
|
|
||||||
%else
|
|
||||||
|
|
||||||
export CLASSPATH=$(build-classpath junit)
|
export CLASSPATH=$(build-classpath junit)
|
||||||
ant -Dbuild.sysclasspath=first \
|
ant -Dbuild.sysclasspath=first \
|
||||||
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
||||||
@ -96,18 +86,13 @@ ant -Dbuild.sysclasspath=first \
|
|||||||
-Dcomponent.version=%{version} \
|
-Dcomponent.version=%{version} \
|
||||||
-Dfinal.name=%{name}-%{version} \
|
-Dfinal.name=%{name}-%{version} \
|
||||||
-Dextension.name=%{short_name} \
|
-Dextension.name=%{short_name} \
|
||||||
test jar javadoc
|
jar javadoc
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
%if %with maven
|
|
||||||
cp -p target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
||||||
%else
|
|
||||||
jar umf %{SOURCE4} dist/%{name}-%{version}.jar
|
jar umf %{SOURCE4} dist/%{name}-%{version}.jar
|
||||||
cp -p dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
cp -p dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
%endif
|
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}-%{version}.jar
|
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}-%{version}.jar
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user