!1 package init

Merge pull request !1 from wang_yue111/master
This commit is contained in:
openeuler-ci-bot 2020-09-03 14:08:31 +08:00 committed by Gitee
commit 70b7e6a1cb
4 changed files with 101 additions and 0 deletions

BIN
1.9.1.zip Normal file

Binary file not shown.

36
junitperf-1.9.1.pom Normal file
View File

@ -0,0 +1,36 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>junitperf</groupId>
<artifactId>junitperf</artifactId>
<version>1.9.1</version>
<packaging>jar</packaging>
<name>JUnitPerf</name>
<description>
JUnitPerf is a collection of JUnit test decorators used to measure the
performance and scalability of functionality contained within existing JUnit
tests.
</description>
<url>http://www.clarkware.com/software/JUnitPerf.html</url>
<inceptionYear>1999</inceptionYear>
<organization>
<name>Clarkware Consulting, Inc.</name>
<url>http://www.clarkware.com/</url>
</organization>
<licenses>
<license>
<name>BSD License</name>
<url>http://www.clarkware.com/software/license.txt</url>
</license>
</licenses>
</project>

60
junitperf.spec Normal file
View File

@ -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 <wangyue92@huawei.com> - 1.9.1-1
- package init

5
junitperf.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/clarkware/junitperf
version_control: github
src_repo: clarkware/junitperf
tag_prefix: "^"
seperator: "."