LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File rubygem-johnson.spec of Package rubygem-johnson (Project devel:languages:ruby:extensions)

# spec file for package rubygem-johnson (Version 1.2.0)
# Copyright (c) 2009 SUSE LINUX Products 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/

# norootforbuild
Name:           rubygem-johnson
Version:        2.0.0.pre3
Release:        0
%define mod_name johnson
Group:          Development/Languages/Ruby
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
BuildRequires:  gcc-c++
BuildRequires:  python-devel
BuildRequires:  unzip zip
BuildRequires:  pkg-config
%if 0%{?build_with_xulrunner}
%if 0%{suse_version} == 1120
%define xul_version 191
%define xul_pathext /unstable
%if 0%{suse_version} == 1130
%define xul_version 192
%define xul_pathext /
BuildRequires:  mozilla-xulrunner%{xul_version}-devel
# Require the proper mozilla-js (do not rely on the autoprovreq found libmozjs)
%if 0%{suse_version} < 1130
Requires:       mozilla-xulrunner%{xul_version}
Requires:       mozilla-js%{xul_version}
BuildRequires:  rubygem-stackdeck >= 0.2
Requires:       rubygem-stackdeck >= 0.2
Url:            http://github.com/jbarnette/johnson
Source:         %{mod_name}-%{version}.gem
Source1:        rubygem-johnson-rpmlintrc
Summary:        Johnson wraps JavaScript in a loving Ruby embrace
Johnson wraps JavaScript in a loving Ruby embrace. It embeds the
Mozilla SpiderMonkey JavaScript runtime as a C extension.

%gem_install %{S:0}
# FIXME. the real solution is to build against the mozilla xulrunner but it seems that lacks some
# headers atm.
rm -rv %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/vendor/tracemonkey/

%{__rm} -rf %{buildroot}

%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/