# # spec file for package phantomjs-prebuilt # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: phantomjs-prebuilt Version: 2.1.3 Release: 0 Summary: Headless WebKit with JS API License: MIT and ISC and WTFPL2 and Apache-2.0 and BSD-3-Clause and AFLv2.1 and BSD and Public domain Group: Development/Languages/NodeJS Url: https://www.npmjs.com/package/phantomjs-prebuilt Source0: %{name}.json Source1: http://registry.npmjs.org/adm-zip/-/adm-zip-0.4.7.tgz Source2: http://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.3.tgz Source3: http://registry.npmjs.org/jsonfile/-/jsonfile-2.2.3.tgz Source4: http://registry.npmjs.org/klaw/-/klaw-1.1.3.tgz Source5: http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz Source6: http://registry.npmjs.org/wrappy/-/wrappy-1.0.0.tgz Source7: http://registry.npmjs.org/once/-/once-1.3.3.tgz Source8: http://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz Source9: http://registry.npmjs.org/inherits/-/inherits-2.0.0.tgz Source10: http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz Source11: http://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz Source12: http://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz Source13: http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.2.tgz Source14: http://registry.npmjs.org/minimatch/-/minimatch-3.0.0.tgz Source15: http://registry.npmjs.org/glob/-/glob-6.0.4.tgz Source16: http://registry.npmjs.org/rimraf/-/rimraf-2.5.1.tgz Source17: http://registry.npmjs.org/fs-extra/-/fs-extra-0.26.5.tgz Source18: http://registry.npmjs.org/kew/-/kew-0.7.0.tgz Source19: http://registry.npmjs.org/charenc/-/charenc-0.0.1.tgz Source20: http://registry.npmjs.org/crypt/-/crypt-0.0.1.tgz Source21: http://registry.npmjs.org/is-buffer/-/is-buffer-1.0.2.tgz Source22: http://registry.npmjs.org/md5/-/md5-2.0.0.tgz Source23: http://registry.npmjs.org/progress/-/progress-1.1.8.tgz Source24: http://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz Source25: http://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz Source26: http://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.6.tgz Source27: http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz Source28: http://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz Source29: http://registry.npmjs.org/readable-stream/-/readable-stream-2.0.5.tgz Source30: http://registry.npmjs.org/bl/-/bl-1.0.2.tgz Source31: http://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz Source32: http://registry.npmjs.org/extend/-/extend-3.0.0.tgz Source33: http://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz Source34: http://registry.npmjs.org/async/-/async-1.5.2.tgz Source35: http://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz Source36: http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz Source37: http://registry.npmjs.org/mime-db/-/mime-db-1.21.0.tgz Source38: http://registry.npmjs.org/mime-types/-/mime-types-2.1.9.tgz Source39: http://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz Source40: http://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz Source41: http://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz Source42: http://registry.npmjs.org/qs/-/qs-5.2.0.tgz Source43: http://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz Source44: http://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.1.tgz Source45: http://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz Source46: http://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz Source47: http://registry.npmjs.org/json-schema/-/json-schema-0.2.2.tgz Source48: http://registry.npmjs.org/verror/-/verror-1.3.6.tgz Source49: http://registry.npmjs.org/jsprim/-/jsprim-1.2.2.tgz Source50: http://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz Source51: http://registry.npmjs.org/dashdash/-/dashdash-1.12.2.tgz Source52: http://registry.npmjs.org/jsbn/-/jsbn-0.1.0.tgz Source53: http://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.3.tgz Source54: http://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz Source55: http://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz Source56: http://registry.npmjs.org/sshpk/-/sshpk-1.7.3.tgz Source57: http://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz Source58: http://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.1.tgz Source59: http://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz Source60: http://registry.npmjs.org/boom/-/boom-2.10.1.tgz Source61: http://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz Source62: http://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz Source63: http://registry.npmjs.org/hawk/-/hawk-3.1.1.tgz Source64: http://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz Source65: http://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz Source66: http://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz Source67: http://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz Source68: http://registry.npmjs.org/ansi-styles/-/ansi-styles-2.1.0.tgz Source69: http://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.4.tgz Source70: http://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz Source71: http://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz Source72: http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.0.tgz Source73: http://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz Source74: http://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz Source75: http://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz Source76: http://registry.npmjs.org/commander/-/commander-2.9.0.tgz Source77: http://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz Source78: http://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz Source79: http://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz Source80: http://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz Source81: http://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz Source82: http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.4.tgz Source83: http://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz Source84: http://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.0.tgz Source85: http://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz Source86: http://registry.npmjs.org/request/-/request-2.67.0.tgz Source87: http://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz Source88: http://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz Source89: http://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz Source90: http://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz Source91: http://registry.npmjs.org/isexe/-/isexe-1.1.1.tgz Source92: http://registry.npmjs.org/which/-/which-1.2.4.tgz Source93: http://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.3.tgz BuildRequires: nodejs-packaging BuildRequires: fdupes BuildRequires: phantomjs BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description An NPM installer for PhantomJS, headless webkit with JS API. %prep %nodejs_prep %build #nothing to do %install %nodejs_mkdir %nodejs_copy # use openSUSE built one mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}/lib/phantom/bin ln -sf %{_bindir}/phantomjs %{buildroot}%{nodejs_sitelib}/%{name}/lib/phantom/bin/phantomjs %ifarch x86_64 ppc64le ppc64 aarch64 arch=x64 %else arch=ia32 %endif cat > %{buildroot}%{nodejs_sitelib}/%{name}/lib/location.js << EOF odule.exports.location = "phantom/bin/phantomjs" module.exports.platform = "linux" module.exports.arch = "$arch" EOF %nodejs_filelist #%nodejs_fixdep is-buffer ~1.0.2 %fdupes %{buildroot} %files -f %{_sourcedir}/files.lst %defattr(-,root,root,-) %changelog