[RPM (6.0)] [DIST generic] dbunit-2.4.2-1.jpp6
Ralph Apel <[email protected]>
| Newsgroups | gmane.linux.jpackage.announce |
|---|---|
| Message-ID | <[email protected]> |
Name : dbunit Relocations: (not relocatable) Version : 2.4.2 Vendor: JPackage Project Release : 1.jpp6 Build Date: Sun 05 Aug 2012 02:13:56 PM CEST Install Date: (not installed) Build Host: linux.fritz.box Group : Development/Testing Source RPM: (none) Size : 435432 License: LGPL Signature : (none) Packager : Ralph Apel <[email protected]> URL : http://dbunit.sourceforge.net/ Summary : DBUnit extension for JUnit Description : DbUnit is a JUnit extension (also usable with Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage. DbUnit has the ability to export and import your database data to and from XML datasets. Since version 2.0, DbUnit can works with very large dataset when use in streaming mode. DbUnit can also helps you to verify that your database data match expected set of values. --------------- Ralph Apel <r.apel at r-apel.de> 0:2.4.2-1 - 2.4.2 for JPP-6 --------------- dbunit.src: W: strange-permission dbunit-settings.xml 0674 dbunit.src: W: strange-permission dbunit.spec 0674 dbunit.src: W: strange-permission dbunit-2.4.2-jpp-depmap.xml 0674 dbunit.src: W: source-or-patch-not-bzipped dbunit-pom.patch dbunit.src: W: no-signature dbunit.src: W: name-repeated-in-summary DBUnit 1 packages and 0 specfiles checked; 0 errors, 6 warnings. --------------- Index: dbunit.spec =================================================================== RCS file: /home/projects/jpackage/cvs/rpms/free/dbunit/dbunit.spec,v retrieving revision 1.3 diff -u -r1.3 dbunit.spec --- dbunit.spec 1 Jul 2008 14:56:29 -0000 1.3 +++ dbunit.spec 5 Aug 2012 12:17:35 -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 @@ -28,55 +28,49 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} - # If you don't want to build with maven, and use straight ant instead, # give rpmbuild option '--without maven' -%define with_maven %{!?_without_maven:1}%{?_without_maven:0} -%define without_maven %{?_without_maven:1}%{!?_without_maven:0} - %define section free - +%define _binary_payload w9.gzdio +%define _source_payload w9.gzdio +%define _binary_filedigest_algorithm 1 +%define _source_filedigest_algorithm 1 Name: dbunit Summary: DBUnit extension for JUnit Url: http://dbunit.sourceforge.net/ -Version: 2.2.1 -Release: 2%{dist} +Version: 2.4.2 +Release: 1%{?dist} Epoch: 0 License: LGPL Group: Development/Testing -#Vendor: JPackage Project -#Distribution: JPackage -%if ! %{gcj_support} BuildArch: noarch -%endif Source0: %{name}-%{version}.tar.gz -# svn export http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/release-2-2-1/ dbunit-2.2.1 +# svn export http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/release-2.4.2/ dbunit-2.4.2 Source1: dbunit-settings.xml -Source2: dbunit-2.2.1-jpp-depmap.xml -Source3: dbunit-autogenerated-files.tar.gz -Patch0: dbunit-2.2.1-DbUnitTaskTest.patch -Patch1: dbunit-2.2.1-pom.patch +Source2: dbunit-2.4.2-jpp-depmap.xml +Patch0: dbunit-pom.patch BuildRequires: jpackage-utils >= 0:1.7.5 -BuildRequires: java-devel = 0:1.5.0 -BuildRequires: ant >= 0:1.6.5 +BuildRequires: java-devel >= 0:1.6.0 +BuildRequires: ant >= 0:1.7.1 BuildRequires: ant-junit BuildRequires: junit BuildRequires: junit-addons +BuildRequires: derby +BuildRequires: gsbase BuildRequires: hsqldb BuildRequires: mockmaker BuildRequires: mockobjects >= 0:0.09-17 BuildRequires: mockobjects-jdk1.4 >= 0:0.09-17 -%if %{with_maven} -BuildRequires: maven2 >= 0:2.0.7 -BuildRequires: maven2-default-skin +BuildRequires: maven2 >= 0:2.0.8 +BuildRequires: maven-skins BuildRequires: maven2-plugin-ant BuildRequires: maven2-plugin-changelog BuildRequires: maven2-plugin-changes +BuildRequires: maven2-plugin-checkstyle BuildRequires: maven2-plugin-compiler BuildRequires: maven2-plugin-compiler BuildRequires: maven2-plugin-install @@ -86,33 +80,28 @@ BuildRequires: maven2-plugin-resources BuildRequires: maven2-plugin-site BuildRequires: maven-surefire-plugin +BuildRequires: maven-surefire-provider-junit3 BuildRequires: maven-surefire-report-plugin BuildRequires: maven-release BuildRequires: maven-jxr -%endif -BuildRequires: jakarta-commons-collections -BuildRequires: jakarta-commons-lang -BuildRequires: jakarta-poi +BuildRequires: mojo-cobertura-maven-plugin +BuildRequires: mojo-maven2-plugin-jdepend +BuildRequires: apache-commons-collections +BuildRequires: apache-commons-lang +BuildRequires: apache-poi BuildRequires: slf4j -Requires: java >= 0:1.5.0 +Requires: java >= 0:1.6.0 Requires: ant Requires: junit Requires: junit-addons -Requires: jakarta-commons-collections -Requires: jakarta-commons-lang -Requires: jakarta-poi +Requires: apache-commons-collections +Requires: apache-commons-lang +Requires: apache-poi Requires: slf4j BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires(post): jpackage-utils >= 0:1.7.5 Requires(postun): jpackage-utils >= 0:1.7.5 -%if %{gcj_support} -BuildRequires: gnu-crypto -BuildRequires: java-gcj-compat-devel -Requires(post): java-gcj-compat -Requires(postun): java-gcj-compat -%endif - %description DbUnit is a JUnit extension (also usable with Ant) targeted for database-driven projects that, among other things, puts @@ -129,20 +118,16 @@ %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation -Requires(post): /bin/rm,/bin/ln -Requires(postun): /bin/rm %description javadoc %{summary}. -%if %{with_maven} %package manual Summary: Documents for %{name} Group: Development/Documentation %description manual %{summary}. -%endif %prep %setup -q @@ -154,50 +139,23 @@ sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml %patch0 -b .sav0 -%patch1 -b .sav1 -%if %{without_maven} -gzip -dc %{SOURCE3} | tar xf - -%endif +#%patch1 -b .sav1 %build -%if %{with_maven} export MAVEN_REPO_LOCAL=$(pwd)/m2_repo/repository mkdir external_repo ln -s %{_javadir} external_repo/JPP export M2_SETTINGS=$(pwd)/settings.xml -export JAVA_HOME=%{_jvmdir}/java-1.5.0 mvn-jpp \ -e \ -s $M2_SETTINGS \ -Dmaven.test.failure.ignore=true \ -Dmaven2.jpp.depmap.file=%{SOURCE2} \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ - ant:ant install javadoc:javadoc site - + install javadoc:javadoc site -%else -export JAVA_HOME=%{_jvmdir}/java-1.4.2 -export CLASSPATH=$(build-classpath \ -ant \ -ant-launcher \ -commons-collections \ -commons-lang \ -hsqldb \ -junit-addons \ -poi \ -mockobjects-core \ -mockobjects-jdk1.4 \ -mockmaker \ -slf4j/api \ -slf4j/nop \ -) -CLASSPATH=$CLASSPATH:target/classes:target/test-classes:target/csv -export JAVA_HOME=%{_jvmdir}/java-1.5.0 -export OPT_JAR_LIST="ant-launcher ant/ant-junit junit junit-addons" -ant -Dmaven.settings.offline=true -Dbuild.sysclasspath=only jar javadoc -%endif %install %__rm -rf %{buildroot} @@ -219,71 +177,41 @@ install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} install -m 644 LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} -%if %{with_maven} + # manual rm -rf target/site/apidocs cp -pr target/site $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} -%endif - -%if %{gcj_support} -export CLASSPATH=$(build-classpath gnu-crypto) -%{_bindir}/aot-compile-rpm -%endif %clean rm -rf $RPM_BUILD_ROOT -%post javadoc -rm -f %{_javadocdir}/%{name} -ln -s %{name}-%{version} %{_javadocdir}/%{name} - -%postun javadoc -if [ "$1" = "0" ]; then - rm -f %{_javadocdir}/%{name} -fi - %post %update_maven_depmap -%if %{gcj_support} -if [ -x %{_bindir}/rebuild-gcj-db ] -then - %{_bindir}/rebuild-gcj-db -fi -%endif %postun %update_maven_depmap -%if %{gcj_support} -if [ -x %{_bindir}/rebuild-gcj-db ] -then - %{_bindir}/rebuild-gcj-db -fi -%endif %files %defattr(-,root,root) %dir %{_docdir}/%{name}-%{version} %doc %{_docdir}/%{name}-%{version}/LICENSE.txt %{_javadir}/* -%{_datadir}/maven2 -%{_mavendepmapfragdir} -%if %{gcj_support} -%dir %attr(-,root,root) %{_libdir}/gcj/%{name} -%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.* -%endif +%{_datadir}/maven2/poms/* +%{_mavendepmapfragdir}/* %files javadoc %defattr(-,root,root) -%{_javadocdir}/%{name}-%{version} -%ghost %doc %{_javadocdir}/%{name} +%doc %{_javadocdir}/%{name}-%{version} +%doc %{_javadocdir}/%{name} -%if %{with_maven} %files manual %defattr(-,root,root) %{_docdir}/%{name}-%{version}/site -%endif %changelog +* Sat Aug 04 2012 Ralph Apel <r.apel at r-apel.de> 0:2.4.2-1 +- 2.4.2 for JPP-6 + * Tue Jul 01 2008 Ralph Apel <r.apel at r-apel.de> 0:2.2.1-2.jpp5 - Adapt to restructured mockobjects and require >= 0_0.09-17