[RPM (6.0)] [DIST generic] junitperf-1.9.1-4.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : junitperf                    Relocations: (not relocatable)
Version     : 1.9.1                             Vendor: JPackage Project
Release     : 4.jpp6                        Build Date: Wed 15 Aug 2012 08:58:05 AM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Testing           Source RPM: (none)
Size        : 76272                            License: BSD
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://www.clarkware.com/software/JUnitPerf.html
Summary     : JUnit extension for performance and scalability testing
Description :
JUnitPerf is a collection of JUnit test decorators used to measure the
performance and scalability of functionality contained within existing
JUnit tests.

---------------
Ralph Apel <[email protected]> 0:1.9.1-4
- build for JPackage 6
- add pom and depmap frags
---------------
junitperf.src: W: no-signature
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

---------------
Index: junitperf.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/junitperf/junitperf.spec,v
retrieving revision 1.5
diff -u -r1.5 junitperf.spec
--- junitperf.spec	3 Oct 2008 15:39:04 -0000	1.5
+++ junitperf.spec	15 Aug 2012 06:59:51 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2008, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -29,22 +29,31 @@
 #
 
 %define section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           junitperf
 Version:        1.9.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Epoch:          0
 Summary:        JUnit extension for performance and scalability testing
 License:        BSD
 Group:          Development/Testing
 URL:            http://www.clarkware.com/software/JUnitPerf.html
 Source0:        http://www.clarkware.com/software/junitperf-1.9.1.zip
-Requires:       junit >= 0:3.2
-BuildRequires:  ant
+Source1:        https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads/junitperf/junitperf/1.9.1/junitperf-1.9.1.pom
+Requires:       java >= 0:1.6.0
+Requires:       junit
+BuildRequires:  ant >= 0:1.7.1
 BuildRequires:  ant-junit
-BuildRequires:  java-devel
-BuildRequires:  jpackage-utils >= 0:1.6
-BuildRequires:  junit >= 0:3.2
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  junit 
+Requires(post):   jpackage-utils >= 0:1.7.5
+Requires(postun): jpackage-utils >= 0:1.7.5
+
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
@@ -86,6 +95,12 @@
 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)
 
+# poms
+install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
+
+
 # javadoc
 install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -98,22 +113,33 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
 %files
 %defattr(0644,root,root,0755)
 %doc LICENSE README docs/JUnitPerf.html
-%{_javadir}/%{name}.jar
-%{_javadir}/%{name}-%{version}.jar
+%{_javadir}/*.jar
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}
-%{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}-%{version}
+%doc %{_javadocdir}/%{name}
 
 %files demo
 %defattr(0644,root,root,0755)
 %{_datadir}/%{name}
 
 %changelog
+* Wed Aug 15 2012 Ralph Apel <[email protected]> 0:1.9.1-4
+- build for JPackage 6
+- add pom and depmap frags
+
 * Fri Oct 03 2008 David Walluck <[email protected]> 0:1.9.1-3
 - build for JPackage 5
 - add ant-junit dependency
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.