From 7e5a74615a744ce34463dc6f5568e9291b48fe32c9aa4b117b570f0f0860ada5 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 28 May 2009 02:38:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/junitperf?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + junitperf-1.9.1.zip | 3 ++ junitperf.changes | 5 ++ junitperf.spec | 114 ++++++++++++++++++++++++++++++++++++++++++++ ready | 0 6 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 junitperf-1.9.1.zip create mode 100644 junitperf.changes create mode 100644 junitperf.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/junitperf-1.9.1.zip b/junitperf-1.9.1.zip new file mode 100644 index 0000000..310ee97 --- /dev/null +++ b/junitperf-1.9.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbe0b55e61030a57bc2c8609ac7214fdfd2adedab0a18629778259230a59206a +size 69605 diff --git a/junitperf.changes b/junitperf.changes new file mode 100644 index 0000000..0387ef7 --- /dev/null +++ b/junitperf.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 12 15:46:45 CEST 2009 - mvyskocil@suse.cz + +- Initial packaging of junitperf 1.9.1 from jpp 5.0 + diff --git a/junitperf.spec b/junitperf.spec new file mode 100644 index 0000000..a2bbbdc --- /dev/null +++ b/junitperf.spec @@ -0,0 +1,114 @@ +# +# spec file for package junitperf (Version 1.9.1) +# +# Copyright (c) 2009 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/ +# + + +%define section free + +Name: junitperf +Version: 1.9.1 +Release: 2 +Summary: JUnit extension for performance and scalability testing +License: BSD 3-Clause +Group: Development/Libraries/Java +Url: http://www.clarkware.com/software/JUnitPerf.html +Source0: http://www.clarkware.com/software/junitperf-1.9.1.zip +Requires: junit >= 3.2 +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: java-devel +BuildRequires: jpackage-utils >= 1.6 +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 +License: BSD 3-Clause +Group: Development/Libraries/Java +Summary: JUnit extension for performance and scalability testing + +%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 +License: BSD 3-Clause +Group: Development/Libraries/Java +Summary: JUnit extension for performance and scalability testing +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 +# remove all binary libs +find . -name "*.jar" | xargs -t rm + +%build +export CLASSPATH= +export OPT_JAR_LIST="junit ant/ant-junit" +ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dbuild.sysclasspath=first jar test javadoc + +%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 +* Tue May 12 2009 mvyskocil@suse.cz +- Initial packaging of junitperf 1.9.1 from jpp 5.0 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4