2009-05-28 04:38:30 +02:00
|
|
|
#
|
2013-09-12 17:04:38 +02:00
|
|
|
# spec file for package junitperf
|
2009-05-28 04:38:30 +02:00
|
|
|
#
|
2022-03-20 13:26:22 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-05-28 04:38:30 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-03-20 13:26:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-28 04:38:30 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define section free
|
|
|
|
|
|
|
|
Name: junitperf
|
|
|
|
Version: 1.9.1
|
2013-09-12 17:04:38 +02:00
|
|
|
Release: 0
|
2009-05-28 04:38:30 +02:00
|
|
|
Summary: JUnit extension for performance and scalability testing
|
2011-12-06 18:20:58 +01:00
|
|
|
License: BSD-3-Clause
|
2009-05-28 04:38:30 +02:00
|
|
|
Group: Development/Libraries/Java
|
2022-03-20 13:26:22 +01:00
|
|
|
URL: http://www.clarkware.com/software/JUnitPerf.html
|
2009-05-28 04:38:30 +02:00
|
|
|
Source0: http://www.clarkware.com/software/junitperf-1.9.1.zip
|
2017-09-08 10:57:18 +02:00
|
|
|
Patch0: junitperf-1.9.1-javadoc.patch
|
2009-05-28 04:38:30 +02:00
|
|
|
Requires: junit >= 3.2
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: java-devel
|
2013-09-12 17:04:38 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2009-05-28 04:38:30 +02:00
|
|
|
BuildRequires: junit >= 3.2
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
JUnitPerf is a collection of JUnit test decorators used to measure the
|
|
|
|
performance and scalability of functionality contained within existing
|
|
|
|
JUnit tests.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: JUnit extension for performance and scalability testing
|
2013-09-12 17:04:38 +02:00
|
|
|
Group: Development/Libraries/Java
|
2009-05-28 04:38:30 +02:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
JUnitPerf is a collection of JUnit test decorators used to measure the
|
|
|
|
performance and scalability of functionality contained within existing
|
|
|
|
JUnit tests.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Summary: JUnit extension for performance and scalability testing
|
2013-09-12 17:04:38 +02:00
|
|
|
Group: Development/Libraries/Java
|
2009-05-28 04:38:30 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
JUnitPerf is a collection of JUnit test decorators used to measure the
|
|
|
|
performance and scalability of functionality contained within existing
|
|
|
|
JUnit tests.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-09-08 10:57:18 +02:00
|
|
|
%patch0 -p1
|
2009-05-28 04:38:30 +02:00
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" | xargs -t rm
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=
|
|
|
|
export OPT_JAR_LIST="junit ant/ant-junit"
|
2022-03-20 13:26:22 +01:00
|
|
|
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 -Dbuild.sysclasspath=first jar javadoc
|
2009-05-28 04:38:30 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
|
|
|
|
install -p -m 0644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
# javadoc
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
# demo
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc LICENSE README docs/JUnitPerf.html
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|