Skip to content

Commit

Permalink
upgrade to mod_cluster 1.0.0.CR2 binary package delivered by mod_clus…
Browse files Browse the repository at this point in the history
…ter team, support sources upgrade
  • Loading branch information
Marek Goldmann committed Apr 29, 2009
1 parent 6eca436 commit 21f1560
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 225 deletions.
2 changes: 1 addition & 1 deletion lib/jboss-cloud-support
Submodule jboss-cloud-support updated from 018753 to ae6468
28 changes: 7 additions & 21 deletions specs/extras/jboss-as5-cloud-mod_cluster.spec
Original file line number Diff line number Diff line change
@@ -1,49 +1,35 @@

Summary: JBoss mod_cluster for JBoss AS5 cloud profiles
Name: jboss-as5-cloud-mod_cluster
Version: 1.0.0.CR1
Version: 1.0.0.CR2
Release: 1
License: LGPL
BuildArch: noarch
Group: Applications/System
Requires: jboss-as5-cloud-profiles
Requires: patch
Source0: http://labs.jboss.com/file-access/default/members/mod_cluster/freezone/dist/%{version}/mod_cluster-%{version}-src-ssl.tar.gz
Source0: http://labs.jboss.com/file-access/default/members/mod_cluster/freezone/dist/%{version}/mod-cluster-%{version}-bin.tar.gz
Source1: jboss-as5-mod_cluster-server-xml-group.patch
Source2: jboss-as5-mod_cluster-jboss-beans-xml-group.patch
Source3: jboss-as5-mod_cluster-server-xml-cluster.patch
Source4: jboss-as5-mod_cluster-jboss-beans-xml-cluster.patch
Patch: jboss-as5-mod_cluster-%{version}.patch
#BuildRoot: /tmp/%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%define __jar_repack %{nil}

%description
JBoss mod_cluster for JBoss AS5 cloud profiles

%prep
cd %{_topdir}/BUILD
rm -rf mod_cluster-%{version}-src-ssl
tar zxvf %{_topdir}/SOURCES/mod_cluster-%{version}-src-ssl.tar.gz mod_cluster-%{version}-src-ssl/srclib/mod_cluster
if [ $? -ne 0 ]; then
exit $?
fi
cd mod_cluster-%{version}-src-ssl
chmod -R a+rX,g-w,o-w .

%patch -p1
%setup -T -b 0 -c -n %{name}

%install

cd mod_cluster-%{version}-src-ssl
cd srclib/mod_cluster/
mvn package -Dmaven.test.skip=true
rm -rf $RPM_BUILD_ROOT

configs=( cluster group )

for config in ${configs[@]} ; do
install -d -m 755 $RPM_BUILD_ROOT/opt/jboss-as5/server/${config}/deploy
cp -R ./target/mod-cluster.sar $RPM_BUILD_ROOT/opt/jboss-as5/server/${config}/deploy/
cp -R mod-cluster.sar $RPM_BUILD_ROOT/opt/jboss-as5/server/${config}/deploy/
done

install -d -m 755 $RPM_BUILD_ROOT/opt/jboss-as5/mod_cluster-patches/
Expand All @@ -53,7 +39,7 @@ cp %{SOURCE3} $RPM_BUILD_ROOT/opt/jboss-as5/mod_cluster-patches/
cp %{SOURCE4} $RPM_BUILD_ROOT/opt/jboss-as5/mod_cluster-patches/

%clean
#rm -Rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT

%pre

Expand Down
8 changes: 4 additions & 4 deletions specs/extras/mod_cluster.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

Summary: JBoss mod_cluster for Apache httpd
Name: mod_cluster
Version: 1.0.0.CR1
Release: 2
Version: 1.0.0.CR2
Release: 1
License: LGPL
BuildRoot: %{_tmppath}/%{name}-buildroot
Group: Applications/System
BuildRequires: httpd-devel >= 2.2.8
Requires: httpd-devel >= 2.2.8
Source: http://www.jboss.org/file-access/default/members/mod_cluster/freezone/dist/1.0.0.CR1/mod_cluster-%{version}-linux2-x86-so.tar.gz
Source1: http://www.jboss.org/file-access/default/members/mod_cluster/freezone/dist/1.0.0.CR1/mod_cluster-%{version}-linux2-x64-so.tar.gz
Source0: http://www.jboss.org/file-access/default/members/mod_cluster/freezone/dist/%{version}/mod_cluster-%{version}-linux2-x86-so.tar.gz
Source1: http://www.jboss.org/file-access/default/members/mod_cluster/freezone/dist/%{version}/mod_cluster-%{version}-linux2-x64-so.tar.gz
Source2: mod_cluster.conf

%description
Expand Down
70 changes: 0 additions & 70 deletions src/jboss-as5-mod_cluster-1.0.0.Beta2.patch

This file was deleted.

43 changes: 0 additions & 43 deletions src/jboss-as5-mod_cluster-1.0.0.Beta3.patch

This file was deleted.

44 changes: 0 additions & 44 deletions src/jboss-as5-mod_cluster-1.0.0.Beta4.patch

This file was deleted.

42 changes: 0 additions & 42 deletions src/jboss-as5-mod_cluster-1.0.0.CR1.patch

This file was deleted.

0 comments on commit 21f1560

Please sign in to comment.