pre-update
OBS-URL: https://build.opensuse.org/package/show/Java:packages/junit?expand=0&rev=5
This commit is contained in:
parent
6187197838
commit
0f3446bf0c
113
junit.spec
113
junit.spec
@ -1,113 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package junit
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
||||||
#
|
|
||||||
# All modifications and additions to the file contributed by third parties
|
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
|
||||||
# upon. The license for this file, and modifications and additions to the
|
|
||||||
# file, is the same license as for the pristine package itself (unless the
|
|
||||||
# license for the pristine package is not an Open Source License, in which
|
|
||||||
# case the license is the MIT License). An "Open Source License" is a
|
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
|
||||||
# published by the Open Source Initiative.
|
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
# icecream 0
|
|
||||||
|
|
||||||
|
|
||||||
%define name junit
|
|
||||||
%define version 3.8.2
|
|
||||||
%define release 4jpp
|
|
||||||
%define section free
|
|
||||||
|
|
||||||
Name: junit
|
|
||||||
BuildRequires: ant
|
|
||||||
BuildRequires: java-1_5_0-gcj-compat-devel
|
|
||||||
BuildRequires: unzip
|
|
||||||
BuildRequires: xml-commons-apis
|
|
||||||
Version: 3.8.2
|
|
||||||
Release: 0
|
|
||||||
Summary: Java Regression Test Package
|
|
||||||
License: IPL-1.0
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Url: http://www.junit.org/
|
|
||||||
Source: http://osdn.dl.sourceforge.net/junit/junit%{version}.zip
|
|
||||||
Source1: %{name}%{version}-build.xml
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
|
||||||
JUnit is a regression testing framework written by Erich Gamma and Kent
|
|
||||||
Beck. It is used by the developer who implements unit tests in Java.
|
|
||||||
JUnit is open source software, released under the IBM Public License
|
|
||||||
and hosted on SourceForge.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package manual
|
|
||||||
Summary: Manual for junit
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
|
|
||||||
%description manual
|
|
||||||
JUnit is a regression testing framework written by Erich Gamma and Kent
|
|
||||||
Beck. It is used by the developer who implements unit tests in Java.
|
|
||||||
JUnit is Open Source Software, released under the IBM Public License
|
|
||||||
and hosted on SourceForge.
|
|
||||||
|
|
||||||
This package contains the manual for JUnit.
|
|
||||||
|
|
||||||
%package demo
|
|
||||||
Summary: Demonstration and sample files for junit
|
|
||||||
Group: Development/Libraries/Java
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description demo
|
|
||||||
JUnit is a regression testing framework written by Erich Gamma and Kent
|
|
||||||
Beck. It is used by the developer who implements unit tests in Java.
|
|
||||||
JUnit is Open Source Software, released under the IBM Public License
|
|
||||||
and hosted on SourceForge.
|
|
||||||
|
|
||||||
This package contains demonstration and sample files for JUnit.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{name}%{version}
|
|
||||||
# extract sources
|
|
||||||
jar xvf src.jar
|
|
||||||
# % patch
|
|
||||||
cp %{SOURCE1} build.xml
|
|
||||||
|
|
||||||
%build
|
|
||||||
ant dist
|
|
||||||
|
|
||||||
%install
|
|
||||||
# jars
|
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
||||||
install -m 644 %{name}%{version}/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
|
||||||
# demo
|
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
||||||
cp -pr %{name}%{version}/%{name}/* $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc README.html
|
|
||||||
%doc cpl-v10.html
|
|
||||||
%{_javadir}/*
|
|
||||||
%dir %{_datadir}/%{name}
|
|
||||||
|
|
||||||
%files manual
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc %{name}%{version}/doc/*
|
|
||||||
|
|
||||||
%files demo
|
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%{_datadir}/%{name}/*
|
|
||||||
|
|
||||||
%changelog
|
|
@ -1,108 +0,0 @@
|
|||||||
<!-- JUnit build script using ant 1.4 -->
|
|
||||||
<project name="junit" default="dist" basedir=".">
|
|
||||||
<property file="${user.home}/.junit.properties" />
|
|
||||||
<property name="build.compiler" value="classic" />
|
|
||||||
<property name="version" value="3.8.2" />
|
|
||||||
<property name="dist" value="junit${version}" />
|
|
||||||
<property name="versionfile" value="junit/runner/Version.java" />
|
|
||||||
<property name="zipfile" value="${dist}.zip" />
|
|
||||||
<target name="init">
|
|
||||||
<tstamp/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="versiontag" depends="init">
|
|
||||||
<filter token="version" value="${version}" />
|
|
||||||
<copy
|
|
||||||
file="${versionfile}"
|
|
||||||
tofile="${versionfile}tmp"
|
|
||||||
filtering="on"
|
|
||||||
/>
|
|
||||||
<move file="${versionfile}tmp" tofile="${versionfile}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="build" depends="versiontag">
|
|
||||||
<javac
|
|
||||||
srcdir="."
|
|
||||||
destdir="."
|
|
||||||
debug="on"
|
|
||||||
/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="dist" depends="build">
|
|
||||||
<delete dir="${dist}" />
|
|
||||||
<mkdir dir="${dist}" />
|
|
||||||
<jar
|
|
||||||
jarfile="${dist}/src.jar"
|
|
||||||
basedir="."
|
|
||||||
excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.class, doc/**, README.html, .classpath, .project, cpl-v10.html"
|
|
||||||
/>
|
|
||||||
<jar
|
|
||||||
jarfile="${dist}/junit.jar"
|
|
||||||
basedir="."
|
|
||||||
excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.java, doc/**, README.html, build.xml, jar-manifest.txt, .classpath, .project, cpl-v10.html"
|
|
||||||
/>
|
|
||||||
<copy todir="${dist}/junit/samples">
|
|
||||||
<fileset dir="junit/samples" />
|
|
||||||
</copy>
|
|
||||||
<copy todir="${dist}/junit/tests">
|
|
||||||
<fileset dir="junit/tests" />
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
|
|
||||||
<delete file="${dist}/junit/tests/runner/test.jar"/>
|
|
||||||
<jar jarfile="${dist}/junit/tests/runner/test.jar"
|
|
||||||
basedir="."
|
|
||||||
includes="junit/tests/runner/LoadedFromJar.class"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<copy todir="${dist}/doc">
|
|
||||||
<fileset dir="doc"/>
|
|
||||||
</copy>
|
|
||||||
<copy file="README.html" tofile="${dist}/README.html" />
|
|
||||||
<copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html" />
|
|
||||||
|
|
||||||
<java classname="junit.textui.TestRunner" fork="yes">
|
|
||||||
<arg value="junit.samples.AllTests" />
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="${dist}" />
|
|
||||||
<pathelement location="${dist}/junit.jar" />
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="zip" depends="dist">
|
|
||||||
<zip
|
|
||||||
zipfile="${zipfile}"
|
|
||||||
basedir="."
|
|
||||||
includes="${dist}/**"
|
|
||||||
/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="awtui" depends="dist">
|
|
||||||
<java classname="junit.awtui.TestRunner" fork="yes">
|
|
||||||
<arg value="junit.samples.AllTests" />
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="${dist}" />
|
|
||||||
<pathelement location="${dist}/junit.jar" />
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="swingui" depends="dist">
|
|
||||||
<java classname="junit.swingui.TestRunner" fork="yes">
|
|
||||||
<arg value="junit.samples.AllTests" />
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="${dist}" />
|
|
||||||
<pathelement location="${dist}/junit.jar" />
|
|
||||||
</classpath>
|
|
||||||
</java>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${dist}" quiet="true"/>
|
|
||||||
<delete file="${zipfile}" quiet="true"/>
|
|
||||||
<delete>
|
|
||||||
<fileset dir="${basedir}" includes="**/*.class" />
|
|
||||||
</delete>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aae23d20e6f4dc45b4bf0b10fedcbd209c100342a0cafce1aa07d2da6da1f24a
|
|
||||||
size 461426
|
|
Loading…
x
Reference in New Issue
Block a user