From a7edf5772718a77f6d2521adc1b9dad3bc42c8a9 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 9 Jun 2014 08:24:09 +0200 Subject: [PATCH] Compile with source/target 1.5 --- atinject-target-1.5.patch | 13 +++++++++++++ atinject.spec | 10 ++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 atinject-target-1.5.patch diff --git a/atinject-target-1.5.patch b/atinject-target-1.5.patch new file mode 100644 index 0000000..69f07f0 --- /dev/null +++ b/atinject-target-1.5.patch @@ -0,0 +1,13 @@ +--- atinject-1/build.sh~ 2009-10-14 01:36:31.000000000 +0200 ++++ atinject-1/build.sh 2014-06-09 08:21:06.686274678 +0200 +@@ -10,8 +10,8 @@ + mkdir -p build/tck/dist + + # Compile classes. +-javac -g -d build/classes `find src -name *.java` +-javac -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ ++javac -source 1.5 -target 1.5 -g -d build/classes `find src -name *.java` ++javac -source 1.5 -target 1.5 -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ + `find tck -name *.java` + + FOOTER="Copyright (C) 2009 \ diff --git a/atinject.spec b/atinject.spec index 9edf3bf..a70a4dc 100644 --- a/atinject.spec +++ b/atinject.spec @@ -1,10 +1,11 @@ Name: atinject Version: 1 -Release: 15.20100611svn86%{?dist} +Release: 16.20100611svn86%{?dist} Summary: Dependency injection specification for Java (JSR-330) License: ASL 2.0 URL: http://code.google.com/p/atinject/ BuildArch: noarch + # latest release doesn't generate javadocs and there is no source # tarball with pom.xml or ant build file # @@ -15,6 +16,9 @@ Source0: %{name}-%{version}.tar.xz Source1: MANIFEST.MF Source2: http://www.apache.org/licenses/LICENSE-2.0.txt +# Compile with source/target 1.5 +Patch0: %{name}-target-1.5.patch + BuildRequires: java-devel BuildRequires: junit Requires: java-headless @@ -42,7 +46,6 @@ Requires: junit %description tck %{summary}. - %prep %setup -q cp %{SOURCE2} LICENSE @@ -92,6 +95,9 @@ ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.inject/ %doc %{_javadocdir}/%{name} %changelog +* Mon Jun 9 2014 Mikolaj Izdebski - 1-16.20100611svn86 +- Compile with source/target 1.5 + * Sat Jun 07 2014 Fedora Release Engineering - 1-15.20100611svn86 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild