[Jpackage-commits] dist/openqa-selenium-core/JPP-6 Makefile, NONE, 1.1 openqa-selenium-core.spec, NONE, 1.1 selenium-core-jpp-depmap.xml, NONE, 1.1 selenium-core-settings.xml, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Jul 27 20:54:33 CEST 2009


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

Added Files:
	Makefile openqa-selenium-core.spec 
	selenium-core-jpp-depmap.xml selenium-core-settings.xml 
	sources 
Log Message:
Import openqa-selenium-core into JPP-6

--- NEW FILE: selenium-core-jpp-depmap.xml ---
<dependencies>
  <dependency>
        <maven>
          <groupId>jetty</groupId>
          <artifactId>org.mortbay.jetty</artifactId>
          <version>5.1.10</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>ant</groupId>
          <artifactId>ant-junit</artifactId>
          <version>1.6.5</version>
        </maven>
        <jpp>
          <groupId>JPP/ant</groupId>
          <artifactId>ant-junit</artifactId>
          <version>1.6.5</version>
        </jpp>
  </dependency>
  <dependency>
        <maven>
          <groupId>org.openqa.selenium.server</groupId>
          <artifactId>selenium-server-coreless</artifactId>
          <version>0.9.1</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>selenium-server-coreless</artifactId>
          <version>0.9.2</version>
        </jpp>
  </dependency>
  <dependency>
        <maven>
          <groupId>rhino</groupId>
          <artifactId>js</artifactId>
          <version>1.6R5</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>js</artifactId>
          <version>1.6R5</version>
        </jpp>
  </dependency>

</dependencies>

--- NEW FILE: sources ---
c343d7708216b5ca1f0e257a26c51fb1  selenium-core-1.0.1.tar.gz

--- NEW FILE: Makefile ---
# Makefile for source rpm: openqa-selenium-core
# $Id: Makefile,v 1.1 2009/07/27 18:54:31 jpackage Exp $
NAME := openqa-selenium-core
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-core-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: openqa-selenium-core.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}}}

Summary:        Webapp Test Tool
Name:           openqa-selenium-core
Version:        1.0.1
Release:        1%{?dist}
Epoch:          0
License:        Apache Software License 2.0
URL:            http://www.openqa.org/selenium-core/
Group:          Development/Testing
Source0:        selenium-core-1.0.1.tar.gz
# svn export http://svn.openqa.org/svn/selenium-core/tags/REL-1.0.1/ selenium-core-1.0.1
Source1:        selenium-core-jpp-depmap.xml
Source2:        selenium-core-settings.xml

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

BuildRequires:  maven2 >= 2.0.7
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-clean
BuildRequires:  maven2-plugin-compiler
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:  excalibur-avalon-framework
BuildRequires:  bouncycastle
BuildRequires:  jakarta-commons-logging
BuildRequires:  jetty5
BuildRequires:  openqa-selenium-rc-server-coreless >= 0:1.0.1
BuildRequires:  servlet_2_4_api
BuildRequires:  subversion

Requires:  junit
Requires:  openqa-selenium-rc-server-coreless
Requires:  rhino

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

%description
Selenium Core is a test tool for web applications. Selenium
Core tests run directly in a browser, just as realusers do. 
and they run in Internet Explorer, Mozilla and Firefox on 
Windows, Linux and Macintosh. No other test tool covers 
such a wide array of platforms.

%prep
%setup -q -n selenium-core-%{version}
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

ln -sf $(build-classpath js) src/main/resources/doctool/
rm src/main/resources/doctool/js.jar.no
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

%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
mvn-jpp \
        -e \
        -s $(pwd)/settings.xml \
        -Dmaven.dependency.rhino.js.jar.path=$(build-classpath js16) \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -Dmaven.test.failure.ignore=true \
        install

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 target/selenium-core-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-core-%{version}.jar
(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-core.pom
%add_to_maven_depmap org.openqa.selenium.core selenium-core %{version} JPP selenium-core
%add_to_maven_depmap org.seleniumhq.selenium.core selenium-core %{version} JPP selenium-core

%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
%{_javadir}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}

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

* Thu Dec 06 2007 Ralph Apel <r.apel at r-apel.de> - 0:0.8.3-1jpp
- First release





More information about the JPackage-commits mailing list