Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68c0d4b96c | ||
| 462b653f7c | |||
| cd5e6d359f | |||
|
|
0e6668ce99 |
4 changed files with 31 additions and 24 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: selenium-core
|
||||
# $Id$
|
||||
NAME := 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 $$d/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)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Name: selenium-core
|
||||
Version: 1.0.2
|
||||
Release: 0.2.20091211svn%{?dist}
|
||||
Release: 0.4.20100324svn%{?dist}
|
||||
Summary: A DHTML test execution framework
|
||||
|
||||
Group: Development/Tools
|
||||
|
|
@ -11,7 +11,7 @@ Group: Development/Tools
|
|||
# strands: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||
License: LGPLv2 and MIT and ASL 2.0 and GPLv2+ and (MPLv1.1 or GPLv2+ or LGPLv2+)
|
||||
URL: http://seleniumhq.org/projects/core/
|
||||
# svn export -r7846 http://selenium.googlecode.com/svn/selenium-core/trunk@7846 selenium-core
|
||||
# svn export -r8566 http://selenium.googlecode.com/svn/selenium-core/trunk@8566 selenium-core
|
||||
# tar czf selenium-core.tar.gz selenium-core
|
||||
Source0: selenium-core.tar.gz
|
||||
Patch0: selenium-core-1.0.2-no-test-deps.patch
|
||||
|
|
@ -50,6 +50,12 @@ mode), but it also can be deployed on the desired application server.
|
|||
%build
|
||||
find -name '*.jar' -delete
|
||||
|
||||
# Fill in templates
|
||||
# jar packaging somehow does not pick up what generate-resources
|
||||
# generates
|
||||
find -type f -print0 |xargs -0 sed -i \
|
||||
's/@VERSION@/%{version}/g;s/@REVISION@/%{release}/g'
|
||||
|
||||
MAVEN_REPO_LOCAL=$PWD/.m2/repository
|
||||
rm -rf $MAVEN_REPO_LOCAL
|
||||
mkdir -p $MAVEN_REPO_LOCAL
|
||||
|
|
@ -64,26 +70,48 @@ mvn-jpp install \
|
|||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# JAR files
|
||||
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||
install -p -m644 target/%{name}-%{version}*.jar \
|
||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||
|
||||
# Maven depmap
|
||||
install -d $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
||||
install -p -m644 pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-selenium-core.pom
|
||||
%add_to_maven_depmap org.seleniumhq.selenium.core %{name} %{version} JPP %{name}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_mavendepmapfragdir}/*
|
||||
%{_datadir}/maven2/poms/*
|
||||
# A couple of irrelevant licenses are included, yet ones
|
||||
# of bundled software aren't...
|
||||
%doc license/selenium_license.txt
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Apr 20 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 1.0.2-0.4.20100324svn
|
||||
- Fill in version and revision (Jiri Kastner, #581756)
|
||||
|
||||
* Thu Apr 01 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 1.0.2-0.3.20100324svn
|
||||
- Update to a later snapshot
|
||||
- Add maven depmap
|
||||
|
||||
* Wed Jan 06 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 1.0.2-0.2.20091211svn
|
||||
- Fix commons-logging dependency
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
c0794935569d71ffd8605c6a02b1a548 selenium-core.tar.gz
|
||||
db17f9c2fa27897a560bedc2e043dbea selenium-core.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue