- disable javadoc build
OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant-contrib?expand=0&rev=9
This commit is contained in:
parent
d135d8c5de
commit
661a4313cf
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 22 12:02:04 UTC 2013 - mvyskocil@suse.com
|
||||||
|
|
||||||
|
- disable javadoc build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 17 11:08:43 UTC 2011 - jengelh@medozas.de
|
Sat Sep 17 11:08:43 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ant-contrib
|
# spec file for package ant-contrib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -14,20 +14,20 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# icecream 0
|
# icecream 0
|
||||||
|
|
||||||
|
|
||||||
%define with_junit 0
|
%define with_junit 0
|
||||||
%define section free
|
%define section free
|
||||||
%define ant_minimal_version 1.7.1
|
%define ant_minimal_version 1.7.1
|
||||||
Summary: Collection of tasks for Ant
|
Summary: Collection of tasks for Ant
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
|
||||||
Name: ant-contrib
|
Name: ant-contrib
|
||||||
Version: 1.0b2
|
Version: 1.0b2
|
||||||
Release: 47
|
Release: 0
|
||||||
License: ASLv..
|
|
||||||
Url: http://ant-contrib.sourceforge.net/
|
Url: http://ant-contrib.sourceforge.net/
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Source0: http://prdownloads.sourceforge.net/ant-contrib/ant-contrib-1.0b2-src.tar.bz2
|
Source0: http://prdownloads.sourceforge.net/ant-contrib/ant-contrib-1.0b2-src.tar.bz2
|
||||||
#Is from apache-ant-1.7.0-src.zip
|
#Is from apache-ant-1.7.0-src.zip
|
||||||
Source1: BuildFileTest.java
|
Source1: BuildFileTest.java
|
||||||
@ -36,10 +36,10 @@ Patch1: ant-contrib-ant-1.7.0.patch
|
|||||||
Patch2: ant-contrib-BuildFileTest_java.patch
|
Patch2: ant-contrib-BuildFileTest_java.patch
|
||||||
#PATCH-FIX-OPENSUSE: bnc#644661
|
#PATCH-FIX-OPENSUSE: bnc#644661
|
||||||
Patch3: ant-contrib-1.0b2-enable-for-task.patch
|
Patch3: ant-contrib-1.0b2-enable-for-task.patch
|
||||||
BuildRequires: jpackage-utils >= 1.6
|
|
||||||
BuildRequires: ant >= %{ant_minimal_version}
|
BuildRequires: ant >= %{ant_minimal_version}
|
||||||
BuildRequires: bcel >= 5.1
|
BuildRequires: bcel >= 5.1
|
||||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
||||||
|
BuildRequires: jpackage-utils >= 1.6
|
||||||
%if %{with_junit}
|
%if %{with_junit}
|
||||||
BuildRequires: ant-junit >= %{ant_minimal_version}
|
BuildRequires: ant-junit >= %{ant_minimal_version}
|
||||||
Requires: junit >= 3.8.1
|
Requires: junit >= 3.8.1
|
||||||
@ -53,23 +53,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
The Ant-Contrib project is a collection of tasks (and at one point
|
The Ant-Contrib project is a collection of tasks (and at one point
|
||||||
maybe types and other tools) for Apache Ant.
|
maybe types and other tools) for Apache Ant.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package javadoc
|
|
||||||
License: ASLv..
|
|
||||||
Summary: Collection of tasks for Ant
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires(post): /bin/rm,/bin/ln
|
|
||||||
Requires(postun): /bin/rm
|
|
||||||
|
|
||||||
%description javadoc
|
|
||||||
The Ant-Contrib project is a collection of tasks (and at one point
|
|
||||||
maybe types and other tools) for Apache Ant.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package manual
|
%package manual
|
||||||
License: ASLv..
|
|
||||||
Summary: Collection of tasks for Ant
|
Summary: Collection of tasks for Ant
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
|
|
||||||
@ -77,13 +61,14 @@ Group: Development/Libraries/Java
|
|||||||
The Ant-Contrib project is a collection of tasks (and at one point
|
The Ant-Contrib project is a collection of tasks (and at one point
|
||||||
maybe types and other tools) for Apache Ant.
|
maybe types and other tools) for Apache Ant.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -n %{name}-%{version}
|
%setup -q -c -n %{name}-%{version}
|
||||||
for j in $(find . -name "*.jar"); do
|
for j in $(find . -name "*.jar"); do
|
||||||
mv $j $j.no
|
mv $j $j.no
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mv ant-contrib/manual/LICENSE.txt .
|
||||||
|
|
||||||
# TODO: this test fails
|
# TODO: this test fails
|
||||||
#rm ant-contrib/test/src/net/sf/antcontrib/logic/TryCatchTaskTest.java
|
#rm ant-contrib/test/src/net/sf/antcontrib/logic/TryCatchTaskTest.java
|
||||||
%patch0 -b .sav
|
%patch0 -b .sav
|
||||||
@ -105,7 +90,7 @@ cd ant-contrib
|
|||||||
export CLASSPATH=$(build-classpath bcel junit)
|
export CLASSPATH=$(build-classpath bcel junit)
|
||||||
%endif
|
%endif
|
||||||
ant \
|
ant \
|
||||||
all \
|
jar \
|
||||||
%if %{with_junit}
|
%if %{with_junit}
|
||||||
test
|
test
|
||||||
%endif
|
%endif
|
||||||
@ -115,38 +100,16 @@ ant \
|
|||||||
install -Dpm 644 %{name}/build/lib/%{name}.jar \
|
install -Dpm 644 %{name}/build/lib/%{name}.jar \
|
||||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||||
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
# javadoc
|
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
||||||
cp -pr %{name}/build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
|
||||||
rm -rf %{name}/build/docs/api
|
|
||||||
# manual
|
# manual
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
||||||
cp -pr %{name}/build/docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
||||||
|
|
||||||
%post javadoc
|
|
||||||
rm -f %{_javadocdir}/%{name}
|
|
||||||
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%postun javadoc
|
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
rm -f %{_javadocdir}/%{name}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
%doc LICENSE.txt
|
||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
|
|
||||||
|
|
||||||
%files javadoc
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc %{_javadocdir}/%{name}-%{version}
|
|
||||||
%ghost %doc %{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %{_docdir}/%{name}-%{version}
|
%doc %{name}/manual
|
||||||
%exclude %{_docdir}/%{name}-%{version}/LICENSE.txt
|
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user