Created
December 6, 2015 01:07
-
-
Save sherwind/841495e59090304d5365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: phantomjs | |
Version: 2.0.0 | |
Release: 1%{?dist} | |
Summary: A headless WebKit with JavaScript API | |
Group: Applications/Internet | |
License: BSD-3-Clause | |
URL: http://phantomjs.org | |
Source0: https://bitbucket.org/ariya/phantomjs/downloads/%{name}-%{version}-source.zip | |
BuildRequires: gcc-c++ | |
BuildRequires: make | |
BuildRequires: flex | |
BuildRequires: bison | |
BuildRequires: gperf | |
BuildRequires: ruby | |
BuildRequires: openssl-devel | |
BuildRequires: freetype-devel | |
BuildRequires: fontconfig-devel | |
BuildRequires: libicu-devel | |
BuildRequires: sqlite-devel | |
BuildRequires: libpng-devel | |
BuildRequires: libjpeg-devel | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
%description | |
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. | |
%prep | |
%setup -q | |
%build | |
./build.sh --confirm | |
%install | |
rm -rf %{buildroot} | |
mkdir -p %{buildroot}%{_bindir} | |
mkdir -p %{buildroot}%{_datadir}/%{name}/examples | |
cp bin/%{name} %{buildroot}%{_bindir}/%{name} | |
cp examples/* %{buildroot}%{_datadir}/%{name}/examples/ | |
cp CONTRIBUTING.md %{buildroot}%{_datadir}/%{name}/ | |
cp ChangeLog %{buildroot}%{_datadir}/%{name}/ | |
cp LICENSE.BSD %{buildroot}%{_datadir}/%{name}/ | |
cp README.md %{buildroot}%{_datadir}/%{name}/ | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(0444,root,root,0755) | |
%attr(0555,root,root)%{_bindir}/%{name} | |
%dir %{_datadir}/%{name} | |
%{_datadir}/%{name}/ChangeLog | |
%{_datadir}/%{name}/CONTRIBUTING.md | |
%{_datadir}/%{name}/examples/ | |
%{_datadir}/%{name}/LICENSE.BSD | |
%{_datadir}/%{name}/README.md | |
%changelog | |
* Fri Dec 04 2015 Sherwin Daganato <sherwin.daganato@transfer-to.com> 2.0.0-1 | |
- Initial package based on openSUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment