Build with maven 3.x.
Adapt to current guidelines.
This commit is contained in:
parent
8eacfe004c
commit
ce3bcb4a73
BIN
build.xml.tar.gz
BIN
build.xml.tar.gz
Binary file not shown.
@ -1,47 +0,0 @@
|
|||||||
<settings>
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>JPP</id>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>internal</id>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__JPP_URL_PLACEHOLDER__</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>external</id>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__JAVADIR_PLACEHOLDER__</url>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>local</id>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>plugins-internal</id>
|
|
||||||
<name>plugins-internal</name>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__JPP_URL_PLACEHOLDER__</url>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>plugins-external</id>
|
|
||||||
<name>plugins-external</name>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__JAVADIR_PLACEHOLDER__</url>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>plugins-maven</id>
|
|
||||||
<name>plugins-maven</name>
|
|
||||||
<layout>jpp</layout>
|
|
||||||
<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
<activeProfiles>
|
|
||||||
<activeProfile>JPP</activeProfile>
|
|
||||||
</activeProfiles>
|
|
||||||
</settings>
|
|
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
|
Version: 1.12
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://qdox.codehaus.org/
|
URL: http://qdox.codehaus.org/
|
||||||
@ -46,7 +46,7 @@ BuildRequires: ant-junit >= 0:1.6
|
|||||||
BuildRequires: junit >= 0:3.8.1
|
BuildRequires: junit >= 0:3.8.1
|
||||||
BuildRequires: byaccj
|
BuildRequires: byaccj
|
||||||
BuildRequires: jflex
|
BuildRequires: jflex
|
||||||
BuildRequires: maven2 >= 2.0.7
|
BuildRequires: maven
|
||||||
BuildRequires: maven-ant-plugin
|
BuildRequires: maven-ant-plugin
|
||||||
BuildRequires: maven-antrun-plugin
|
BuildRequires: maven-antrun-plugin
|
||||||
BuildRequires: maven-assembly-plugin
|
BuildRequires: maven-assembly-plugin
|
||||||
@ -71,8 +71,6 @@ Requires(post): jpackage-utils >= 0:1.7.4
|
|||||||
Requires(postun): jpackage-utils >= 0:1.7.4
|
Requires(postun): jpackage-utils >= 0:1.7.4
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
||||||
|
|
||||||
Obsoletes: qdox-manual <= 0:1.9.2
|
Obsoletes: qdox-manual <= 0:1.9.2
|
||||||
|
|
||||||
|
|
||||||
@ -105,23 +103,14 @@ ln -s $(build-classpath jflex) bootstrap
|
|||||||
#ln -s $(build-classpath java-cup) bootstrap
|
#ln -s $(build-classpath java-cup) bootstrap
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
mvn-rpmbuild \
|
||||||
mkdir -p $MAVEN_REPO_LOCAL
|
|
||||||
|
|
||||||
mvn-jpp \
|
|
||||||
-e \
|
|
||||||
-Dmaven.test.skip=true \
|
-Dmaven.test.skip=true \
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
||||||
ant:ant install javadoc:javadoc
|
ant:ant install javadoc:javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
||||||
cp -p target/%{name}-%{version}.jar \
|
cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
||||||
|
|
||||||
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
|
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
|
||||||
%add_to_maven_depmap com.thoughtworks.qdox qdox %{version} JPP %{name}
|
%add_to_maven_depmap com.thoughtworks.qdox qdox %{version} JPP %{name}
|
||||||
@ -133,12 +122,8 @@ install -m 644 pom.xml \
|
|||||||
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
cp -pr target/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr target/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -147,19 +132,19 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc LICENSE.txt README.txt
|
%doc LICENSE.txt README.txt
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/*
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc %{_javadocdir}/%{name}-%{version}
|
|
||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 10 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.12-3
|
||||||
|
- Build with maven 3.x.
|
||||||
|
- Adapt to current guidelines.
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-2
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.12-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user