[Jpackage-commits] dist/openqa-selenium-ide/devel .cvsignore, 1.1, 1.2 openqa-selenium-ide.spec, NONE, 1.1 selenium-ide-jpp-depmap.xml, NONE, 1.1 selenium-ide-pom.patch, NONE, 1.1 selenium-ide-settings.xml, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 21:25:20 CEST 2008


Update of /home/projects/jpackage/cvs/dist/openqa-selenium-ide/devel
In directory ryu.zarb.org:/tmp/cvs-serv25914/devel

Modified Files:
	.cvsignore sources 
Added Files:
	openqa-selenium-ide.spec selenium-ide-jpp-depmap.xml 
	selenium-ide-pom.patch selenium-ide-settings.xml 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/openqa-selenium-ide/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 19:25:02 -0000	1.1
--- .cvsignore	28 May 2008 19:25:18 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ selenium-ide-0.8.1.tar.gz

--- NEW FILE: selenium-ide-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-ide.spec ---
# Copyright (c) 2000-2007, 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_sup
port: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}

Summary:        Webapp Test IDE
Name:           openqa-selenium-ide
Version:        0.8.1
Release:        1jpp
Epoch:          0
License:        Apache Software License 2.0
URL:            http://www.openqa.org/selenium-core/
Group:          Development/Testing
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Source0:        selenium-ide-0.8.1.tar.gz
# svn export http://svn.openqa.org/svn/selenium-ide/tags/RELEASE_0_8_1/ selenium-ide-0.8.1

Source1:        selenium-ide-jpp-depmap.xml
Source2:        selenium-ide-settings.xml
Patch0:         selenium-ide-pom.patch

BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
%if %{with_maven}
BuildRequires:  maven2 >= 2.0.4
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-assembly
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
%endif
BuildRequires:  bouncycastle-jdk1.5
BuildRequires:  excalibur-avalon-framework
BuildRequires:  jakarta-commons-logging
BuildRequires:  jetty5
BuildRequires:  openqa-selenium-core
BuildRequires:  openqa-selenium-rc-server-coreless
BuildRequires:  servlet_2_4_api


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 IDE is an integrated development environment for 
Selenium tests. It is implemented as a Firefox extension, 
and allows you to record, edit, and debug tests. Selenium 
IDE includes the entire Selenium Core, allowing you to 
easily and quickly record and play back tests in the actual
environment that they will run.

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

cp %{SOURCE2} settings.xml
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/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/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 JAVA_HOME=%{_jvmdir}/java-1.5.0
%if %{with_maven}
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
mkdir -p $MAVEN_REPO_LOCAL/bouncycastle
ln -sf $(build-classpath bouncycastle/bcprov) $MAVEN_REPO_LOCAL/bouncycastle/bcprov-jdk15.jar
#        -Dnotest=true \
mvn-jpp \
        -e \
        -s $(pwd)/settings.xml \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -Dmaven.test.failure.ignore=true \
        install

%else
mkdir -p target/assembly/work/core
pushd target/assembly/work/core
jar xf $(build-classpath selenium-core)
popd
export CLASSPATH=
ant -Dselenium.core.dir=target/assembly/work/core -Dbuild.sysclasspath=only
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
%if %{with_maven}
install -m 644 target/selenium-ide-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-ide-%{version}.jar
%else
install -m 644 build/chrome/selenium-ide.jar \
      $RPM_BUILD_ROOT%{_javadir}/selenium-ide-%{version}.jar
%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-ide.pom
%add_to_maven_depmap org.openqa.selenium.ide selenium-ide %{version} JPP selenium-ide

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}

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


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/openqa-selenium-ide/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 19:25:02 -0000	1.1
--- sources	28 May 2008 19:25:18 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 6df97eed27d4d4876cfeb0693205cf93  selenium-ide-0.8.1.tar.gz

--- NEW FILE: selenium-ide-pom.patch ---
--- pom.xml.sav0	2007-12-04 17:24:00.000000000 +0100
+++ pom.xml	2007-12-04 17:24:21.000000000 +0100
@@ -19,7 +19,7 @@
                 <ant antfile="build.xml" target="create-xpi">
                   <property name="build" location="${project.build.directory}" />
                   <property name="output.path" location="${project.build.outputDirectory}" />
-                  <property name="selenium.core.dir" location="${project.build.directory}/assembly/work/selenium-core-0.8.0" />
+                  <property name="selenium.core.dir" location="${project.build.directory}/assembly/work/selenium-core-0.8.3" />
                 </ant>
               </tasks>
             </configuration>

--- NEW FILE: selenium-ide-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>




More information about the JPackage-commits mailing list