[jboss-svn-commits] JBL Code SVN: r13440 - in labs/jbosslabs/trunk/rpm: SPECS and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jul 13 05:03:21 EDT 2007


Author: adamw
Date: 2007-07-13 05:03:20 -0400 (Fri, 13 Jul 2007)
New Revision: 13440

Added:
   labs/jbosslabs/trunk/rpm/README
Modified:
   labs/jbosslabs/trunk/rpm/SPECS/labs-2.1.spec
Log:
RPM building scripts

Added: labs/jbosslabs/trunk/rpm/README
===================================================================
--- labs/jbosslabs/trunk/rpm/README	                        (rev 0)
+++ labs/jbosslabs/trunk/rpm/README	2007-07-13 09:03:20 UTC (rev 13440)
@@ -0,0 +1,26 @@
+Build an RPM of .ORG
+--------------------
+
+1. Create a file ~/.rpmmacro with the following content:
+%_topdir        <directory where rpm scripts are checked out>
+%_tmppath       <any temporary directory you like>
+
+2. Check out to BUILD/labs-x.y/portal-extensions the source (from svn), using the branch you want to include in the RPM (as this is a lengthy process, and doing it every time in the RPM build script would take a long time, it's not included there).
+
+3. Go to SOURCES/labs-x.y/conf-template and copy that directory to SOURCES/labs-x.y/conf
+
+4. Content of that directory will be copied to BUILD/labs-x.y/portal-extensions. Fill in any missing values in the configuration files 
+(especially in:
+- build.properties
+- shotoku/build.properties
+- shotoku/shotoku-base/src/etc/shotoku.properties).
+Values which are already filled in normally don't need to be changed. Also, DO NOT change any values that are filled and use variables (like ${env.RPM_BUILD_ROOT} and ${RPM_INST_DIR}).
+
+5. Build the RPM using:
+rpmbuild -bb SPECS/labs-x.y.spec
+
+6. Install it using:
+rpm -Uvh RPMS/i386/labs-x.y-z.i386.rpm --nodeps
+(the --nodeps is required as the rpm requires for some reason the parent directory of the installation to exist, I don't know yet how to turn this off.)
+
+7. The RPM, when installed, creates a directory named "content". Check out the content of the, from svn, there, unless it isn't already checked out. Also check if all database configuration is done.

Modified: labs/jbosslabs/trunk/rpm/SPECS/labs-2.1.spec
===================================================================
--- labs/jbosslabs/trunk/rpm/SPECS/labs-2.1.spec	2007-07-13 08:52:03 UTC (rev 13439)
+++ labs/jbosslabs/trunk/rpm/SPECS/labs-2.1.spec	2007-07-13 09:03:20 UTC (rev 13440)
@@ -14,11 +14,11 @@
 %define fullname %{name}-%{version}
 
 # Where Labs should be installed
-#%define rpm_inst_dir /services/jbossorg/prod
-%define rpm_inst_dir /home/adamw/data/jboss/rpm/tmp/test-inst
+%define rpm_inst_dir /services/jbossorg/prod
+#%define rpm_inst_dir /home/adamw/data/jboss/rpm/tmp/test-inst
 # An special characters-escaped version of the above
-#%define rpm_inst_dir_esc \\/services\\/jbossorg\\/prod
-%define rpm_inst_dir_esc \\/home\\/adamw\\/data\\/jboss\\/rpm\\/tmp\\/test-inst
+%define rpm_inst_dir_esc \\/services\\/jbossorg\\/prod
+#%define rpm_inst_dir_esc \\/home\\/adamw\\/data\\/jboss\\/rpm\\/tmp\\/test-inst
 
 %description
 A complete .ORG website with:
@@ -68,8 +68,8 @@
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,adamw,users)
-#%defattr(-,jbossorg1,jbossorg1)
+#%defattr(-,adamw,users)
+%defattr(-,jbossorg1,jbossorg1)
 %dir %{rpm_inst_dir}
 %dir %{rpm_inst_dir}/content
 %dir %{rpm_inst_dir}/wiki




More information about the jboss-svn-commits mailing list