diff --git a/1.9.1.zip b/1.9.1.zip new file mode 100644 index 0000000..32a1a18 Binary files /dev/null and b/1.9.1.zip differ diff --git a/junitperf-1.9.1.pom b/junitperf-1.9.1.pom new file mode 100644 index 0000000..0e7784c --- /dev/null +++ b/junitperf-1.9.1.pom @@ -0,0 +1,36 @@ + + + + + 4.0.0 + + junitperf + junitperf + 1.9.1 + jar + + JUnitPerf + + JUnitPerf is a collection of JUnit test decorators used to measure the + performance and scalability of functionality contained within existing JUnit + tests. + + http://www.clarkware.com/software/JUnitPerf.html + 1999 + + + Clarkware Consulting, Inc. + http://www.clarkware.com/ + + + + + BSD License + http://www.clarkware.com/software/license.txt + + + + + diff --git a/junitperf.spec b/junitperf.spec new file mode 100644 index 0000000..3472a5b --- /dev/null +++ b/junitperf.spec @@ -0,0 +1,60 @@ +Name: junitperf +Version: 1.9.1 +Release: 1 +Summary: JUnit extension for performance and scalability testing +License: BSD +Source0: http://github.com/clarkware/junitperf/archive/1.9.1.zip +Source1: https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads/junitperf/junitperf/%{version}/junitperf-%{version}.pom +URL: http://github.com/clarkware/junitperf +BuildRequires: ant ant-junit java-devel javapackages-local junit >= 3.2 +BuildArch: noarch +Requires: junit >= 3.2 +%description +JUnitPerf is a collection of JUnit test decorators used to measure the +performance and scalability of functionality contained within existing +JUnit tests. + +%package help +Summary: API documentation for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} +%description help +%{summary}. + +%package demo +Summary: Demos and samples for %{name} +Requires: %{name} = %{version}-%{release} +%description demo +%{summary}. + +%prep +%setup -q -n %{name}-%{version} +find . -name "*.jar" -exec rm -f {} \; +find . -name "*.class" -exec rm -f {} \; + +%build +CLASSPATH=$(build-classpath junit) ant -Dbuild.sysclasspath=first jar test javadoc +%mvn_artifact %{SOURCE1} dist/junitperf-%{version}.jar + +%install +%mvn_install +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name} +install -d -m 0755 %{buildroot}%{_datadir}/%{name} +cp -pr samples %{buildroot}%{_datadir}/%{name} + +%files -f .mfiles +%doc LICENSE README docs/JUnitPerf.html +%dir %{_javadir}/%{name} + +%files help +%doc LICENSE +%{_javadocdir}/%{name} + +%files demo +%doc LICENSE +%{_datadir}/%{name} + +%changelog +* Sat Aug 22 2020 wangyue - 1.9.1-1 +- package init diff --git a/junitperf.yaml b/junitperf.yaml new file mode 100644 index 0000000..5af15ff --- /dev/null +++ b/junitperf.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/clarkware/junitperf +version_control: github +src_repo: clarkware/junitperf +tag_prefix: "^" +seperator: "."