From c9625475a5429a1016c376a64ebe291848e0f4157b9bca301d0ffd66c754dd08 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 25 May 2009 02:36:37 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hamcrest?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + hamcrest-1.1-build.patch | 42 +++++ hamcrest-1.1-no-integration.patch | 41 +++++ hamcrest-1.1-no-jarjar.patch | 26 +++ hamcrest-1.1.tar.bz2 | 3 + hamcrest-all-1.1.pom | 12 ++ hamcrest-core-1.1.pom | 12 ++ hamcrest-generator-1.1.pom | 20 +++ hamcrest-integration-1.1.pom | 20 +++ hamcrest-library-1.1.pom | 20 +++ hamcrest-parent-1.1.pom | 170 ++++++++++++++++++++ hamcrest-text-1.1.pom | 20 +++ hamcrest.changes | 5 + hamcrest.spec | 258 ++++++++++++++++++++++++++++++ ready | 0 16 files changed, 673 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hamcrest-1.1-build.patch create mode 100644 hamcrest-1.1-no-integration.patch create mode 100644 hamcrest-1.1-no-jarjar.patch create mode 100644 hamcrest-1.1.tar.bz2 create mode 100644 hamcrest-all-1.1.pom create mode 100644 hamcrest-core-1.1.pom create mode 100644 hamcrest-generator-1.1.pom create mode 100644 hamcrest-integration-1.1.pom create mode 100644 hamcrest-library-1.1.pom create mode 100644 hamcrest-parent-1.1.pom create mode 100644 hamcrest-text-1.1.pom create mode 100644 hamcrest.changes create mode 100644 hamcrest.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/hamcrest-1.1-build.patch b/hamcrest-1.1-build.patch new file mode 100644 index 0000000..ac7efb3 --- /dev/null +++ b/hamcrest-1.1-build.patch @@ -0,0 +1,42 @@ +--- build.xml.sav0 2007-06-30 15:03:43.000000000 +0200 ++++ build.xml 2008-02-14 12:07:25.000000000 +0100 +@@ -26,17 +26,17 @@ + + ++ classpath="lib/generator/jarjar.jar"/> + + + +- ++ + + +@@ -211,7 +211,7 @@ + + + ++ > + + + +@@ -223,7 +223,8 @@ + + + +- ++ ++ + + + diff --git a/hamcrest-1.1-no-integration.patch b/hamcrest-1.1-no-integration.patch new file mode 100644 index 0000000..2c76c40 --- /dev/null +++ b/hamcrest-1.1-no-integration.patch @@ -0,0 +1,41 @@ +--- hamcrest-1.1/build.xml~ 2008-10-24 11:37:35.000000000 -0400 ++++ hamcrest-1.1/build.xml 2008-10-24 11:39:22.839767600 -0400 +@@ -147,14 +147,13 @@ + + + + + + + + +- + + + +@@ -201,22 +200,15 @@ + + +- +- +- +- +- + + + + +- + + + + + +- + + + diff --git a/hamcrest-1.1-no-jarjar.patch b/hamcrest-1.1-no-jarjar.patch new file mode 100644 index 0000000..330c6c5 --- /dev/null +++ b/hamcrest-1.1-no-jarjar.patch @@ -0,0 +1,26 @@ +--- hamcrest-1.1/build.xml.jarjar 2008-10-24 11:35:30.171892280 -0400 ++++ hamcrest-1.1/build.xml 2008-10-24 11:36:07.667890720 -0400 +@@ -24,22 +24,10 @@ + + +- +- +- +- +- +- +- + + + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-all + jar + Hamcrest All + + diff --git a/hamcrest-core-1.1.pom b/hamcrest-core-1.1.pom new file mode 100644 index 0000000..ebf6e56 --- /dev/null +++ b/hamcrest-core-1.1.pom @@ -0,0 +1,12 @@ + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-core + jar + Hamcrest Core + + diff --git a/hamcrest-generator-1.1.pom b/hamcrest-generator-1.1.pom new file mode 100644 index 0000000..893569c --- /dev/null +++ b/hamcrest-generator-1.1.pom @@ -0,0 +1,20 @@ + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-generator + jar + Hamcrest Generator + + + + ${pom.groupId} + hamcrest-core + ${pom.version} + + + + diff --git a/hamcrest-integration-1.1.pom b/hamcrest-integration-1.1.pom new file mode 100644 index 0000000..52e3434 --- /dev/null +++ b/hamcrest-integration-1.1.pom @@ -0,0 +1,20 @@ + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-integration + jar + Hamcrest Integration + + + + ${pom.groupId} + hamcrest-core + ${pom.version} + + + + diff --git a/hamcrest-library-1.1.pom b/hamcrest-library-1.1.pom new file mode 100644 index 0000000..462f178 --- /dev/null +++ b/hamcrest-library-1.1.pom @@ -0,0 +1,20 @@ + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-library + jar + Hamcrest Library + + + + ${pom.groupId} + hamcrest-core + ${pom.version} + + + + diff --git a/hamcrest-parent-1.1.pom b/hamcrest-parent-1.1.pom new file mode 100644 index 0000000..4a8ffab --- /dev/null +++ b/hamcrest-parent-1.1.pom @@ -0,0 +1,170 @@ + + 4.0.0 + org.hamcrest + hamcrest-parent + pom + 1.1 + Hamcrest Parent + + 2006 + + Hamcrest + http://code.google.com/p/hamcrest + + + + + BSD style + http://www.opensource.org/licenses/bsd-license.php + repo + + + + + scm:svn:https://hamcrest.googlecode.com/svn/tags/hamcrest-packaging-maven-1.1 + https://hamcrest.googlecode.com/svn/tags/hamcrest-packaging-maven-1.1 + + + + hamcrest-all + hamcrest-core + hamcrest-generator + hamcrest-integration + hamcrest-library + + + + + + + + jmock + jmock + 1.1.0 + provided + + + junit + junit + 4.0 + provided + + + org.easymock + easymock + 2.2 + provided + + + + + + + jmock + jmock + + + junit + junit + + + org.easymock + easymock + + + + + + + hamcrest@repo1.maven.org + Central Maven Repository + scp://repo1.maven.org/home/projects/hamcrest/repository + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.1 + + + false + + + + + org.codehaus.mojo.groovy + groovy-maven-plugin + 1.0-alpha-3 + + + generate-resources + + execute + + + + + def ant = new AntBuilder() + def script = "${basedir}/src/script/download-jars.sh" + def version = "${release.version}" + if ( version == "null" ){ + println("ERROR: 'release.version' property not set.") + } else { + println("Using release version ${release.version}") + } + if ( new File(script).exists() ){ + // we are in top-level module + println("Found script "+script) + ant.exec(executable: script, dir: "${basedir}", + spawn: false, failifexecutionfails: true, failonerror: true){ + arg(value: "http://hamcrest.googlecode.com/files/") + arg(value: "hamcrest-${release.version}.zip" ) + arg(value: "target") + arg(value: "hamcrest-${release.version}") + } + } else { + // we are in child module + ant.copy(file: "${download.artifact.dir}/${artifact.name}.jar", + tofile: "${project.build.directory}/downloaded.jar", verbose: true) + ant.unjar(src: "${project.build.directory}/downloaded.jar", + dest: "${project.build.outputDirectory}") + } + + + + + + + + org.apache.maven.plugins + maven-release-plugin + 2.0-beta-6 + + true + https://hamcrest.googlecode.com/svn/tags + + + + + + org.apache.maven.wagon + wagon-webdav + 1.0-beta-2 + + + + + + 1.1 + target + hamcrest-${release.version} + ${artifactId}-${release.version} + ${basedir}/../${download.dir}/${download.name}/${download.name} + + + \ No newline at end of file diff --git a/hamcrest-text-1.1.pom b/hamcrest-text-1.1.pom new file mode 100644 index 0000000..acf3863 --- /dev/null +++ b/hamcrest-text-1.1.pom @@ -0,0 +1,20 @@ + + 4.0.0 + + org.hamcrest + hamcrest-parent + 1.1 + + hamcrest-text + jar + Hamcrest Text + + + + ${pom.groupId} + hamcrest-core + ${pom.version} + + + + diff --git a/hamcrest.changes b/hamcrest.changes new file mode 100644 index 0000000..725ef55 --- /dev/null +++ b/hamcrest.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 5 14:53:21 CEST 2009 - mvyskocil@suse.cz + +- Initial packaging of 1.1 in SUSE (from jpp 5.0) + diff --git a/hamcrest.spec b/hamcrest.spec new file mode 100644 index 0000000..0e745eb --- /dev/null +++ b/hamcrest.spec @@ -0,0 +1,258 @@ +# +# spec file for package hamcrest (Version 1.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 with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} +%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} +%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} +%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} +%define _without_integration 1 +%define _without_tests 1 +%define _withouth_jarjar 1 +# This option controls integration which requires easymock2 and jmock +%bcond_without integration +# This option controls jarjar on qdox +# Since bundling the qdox classes prevents upgrades, we disable it by default +%bcond_with jarjar +# This option controls tests which requires ant-junit and testng +%bcond_without tests +# If integration is disabled, then tests are disabled +%if %without integration +%bcond_with tests +%endif + +Name: hamcrest +Version: 1.1 +Release: 2 +Summary: Library of matchers for building test expressions +License: BSD 3-Clause +Url: http://code.google.com/p/hamcrest/ +Group: Development/Libraries/Java +Source0: http://hamcrest.googlecode.com/files/hamcrest-1.1.tar.bz2 +Source1: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom +Source2: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.pom +Source3: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-integration/1.1/hamcrest-integration-1.1.pom +Source4: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-generator/1.1/hamcrest-generator-1.1.pom +Source5: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom +Source6: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.pom +Source7: hamcrest-text-1.1.pom +Patch0: hamcrest-1.1-build.patch +Patch1: hamcrest-1.1-no-jarjar.patch +Patch2: hamcrest-1.1-no-integration.patch +Requires: java >= 1.5.0 +%if %with integration +Requires: easymock2 +Requires: jmock +%endif +Requires: qdox +BuildRequires: jpackage-utils >= 1.7.4 +BuildRequires: java-devel >= 1.5.0 +BuildRequires: ant >= 1.6.5 +BuildRequires: ant-junit +%if %with integration +BuildRequires: easymock2 +%endif +%if %with jarjar +BuildRequires: jarjar +%endif +%if %with integration +BuildRequires: jmock +%endif +BuildRequires: junit +#BuildRequires: junit4 +BuildRequires: qdox +%if %with tests +BuildRequires: testng +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +PreReq: jpackage-utils >= 1.7.4 + +%description +Provides a library of matcher objects (also known as constraints or +predicates) allowing 'match' rules to be defined declaratively, to be +used in other frameworks. Typical scenarios include testing frameworks, +mocking libraries and UI validation rules. + + + +%package javadoc +License: BSD 3-Clause +Group: Development/Libraries/Java +Summary: Library of matchers for building test expressions + +%description javadoc +Provides a library of matcher objects (also known as constraints or +predicates) allowing 'match' rules to be defined declaratively, to be +used in other frameworks. Typical scenarios include testing frameworks, +mocking libraries and UI validation rules. + + + +%package demo +License: BSD 3-Clause +Group: Development/Libraries/Java +Summary: Library of matchers for building test expressions +Requires: %{name} = %{version}-%{release} +Requires: junit +#Requires: junit4 +%if %with tests +Requires: testng +%endif + +%description demo +Provides a library of matcher objects (also known as constraints or +predicates) allowing 'match' rules to be defined declaratively, to be +used in other frameworks. Typical scenarios include testing frameworks, +mocking libraries and UI validation rules. + + + +%prep +%setup -q +find . -type f -name "*.jar" | xargs -t rm +# BUILD/hamcrest-%{version}/lib/generator/jarjar-1.0rc3.jar.no +%if %with jarjar +ln -sf $(build-classpath jarjar) lib/generator/ +%endif +# BUILD/hamcrest-1.1/lib/generator/qdox-1.6.1.jar.no +ln -sf $(build-classpath qdox) lib/generator/ +# BUILD/hamcrest-1.1/lib/integration/easymock-2.2.jar.no +%if %with integration +ln -sf $(build-classpath easymock2) lib/integration/ +%endif +# BUILD/hamcrest-1.1/lib/integration/jmock-1.10RC1.jar.no +%if %with integration +ln -sf $(build-classpath jmock) lib/integration/ +%endif +# BUILD/hamcrest-1.1/lib/integration/junit-3.8.1.jar.no +ln -sf $(build-classpath junit) lib/integration/ +# BUILD/hamcrest-1.1/lib/integration/junit-4.0.jar.no +ln -sf $(build-classpath junit4) lib/integration/ +# BUILD/hamcrest-1.1/lib/integration/testng-4.6-jdk15.jar.no +%if %with tests +ln -sf $(build-classpath testng-jdk15) lib/integration/ +%endif +%patch0 -p0 +%if %without jarjar +%patch1 -p1 +%endif +%if %without integration +%patch2 -p1 +%endif +perl -pi -e 's/\r$//g' LICENSE.txt + +%build +export CLASSPATH=$(build-classpath qdox) +export OPT_JAR_LIST="junit ant/ant-junit" +%if %with integration +ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dversion=%{version} -Dbuild.sysclasspath=first all javadoc +%else +ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dversion=%{version} -Dbuild.sysclasspath=first clean core generator library text bigjar javadoc +%endif + +%install +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name} +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-parent.pom +%add_to_maven_depmap org.hamcrest %{name}-parent %{version} JPP/%{name} parent +install -m 644 build/%{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/all-%{version}.jar +install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-all.pom +%add_to_maven_depmap org.hamcrest %{name}-all %{version} JPP/%{name} all +install -m 644 build/%{name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/core-%{version}.jar +install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-core.pom +%add_to_maven_depmap org.hamcrest %{name}-core %{version} JPP/%{name} core +install -m 644 build/%{name}-generator-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/generator-%{version}.jar +install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-generator.pom +%add_to_maven_depmap org.hamcrest %{name}-generator %{version} JPP/%{name} generator +install -m 644 build/%{name}-library-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/library-%{version}.jar +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-library.pom +%add_to_maven_depmap org.hamcrest %{name}-library %{version} JPP/%{name} library +%if %with integration +install -m 644 build/%{name}-integration-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/integration-%{version}.jar +install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-integration.pom +%add_to_maven_depmap org.hamcrest %{name}-integration %{version} JPP/%{name} integration +%endif +install -m 644 build/%{name}-text-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/text-%{version}.jar +install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-text.pom +%add_to_maven_depmap org.hamcrest %{name}-text %{version} JPP/%{name} text +%if %with tests +install -m 644 build/%{name}-unit-test-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/unit-test-%{version}.jar +%endif +pushd $RPM_BUILD_ROOT%{_javadir}/%{name} +for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done +popd +# javadoc +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr build/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} +# demo +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} +%if %with integration +install -m 644 build/%{name}-examples-%{version}.jar $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} +%endif +cp -pr %{name}-examples $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/ +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt +%dir %{_javadir}/%{name} +%{_javadir}/%{name}/all-%{version}.jar +%{_javadir}/%{name}/all.jar +%{_javadir}/%{name}/core-%{version}.jar +%{_javadir}/%{name}/core.jar +%{_javadir}/%{name}/generator-%{version}.jar +%{_javadir}/%{name}/generator.jar +%if %with integration +%{_javadir}/%{name}/integration-%{version}.jar +%{_javadir}/%{name}/integration.jar +%endif +%{_javadir}/%{name}/library-%{version}.jar +%{_javadir}/%{name}/library.jar +%{_javadir}/%{name}/text-%{version}.jar +%{_javadir}/%{name}/text.jar +%if %with tests +%{_javadir}/%{name}/unit-test-%{version}.jar +%{_javadir}/%{name}/unit-test.jar +%endif +%{_datadir}/maven2/* +%config %{_mavendepmapfragdir}/* + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} + +%files demo +%defattr(0644,root,root,0755) +%{_datadir}/%{name}-%{version} +%{_datadir}/%{name} + +%changelog +* Tue May 05 2009 mvyskocil@suse.cz +- Initial packaging of 1.1 in SUSE (from jpp 5.0) diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4