File spidermonkey.spec of Package spidermonkey
Name: spidermonkey
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
Version: 1.7.0
Release: 1
License: GPL v2 or later
Source: js-1.7.0.tar.gz
Group: Development/Languages/Other
Summary: SpiderMonkey: Mozilla/Gecko's JavaScript engine written in C.
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SpiderMonkey is Gecko's JavaScript engine written in C. It is used in
various Mozilla products, including Firefox, and is available under
MPL/GPL/LGPL tri-license.
(from http://developer.mozilla.org/en/SpiderMonkey)
%prep
%setup -n js
#cd /usr/src/packages/BUILD
#/usr/bin/gzip -dc /usr/src/packages/SOURCES/js-1.7.0.tar.gz | tar -xvvf -
#STATUS=$?
#if [ $STATUS -ne 0 ]; then
#exit $STATUS
#fi
#cd js
#[ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root .
#[ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root .
#/bin/chmod -Rf a+rX,u+w,g-w,o-w .
#mv ../js %buildroot
#echo "---end %prep---"
%build
cd src
BUILD_OPT=1 make -f Makefile.ref
echo === Testing ===
./Linux_All_OPT.OBJ/js perfect.js
cd ../tests; perl jsDriver.pl -L slow-n.tests -L spidermonkey-n.tests -k -e smopt
echo === End Testing ===
%install
BUILD_OPT=1 make -f Makefile.ref DESTDIR=%buildroot install
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
# This is a place for a proper filelist:
# /usr/bin/spidermonkey
# You can also use shell wildcards:
# /usr/share/spidermonkey/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Thu Sep 04 2008 jeckard@condreycorp.com
- packaged spidermonkey version 1.7.0 using the buildservice spec file wizard