Build with %mvn_build
This commit is contained in:
parent
53a6c297f4
commit
2a9e5efb16
35
qdox.spec
35
qdox.spec
@ -31,7 +31,7 @@
|
|||||||
Summary: Extract class/interface/method definitions from sources
|
Summary: Extract class/interface/method definitions from sources
|
||||||
Name: qdox
|
Name: qdox
|
||||||
Version: 1.12.1
|
Version: 1.12.1
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://qdox.codehaus.org/
|
URL: http://qdox.codehaus.org/
|
||||||
@ -102,6 +102,9 @@ rm -rf bootstrap
|
|||||||
%pom_remove_plugin :xsite-maven-plugin
|
%pom_remove_plugin :xsite-maven-plugin
|
||||||
%pom_xpath_remove pom:build/pom:extensions
|
%pom_xpath_remove pom:build/pom:extensions
|
||||||
|
|
||||||
|
%mvn_file : %{name}
|
||||||
|
%mvn_alias : qdox:qdox
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Generate scanner (upstream does this with maven-jflex-plugin)
|
# Generate scanner (upstream does this with maven-jflex-plugin)
|
||||||
jflex \
|
jflex \
|
||||||
@ -123,10 +126,7 @@ byaccj \
|
|||||||
../../../../../../grammar/parser.y)
|
../../../../../../grammar/parser.y)
|
||||||
|
|
||||||
# Build artifact
|
# Build artifact
|
||||||
mvn-rpmbuild \
|
%mvn_build -f
|
||||||
-Dmaven.test.skip=true \
|
|
||||||
install \
|
|
||||||
javadoc:aggregate
|
|
||||||
|
|
||||||
# Inject OSGi manifests
|
# Inject OSGi manifests
|
||||||
mkdir -p META-INF
|
mkdir -p META-INF
|
||||||
@ -135,31 +135,18 @@ touch META-INF/MANIFEST.MF
|
|||||||
zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF
|
zip -u target/%{name}-%{version}.jar META-INF/MANIFEST.MF
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
%mvn_install -J target/apidocs
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
|
||||||
cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
||||||
|
|
||||||
# poms
|
%files -f .mfiles
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
||||||
install -m 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
|
|
||||||
%add_maven_depmap -a qdox:qdox
|
|
||||||
|
|
||||||
# javadoc
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
||||||
cp -pr target/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc LICENSE.txt README.txt
|
%doc LICENSE.txt README.txt
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%{_mavenpomdir}/*
|
|
||||||
%{_mavendepmapfragdir}/*
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
%doc %{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.12.1-9
|
||||||
|
- Build with %%mvn_build
|
||||||
|
|
||||||
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.12.1-8
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.12.1-8
|
||||||
- Use Requires: java-headless rebuild (#1067528)
|
- Use Requires: java-headless rebuild (#1067528)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user