Skip to content

Commit

Permalink
Fix build of phantomjs 1.1.0 on SL6 again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Braeuer committed Oct 27, 2011
1 parent ba95a63 commit 73b2e56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SPECS/phantomjs-1.1.0.spec
@@ -1,7 +1,7 @@
Summary: PhantomJS is a headless WebKit with JavaScript API
Name: phantomjs
Version: 1.1.0
Release: 5%{?dist}
Release: 6%{?dist}
License: BSD
Group: unknown
URL: http://code.google.com/p/phantomjs/
Expand Down Expand Up @@ -52,7 +52,9 @@ rm -rf "$RPM_BUILD_ROOT"

mkdir -p "$RPM_BUILD_ROOT/usr/bin"
cp bin/* "$RPM_BUILD_ROOT/usr/bin"
%if 0%{?el5}
cp %SOURCE1 "$RPM_BUILD_ROOT/usr/bin/xvfb-run"
%endif
find "$RPM_BUILD_ROOT/usr/bin" -type f -exec chmod 755 '{}' ';'

mkdir -p "$RPM_BUILD_ROOT/usr/share/doc/%{name}"
Expand All @@ -70,7 +72,9 @@ rm -rf $RPM_BUILD_ROOT
%doc
/etc/rc.d/init.d/xvfb
/usr/bin/phantomjs
%if 0%{?el5}
/usr/bin/xvfb-run
%endif
/usr/share/doc/%{name}/examples

%changelog
Expand Down

0 comments on commit 73b2e56

Please sign in to comment.