# Copyright (c) 2000-2007, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Name: junitperf Version: 1.9.1 Release: 4.2%{?dist} Epoch: 0 Summary: JUnit extension for performance and scalability testing License: BSD Group: Development/Testing Source0: http://www.clarkware.com/software/junitperf-1.9.1.zip URL: http://www.clarkware.com/software/JUnitPerf.html BuildRequires: ant, ant-junit, junit >= 0:3.2, jpackage-utils >= 0:1.6 BuildArch: noarch Requires: java Requires: jpackage-utils Requires: junit >= 0:3.2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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 Group: Documentation Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %package demo Group: Development/Testing Summary: Demos for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} %description demo Demonstrations and samples for %{name}. # ----------------------------------------------------------------------------- %prep %setup -q -n %{name}-%{version} # remove all binary libs find . -name "*.jar" -exec rm -f {} \; # ----------------------------------------------------------------------------- %build CLASSPATH=$(build-classpath junit) ant -Dbuild.sysclasspath=first jar test javadoc # ----------------------------------------------------------------------------- %install rm -rf $RPM_BUILD_ROOT # jars install -d -m 0755 $RPM_BUILD_ROOT%{_javadir} install -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}/* %files javadoc %defattr(0644,root,root,0755) %doc %{_javadocdir}/* %files demo %defattr(0644,root,root,0755) %{_datadir}/%{name} # ----------------------------------------------------------------------------- %changelog * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.1-4.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.9.1-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.9.1-2.2 - drop repotag * Thu Feb 15 2007 Deepak Bhole <dbhole@redhat.com> - 0:1.9.1-2jpp.1 - Fixed per Fedora spec * Wed Nov 09 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.9.1-1jpp - Upgrade to 1.9.1 - Add javadoc ghost symlink and post/postun * Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.8-3jpp - Rebuild with ant-1.6.2 * Thu Mar 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.8-2jpp - Adapted to JPackage 1.5. * Wed Mar 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 1.8-1jpp - Update to 1.8. - Fix Group tags. - Run unit tests during build. * Tue Jul 16 2002 Ville Skyttä <ville.skytta at iki.fi> 1.7-1jpp - Update to 1.7. - Use sed instead of bash 2 extension when symlinking jars during build. - Add Distribution tag. * Mon Feb 04 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.6-1jpp - first jpp release