diff --git a/_service b/_service new file mode 100644 index 0000000..653c514 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + git + https://github.com/junit-team/junit4.git + r4.13.2 + r* + @PARENT_TAG@ + r(.*) + **/*.jar + junit + + + *.tar + xz + + + diff --git a/build.xml b/build.xml index 9a2242b..ead5ff0 100644 --- a/build.xml +++ b/build.xml @@ -1,395 +1,119 @@ - - - + - - - - - - - - - - - - - - - + - - - + + + - - - + - - - - - + + + + + - - - - - + - - + + + + + + + + + + + + + + + + - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - + + + + + + + - - - - + + + + + + + + + + + + + - - - - - - - - - + + + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/junit-4.13.2.tar.xz b/junit-4.13.2.tar.xz new file mode 100644 index 0000000..c5f0d20 --- /dev/null +++ b/junit-4.13.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e648f34b5103309b87a80c5cfa6342125f827a38858305e3dcab2bf7118f589d +size 850372 diff --git a/junit.spec b/junit.spec index e50a485..53aa817 100644 --- a/junit.spec +++ b/junit.spec @@ -23,7 +23,7 @@ Summary: Java regression test package License: EPL-1.0 Group: Development/Libraries/Java URL: https://junit.org/junit4/ -Source0: https://github.com/junit-team/junit4/archive/r%{version}.tar.gz +Source0: %{name}-%{version}.tar.xz Source1: build.xml Patch0: 0001-Port-to-hamcrest-2.2.patch BuildRequires: ant @@ -62,7 +62,7 @@ Obsoletes: %{name}4-manual < %{version}-%{release} Documentation for %{name}. %prep -%setup -q -n %{name}4-r%{version} +%setup -q %if %{?pkg_vcmp:%pkg_vcmp hamcrest >= 2.0}%{!?pkg_vcmp:0} %patch -P 0 -p1 %endif @@ -77,13 +77,13 @@ ln -s $(build-classpath hamcrest/all) lib/hamcrest-core-1.3.jar %endif %build -export CLASSPATH=$(build-classpath hamcrest) -ant jars javadoc -Dversion-status= +build-jar-repository -s lib hamcrest +ant jar javadoc %install # jars install -d -m 755 %{buildroot}%{_javadir} -install -m 644 %{name}%{version}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # compat symlink ln -sf %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}4.jar @@ -94,7 +94,7 @@ install -d -m 755 %{buildroot}%{_mavenpomdir} # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} -cp -pr %{name}%{version}/javadoc/* %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %fdupes -s %{buildroot}%{_javadocdir}/%{name} %check diff --git a/r4.13.2.tar.gz b/r4.13.2.tar.gz deleted file mode 100644 index 44d85c7..0000000 --- a/r4.13.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1b6d700fc374c82951d247f6d80238951d87c61661ceb151f9fbf40f65413561 -size 1077147