1
0
Fridrich Strba 2017-09-18 11:46:56 +00:00 committed by Git OBS Bridge
parent 672e2d312c
commit 1161e6f735
3 changed files with 25 additions and 31 deletions

View File

@ -1,22 +0,0 @@
Index: commons-modeler-2.0-src/build.xml
===================================================================
--- commons-modeler-2.0-src.orig/build.xml
+++ commons-modeler-2.0-src/build.xml
@@ -156,6 +156,8 @@
<javac srcdir="${source.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
+ source="1.4"
+ target="1.4"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
@@ -276,6 +278,8 @@
<target name="compile.tests" depends="compile"
description="Compile unit test cases">
<javac srcdir="${test.home}"
+ source="1.4"
+ target="1.4"
destdir="${build.home}/tests"
debug="${compile.debug}"
deprecation="${compile.deprecation}"

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Sep 18 11:43:04 UTC 2017 - fstrba@suse.com
- Removed patch:
* jakarta-commons-modeler-java14compat.patch
- Not needed, since we pass those source and target levels to
ant on command-line
- Clean spec file and fix a warning
- Specify to ant dependencies on command-line instead of using
system-wide classpath
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 20 18:21:44 UTC 2017 - tchvatal@suse.com Sat May 20 18:21:44 UTC 2017 - tchvatal@suse.com

View File

@ -26,8 +26,8 @@ License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
Url: http://jakarta.apache.org/commons/modeler/ Url: http://jakarta.apache.org/commons/modeler/
Source0: %{short_name}-%{version}-src.tar.bz2 Source0: %{short_name}-%{version}-src.tar.bz2
Patch0: %{name}-java14compat.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: fdupes
BuildRequires: jakarta-commons-digester BuildRequires: jakarta-commons-digester
BuildRequires: javapackages-tools BuildRequires: javapackages-tools
BuildRequires: junit BuildRequires: junit
@ -42,9 +42,8 @@ Requires: jaxp_parser_impl
Requires: jaxp_transform_impl Requires: jaxp_transform_impl
Requires: mx4j Requires: mx4j
Requires: xml-commons-apis Requires: xml-commons-apis
Provides: %{short_name} Provides: %{short_name} = %{version}-%{release}
Obsoletes: %{short_name} Obsoletes: %{short_name} < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%description %description
@ -68,13 +67,20 @@ Modeler Package.
%prep %prep
%setup -q -n %{short_name}-%{version}-src %setup -q -n %{short_name}-%{version}-src
%patch0 -p1
# remove all binary libs # remove all binary libs
find . -name "*.jar" -exec rm -f {} \; find . -name "*.jar" -exec rm -f {} \;
%build %build
export CLASSPATH=$(build-classpath xml-commons-apis jaxp_parser_impl jaxp_transform_impl mx4j/mx4j-jmx junit commons-beanutils commons-collections commons-digester commons-logging) ant \
ant dist -Dant.jar=$(build-classpath ant) \
-Djaxp.parser.jar=$(build-classpath jaxp_parser_impl) \
-Djaxp.xalan.jar=$(build-classpath jaxp_trasform_impl) \
-Djmx.jar=$(build-classpath mx4j/mx4j-jmx) \
-Djunit.jar=$(build-classpath junit) \
-Dcommons-digester.jar=$(build-classpath commons-digester) \
-Dcommons-logging.jar=$(build-classpath commons-logging) \
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
dist
%install %install
# jars # jars
@ -85,14 +91,13 @@ cp -a dist/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
# javadoc # javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -a dist/docs/* %{buildroot}%{_javadocdir}/%{name} cp -a dist/docs/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
%files %files
%defattr(0644,root,root,0755)
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt xdocs %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt xdocs
%{_javadir}/* %{_javadir}/*
%files javadoc %files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %changelog