Browse files

add phantomjs-1.5.0.spec

This spec will build without qt as a dependency, as it
will use the one that is shipped with phantomjs.
  • Loading branch information...
1 parent 659e82a commit c8412d840b1e892edc688b69af9a12494e616eb8 @turingmachine turingmachine committed Apr 18, 2012
Showing with 46 additions and 0 deletions.
  1. +46 −0 SPECS/phantomjs-1.5.0.spec
@@ -0,0 +1,46 @@
+Summary: PhantomJS is a headless WebKit with JavaScript API
+Name: phantomjs
+Version: 1.5.0
+Release: 1%{?dist}
+License: BSD
+Group: unknown
+Source0: %{name}-%{version}-source.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+PhantomJS is a headless WebKit with JavaScript API. It has fast
+and native support for various web standards: DOM handling,
+CSS selector, JSON, Canvas, and SVG.
+PhantomJS is created by Ariya Hidayat.
+%setup -q
+./ --jobs "`grep "^processor" /proc/cpuinfo | wc -l`"
+echo %{_libdir}/phantomjs-qt > 0-phantomjs-qt-%{_arch}.conf
+rm -rf %{buildroot}
+%{__install} -p -D -m 0755 bin/phantomjs %{buildroot}%{_bindir}/phantomjs
+%{__install} -p -D -m 0644 0-phantomjs-qt-%{_arch}.conf %{buildroot}%{_sysconfdir}/{_arch}.conf
+mkdir -p %{buildroot}%{_libdir}/phantomjs-qt
+cp -a src/qt/lib/* %{buildroot}%{_libdir}/phantomjs-qt
+rm -rf %{buildroot}%{_libdir}/phantomjs-qt/{fonts,pkgconfig,*.la,*.prl,README}
+rm -rf %{buildroot}
+* Wed Apr 18 2012 Simon Josi <> - 1.5.0-1
+- Package PhantomJS 1.5.0.

0 comments on commit c8412d8

Please sign in to comment.