Compile with source/target 1.5

This commit is contained in:
Mikolaj Izdebski 2014-06-09 08:24:09 +02:00
parent 2a7916fcac
commit a7edf57727
2 changed files with 21 additions and 2 deletions

13
atinject-target-1.5.patch Normal file
View File

@ -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="<font size='-1'>Copyright (C) 2009 <a href='http://code.google.com/p/atinject/'>\

View File

@ -1,10 +1,11 @@
Name: atinject Name: atinject
Version: 1 Version: 1
Release: 15.20100611svn86%{?dist} Release: 16.20100611svn86%{?dist}
Summary: Dependency injection specification for Java (JSR-330) Summary: Dependency injection specification for Java (JSR-330)
License: ASL 2.0 License: ASL 2.0
URL: http://code.google.com/p/atinject/ URL: http://code.google.com/p/atinject/
BuildArch: noarch BuildArch: noarch
# latest release doesn't generate javadocs and there is no source # latest release doesn't generate javadocs and there is no source
# tarball with pom.xml or ant build file # tarball with pom.xml or ant build file
# #
@ -15,6 +16,9 @@ Source0: %{name}-%{version}.tar.xz
Source1: MANIFEST.MF Source1: MANIFEST.MF
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt 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: java-devel
BuildRequires: junit BuildRequires: junit
Requires: java-headless Requires: java-headless
@ -42,7 +46,6 @@ Requires: junit
%description tck %description tck
%{summary}. %{summary}.
%prep %prep
%setup -q %setup -q
cp %{SOURCE2} LICENSE cp %{SOURCE2} LICENSE
@ -92,6 +95,9 @@ ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.inject/
%doc %{_javadocdir}/%{name} %doc %{_javadocdir}/%{name}
%changelog %changelog
* Mon Jun 9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-16.20100611svn86
- Compile with source/target 1.5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-15.20100611svn86 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-15.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild