[Jpackage-commits] dist/openqa-selenium-rc/JPP-6 Makefile, NONE, 1.1 openqa-selenium-rc.spec, NONE, 1.1 selenium-rc-bootstrap.patch, NONE, 1.1 selenium-rc-bootstrap2.patch, NONE, 1.1 selenium-rc-clients-pom.patch, NONE, 1.1 selenium-rc-jpp-depmap.xml, NONE, 1.1 selenium-rc-server-coreless-pom.patch, NONE, 1.1 selenium-rc-settings.xml, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Jul 27 21:28:17 CEST 2009


Update of /home/projects/jpackage/cvs/dist/openqa-selenium-rc/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv24676/JPP-6

Added Files:
	Makefile openqa-selenium-rc.spec selenium-rc-bootstrap.patch 
	selenium-rc-bootstrap2.patch selenium-rc-clients-pom.patch 
	selenium-rc-jpp-depmap.xml 
	selenium-rc-server-coreless-pom.patch selenium-rc-settings.xml 
	sources 
Log Message:
Import openqa-selenium-rc into JPP-6

--- NEW FILE: openqa-selenium-rc.spec ---
# Copyright (c) 2000-2009, 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.
#

%define section free

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define with_bootstrap %{!?_with_bootstrap:0}%{?_with_bootstrap:1}
%define without_bootstrap %{?_with_bootstrap:0}%{!?_with_bootstrap:1}

%define with_bootstrap2 %{!?_with_bootstrap2:0}%{?_with_bootstrap2:1}
%define without_bootstrap2 %{?_with_bootstrap2:0}%{!?_with_bootstrap2:1}

Summary:        Selenium Remote Control
Name:           openqa-selenium-rc
Version:        1.0.1
Release:        1%{?dist}
Epoch:          0
License:        ASL 2.0
URL:            http://www.openqa.org/selenium-rc/
Group:          Development/Testing
Source0:        selenium-rc-1.0.1.tar.gz
# svn export http://svn.openqa.org/svn/selenium-rc/tags/REL-1.0.1 selenium-rc-1.0.1
Source1:        selenium-rc-jpp-depmap.xml
Source2:        selenium-rc-settings.xml
Patch0:         selenium-rc-server-coreless-pom.patch
Patch1:         selenium-rc-clients-pom.patch
Patch2:         selenium-rc-bootstrap.patch
Patch3:         selenium-rc-bootstrap2.patch


BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  java-devel >= 0:1.5.0

BuildRequires:  maven2 >= 2.0.7
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-assembly
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-idea
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-release
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-surefire

BuildRequires:  bouncycastle
BuildRequires:  excalibur-avalon-framework
BuildRequires:  jakarta-commons-logging
BuildRequires:  jetty5
BuildRequires:  servlet_2_4_api
BuildRequires:  subversion
%if %{without_bootstrap}
BuildRequires:  openqa-selenium-core
%endif
%if %{without_bootstrap} && %{without_bootstrap2}
BuildRequires:  openqa-selenium-ide
%endif

Requires(post): jpackage-utils >= 0:1.7.3
Requires(postun): jpackage-utils >= 0:1.7.3
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Selenium Remote Control is a test tool that allows you to 
write automated application UI tests in any programming 
language against any HTTP website using any mainstream 
JavaScript-enabled browser.
Selenium Remote Control provides a Selenium Server, which 
can automatically start/stop/control any supported browser.
It works by using Selenium Core, a pure-HTML+JS library that
performs automated tasks in JavaScript.

%package server-coreless
Summary:        Coreless Server Module from %{name}
Group:          Development/Testing
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description server-coreless
%{summary}.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%if %{without_bootstrap}
%package server
Summary:        Server Module from %{name}
Group:          Development/Testing
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description server
%{summary}.


%package xlator
Summary:        Xlator Module from %{name}
Group:          Development/Testing
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description xlator
%{summary}.


%package java-client-driver
Summary:        Java Client Driver Module from %{name}
Group:          Development/Testing
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description java-client-driver
%{summary}.
%endif

%prep
%setup -q -n selenium-rc-%{version}
#%setup -q -n selenium-rc-%{version} -T -D -a 3
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
mv server-coreless/src/main/resources/customProfileDirCUSTFFCHROME/extensions/readystate at openqa.org/chrome/readystate.jar.no \
server-coreless/src/main/resources/customProfileDirCUSTFFCHROME/extensions/readystate at openqa.org/chrome/readystate.jar
cp %{SOURCE2} settings.xml
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml
%patch0 -b .sav0
%patch1 -b .sav1
%if %{with_bootstrap}
%patch2 -b .sav2
%endif
%if %{with_bootstrap2}
%patch3 -b .sav3
%endif

%build
export MAVEN_REPO_LOCAL=$(pwd)/m2_repo/repository
mkdir -p $MAVEN_REPO_LOCAL
mkdir -p $MAVEN_REPO_LOCAL/bouncycastle
ln -sf $(build-classpath bcprov) $MAVEN_REPO_LOCAL/bouncycastle/bcprov-jdk15.jar
MAVEN_SETTINGS=$(pwd)/settings.xml
mvn-jpp \
        -e \
        -s $MAVEN_SETTINGS \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        install javadoc:javadoc
#%if %{without_bootstrap}
#mkdir standalone
#rm -rf selenium-server/target/assembly/work/avalon-framework*
#rm -rf selenium-server/target/assembly/work/log4j*
#rm -rf selenium-server/target/assembly/work/logkit*
#for d in selenium-server/target/assembly/work/*; do
#cp -pr $d/* standalone
#done
#rm -f standalone/META-INF/BCKEY.DSA
#rm -f standalone/META-INF/BCKEY.SF
#echo "Manifest-Version: 1.0" > standalone/META-INF/MANIFEST.MF
#echo "Main-Class: org.openqa.selenium.server.SeleniumServer" >> standalone/META-INF/MANIFEST.MF
#
#pushd standalone
#jar cmf META-INF/MANIFEST.MF ../selenium-server-standalone.jar *
#popd
#cp selenium-server-standalone.jar selenium-server/target/selenium-server-%{version}-standalone.jar
#mkdir -p $MAVEN_REPO_LOCAL/org.openqa.selenium.server
#cp selenium-server-standalone.jar $MAVEN_REPO_LOCAL/org.openqa.selenium.server/selenium-server.jar
#mkdir -p $MAVEN_REPO_LOCAL/JPP
#cp selenium-server-standalone.jar $MAVEN_REPO_LOCAL/JPP/selenium-server.jar
#pushd clients
#mvn-jpp \
#        -e \
#        -s $MAVEN_SETTINGS \
#        -Dmaven.dependency.org.openqa.selenium.server.selenium-server.standalone.jar.path=$MAVEN_REPO_LOCAL/org.openqa.selenium.server/selenium-server.jar \
#        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
#        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
#        -Dmaven.test.failure.ignore=true \
#        install javadoc:javadoc
#popd
#%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 server-coreless/target/selenium-server-coreless-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-server-coreless-%{version}.jar
%if %{without_bootstrap}
install -m 644 selenium-server/target/selenium-server-%{version}-standalone.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-server-standalone-%{version}.jar
install -m 644 selenium-server/target/selenium-server-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-server-%{version}.jar
install -m 644 clients/java/target/selenium-java-client-driver-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-java-client-driver-%{version}.jar
%if %{without_bootstrap2}
install -m 644 xlator/target/selenium-xlator-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-xlator-%{version}.jar
%endif
%endif
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-rc.pom
%add_to_maven_depmap org.openqa.selenium selenium-rc %{version} JPP selenium-rc
%add_to_maven_depmap org.seleniumhq.selenium selenium-rc %{version} JPP selenium-rc
install -m 644 server-coreless/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-server-coreless.pom
%add_to_maven_depmap org.openqa.selenium.server selenium-server-coreless %{version} JPP selenium-server-coreless
%add_to_maven_depmap org.seleniumhq.selenium.server selenium-server-coreless %{version} JPP selenium-server-coreless
%if %{without_bootstrap}
install -m 644 selenium-server/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-server.pom
%add_to_maven_depmap org.openqa.selenium.server selenium-server %{version} JPP selenium-server
%add_to_maven_depmap org.seleniumhq.selenium.server selenium-server %{version} JPP selenium-server
install -m 644 clients/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-client-drivers.pom
%add_to_maven_depmap org.openqa.selenium.client-drivers selenium-client-drivers %{version} JPP selenium-client-drivers
%add_to_maven_depmap org.seleniumhq.selenium.client-drivers selenium-client-drivers %{version} JPP selenium-client-drivers
install -m 644 clients/java/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-java-client-driver.pom
%add_to_maven_depmap org.openqa.selenium.client-drivers selenium-java-client-driver %{version} JPP selenium-java-client-driver
%add_to_maven_depmap org.seleniumhq.selenium.client-drivers selenium-java-client-driver %{version} JPP selenium-java-client-driver
install -m 644 xlator/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-selenium-xlator.pom
%add_to_maven_depmap org.openqa.selenium selenium-xlator %{version} JPP selenium-xlator
%add_to_maven_depmap org.seleniumhq.selenium selenium-xlator %{version} JPP selenium-xlator
%endif


# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/coreless
cp -pr server-coreless/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/coreless
%if %{without_bootstrap}
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/clients
%if %{without_bootstrap2}
cp -pr clients/java/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/clients
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/xlator
cp -pr xlator/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/xlator
%endif
%endif
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files 
%defattr(0644,root,root,0755)
%doc license/selenium_license.txt
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files server-coreless
%defattr(0644,root,root,0755)
%{_javadir}/selenium-server-coreless*.jar

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%if %{without_bootstrap}
%files server
%defattr(0644,root,root,0755)
%{_javadir}/selenium-server-%{version}.jar
%{_javadir}/selenium-server.jar
%{_javadir}/selenium-server-standalone*.jar

%if %{without_bootstrap2}
%files xlator
%defattr(0644,root,root,0755)
%{_javadir}/selenium-xlator*.jar
%endif

%files java-client-driver
%defattr(0644,root,root,0755)
%{_javadir}/selenium-java-client-driver*.jar
%endif

%changelog
* Fri Jul 24 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.0.1-1
- 1.0.1

* Fri Jul 18 2008 David Walluck <dwalluck at redhat.com> 0:0.9.2-2
- remove javadoc scriptlets
- update License
- update BuildRoot

* Tue Dec 04 2007 Ralph Apel <r.apel at r-apel.de> - 0:0.9.2-1jpp
- First release


--- NEW FILE: sources ---
185e35eca33712528dfd40c47acd948f  selenium-rc-1.0.1.tar.gz

--- NEW FILE: selenium-rc-clients-pom.patch ---
--- clients/pom.xml.sav	2009-07-23 19:38:31.000000000 +0200
+++ clients/pom.xml	2009-07-23 19:39:00.000000000 +0200
@@ -64,7 +64,7 @@
                                 <mkdir dir="${basedir}/target"/>
                                 <property name="output.path" location="${basedir}/target"/>
 
-                                <whichresource resource="/core/iedoc.xml" property="iedoc.url" classpath="${maven.dependency.org.seleniumhq.selenium.server.selenium-server.standalone.jar.path}"/>
+                                <whichresource resource="selenium-core-1.0.1.jar/core/iedoc.xml" property="iedoc.url" classpath="${maven.dependency.org.seleniumhq.selenium.server.selenium-server.standalone.jar.path}"/>
                                 <fail unless="iedoc.url" message="Couldn't find iedoc.xml in the classpath: ${maven.dependency.org.seleniumhq.selenium.server.selenium-server.standalone.jar.path}"/>
 
                                 <get src="${iedoc.url}" dest="${output.path}/iedoc.xml"/>
@@ -138,4 +138,4 @@
 		    <scope>provided</scope>        
         </dependency>
     </dependencies>
-</project>
\ Kein Zeilenumbruch am Dateiende.
+</project>

--- NEW FILE: selenium-rc-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>

--- NEW FILE: Makefile ---
# Makefile for source rpm: openqa-selenium-rc
# $Id: Makefile,v 1.1 2009/07/27 19:28:15 jpackage Exp $
NAME := openqa-selenium-rc
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: selenium-rc-server-coreless-pom.patch ---
--- server-coreless/pom.xml.sav	2009-07-23 18:01:50.000000000 +0200
+++ server-coreless/pom.xml	2009-07-23 18:03:12.000000000 +0200
@@ -148,5 +148,11 @@
             <artifactId>easymockclassextension</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.objenesis</groupId>
+            <artifactId>objenesis</artifactId>
+            <version>1.0</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>

--- NEW FILE: selenium-rc-bootstrap.patch ---
--- pom.xml.sav2	2009-06-07 21:15:12.000000000 +0200
+++ pom.xml	2009-07-23 19:13:37.000000000 +0200
@@ -9,9 +9,11 @@
 	<url>http://selenium.seleniumhq.org/projects/remote-control</url>
 	<modules>
 		<module>server-coreless</module>
+<!--
 		<module>selenium-server</module>
 		<module>clients</module>
 		<module>xlator</module>
+-->
 	</modules>
 	<repositories>
 		<repository>

--- NEW FILE: selenium-rc-bootstrap2.patch ---
--- pom.xml.sav3	2009-07-24 12:59:47.000000000 +0200
+++ pom.xml	2009-07-24 13:00:02.000000000 +0200
@@ -11,7 +11,9 @@
 		<module>server-coreless</module>
 		<module>selenium-server</module>
 		<module>clients</module>
+<!--
 		<module>xlator</module>
+-->
 	</modules>
 	<repositories>
 		<repository>

--- NEW FILE: selenium-rc-jpp-depmap.xml ---
<dependencies>
  <dependency>
        <maven>
          <groupId>jetty</groupId>
          <artifactId>org.mortbay.jetty</artifactId>
          <version>5.1.12</version>
        </maven>
        <jpp>
          <groupId>JPP/jetty5</groupId>
          <artifactId>jetty5</artifactId>
          <version>5.1.12</version>
        </jpp>
  </dependency>
<!--
  <dependency>
        <maven>
          <groupId>ant</groupId>
          <artifactId>ant-nodeps</artifactId>
          <version>1.6.5</version>
        </maven>
        <jpp>
          <groupId>JPP/ant</groupId>
          <artifactId>ant-nodeps</artifactId>
          <version>1.6.5</version>
        </jpp>
  </dependency>
  <dependency>
        <maven>
          <groupId>ant</groupId>
          <artifactId>ant-trax</artifactId>
          <version>1.6.5</version>
        </maven>
        <jpp>
          <groupId>JPP/ant</groupId>
          <artifactId>ant-trax</artifactId>
          <version>1.6.5</version>
        </jpp>
  </dependency>
-->

  <dependency>
        <maven>
          <groupId>cglib</groupId>
          <artifactId>cglib-nodep</artifactId>
          <version>2.1_3</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>cglib-nodep</artifactId>
          <version>2.2</version>
        </jpp>
  </dependency>

  <dependency>
        <maven>
          <groupId>junit</groupId>
          <artifactId>junit4</artifactId>
          <version>4.0</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>junit44</artifactId>
          <version>4.4</version>
        </jpp>
  </dependency>

</dependencies>




More information about the JPackage-commits mailing list