Name: ofbiz-release9.04 Summary: open source enterprise automation software Version: 9.04 Release: 3%{?dist} Group: Applications/Internet License: ASL 2.0 URL: http://ofbiz.apache.org Source: http://build.ofbiz.org/builds904/ofbiz-rel%{version}-current.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: java-1.6.0-openjdk >= 1.6.0.0, tomcat6 >= 6.0.0 %description The Apache Open For Business Project is an open source enterprise automation software project. By open source enterprise automation we mean: Open Source ERP, Open Source CRM, Open Source E-Business / E-Commerce, Open Source SCM, Open Source MRP, Open Source CMMS/EAM, and so on. %prep echo "hello" %setup -q -n ofbiz-release9.04 %build find . \( -name "*.orig" -o -name "*~" -o -name .cvsignore \) -print0 | \ xargs -0 rm -f find . -type f -print0 | xargs -0 chmod -x %install rm -rf $RPM_BUILD_ROOT install -d -m755 $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a * $RPM_BUILD_ROOT%{_datadir}/%{name} install -d -m775 $RPM_BUILD_ROOT%{_datadir}/%{name}/runtime/data %clean rm -rf $RPM_BUILD_ROOT %post ln -sf %{_datadir}/%{name}/runtime/data/derby/ofbiz %{_datadir}/tomcat5/ofbiz chown -R tomcat.tomcat %{_datadir}/%{name}/runtime/data/derby pushd %{_datadir}/%{name} /usr/bin/java -jar ofbiz.jar -setup tomcat6 popd cat %{_datadir}/%{name}/setup/tomcat6/catalina.properties > /etc/tomcat6/catalina.properties cat %{_datadir}/%{name}/setup/tomcat6/server.xml > /etc/tomcat6/server.xml %files %defattr(-,root,root,-) %{_datadir}/%{name} %doc LICENSE NOTICE README %changelog * Wed Jan 06 2010 Frederic Hornain - 9.04-3 - remove the line "rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/framework/catalina" in the spec file. * Wed Jan 06 2010 Frederic Hornain - 9.04-2 - Using the already packaged tomcat provided in Fedora 11 * Mon Jan 04 2010 Frederic Hornain - 9.04-1 - Initial release.