diff --git a/_service b/_service new file mode 100644 index 0000000..806d1fa --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + git + https://github.com/amaembo/jsr-305.git + d7734b13c61492982784560ed5b4f4bd6cf9bb2c + 3.0.2 + + + *.tar + xz + + + diff --git a/jsr-305-20130910svn.tgz b/jsr-305-20130910svn.tgz deleted file mode 100644 index cc6d9b4..0000000 --- a/jsr-305-20130910svn.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc848a5aa60cb6e3fe0cc677df766a915057de11ac07940af3ba4471ee739517 -size 38557 diff --git a/jsr-305-3.0.2.tar.xz b/jsr-305-3.0.2.tar.xz new file mode 100644 index 0000000..f8fd2cc --- /dev/null +++ b/jsr-305-3.0.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c5beee060062f2e34ce81bf67a22e105c51e5b143d4d700b79f18a75788ffed +size 25324 diff --git a/jsr-305-ri-build.xml b/jsr-305-ri-build.xml index b3e3382..e200c46 100644 --- a/jsr-305-ri-build.xml +++ b/jsr-305-ri-build.xml @@ -1,40 +1,115 @@ - - - - - - - - - - - + - - - - + - - - - - + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - diff --git a/jsr-305.spec b/jsr-305.spec index e290ba5..c2bc486 100644 --- a/jsr-305.spec +++ b/jsr-305.spec @@ -1,7 +1,7 @@ # # spec file for package jsr-305 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,14 @@ # -%global svn_revision 51 -%global svn_date 20130910 Name: jsr-305 -Version: 0.1+%{svn_date} +Version: 3.0.2 Release: 0 Summary: Correctness annotations for Java code -# The majority of code is BSD-licensed, but some Java sources -# are licensed under CC-BY license, see: $ grep -r Creative . License: BSD-3-Clause Group: Development/Libraries/Java -URL: http://code.google.com/p/jsr-305/ -# There has been no official release yet. This is a snapshot of the Subversion -# repository as of 10 Sep 2013. Use the following commands to generate the -# tarball: -# svn export -r %{svn_revision} http://%{name}.googlecode.com/svn/trunk %{name} -# tar -czvf %{name}-%{svn_date}svn.tgz %{name} -Source0: jsr-305-%{svn_date}svn.tgz +URL: https://code.google.com/p/jsr-305/ +Source0: %{name}-%{version}.tar.xz Source1: jsr-305-ri-build.xml # File containing URL to CC-BY license text Source2: NOTICE-CC-BY.txt @@ -55,7 +46,7 @@ Detection. This package contains the API documentation for %{name}. %prep -%setup -q -n %{name} +%setup -q cp -a %{SOURCE1} ri/build.xml cp %{SOURCE2} NOTICE-CC-BY dos2unix sampleUses/pom.xml @@ -68,27 +59,24 @@ for module in ri tcl sampleUses proposedAnnotations; do done %build -export OPT_JAR_LIST=: -export CLASSPATH= pushd ri -%{ant} -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \ - -Dversion=%{version} -Djava.javadoc=%{_javadocdir}/java +%{ant} jar javadoc popd %install # jars install -dm 0755 %{buildroot}%{_javadir} -install -pm 0644 ri/jsr-305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +install -pm 0644 ri/target/jsr305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar ln -s %{name}.jar %{buildroot}%{_javadir}/jsr305.jar # poms install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} install -pm 0644 ri/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom -%add_maven_depmap %{name}.pom %{name}.jar -a com.google.code.findbugs:jsr305 +%add_maven_depmap %{name}.pom %{name}.jar -a org.jsr-305:ri # javadoc install -dm 0755 %{buildroot}%{_javadocdir}/%{name} -cp -pr ri/javadoc/* %{buildroot}%{_javadocdir}/%{name} +cp -pr ri/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles