File jscall-sharp.spec of Package jscall-sharp
#
# spec file for package jscall-sharp (Version 0.0.3)
#
# Copyright (c) 2008 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: jscall-sharp
Url: http://anonsvn.mono-project.com/viewvc/trunk/jscall-sharp
BuildRequires: gcc-c++ gecko-sharp2 gtk-sharp2 gtk2-devel mono-devel mozilla-xulrunner190-devel
License: X11/MIT
Version: 0.0.3
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: jscall-sharp-rpmlintrc
Group: Development/Libraries/Other
Summary: A Simple JavaScript Bridge for Gecko#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
jscall-sharp is an interim solution until someone writes a proper XPCOM
bridge for mono. It uses unmanaged code and P/Invoke to exploit Gecko's
XPCOM components from managed code. It should work with any .NET
language.
It allows developers to call JavaScript functions from any .NET
language.
Authors:
--------
Michael Hutchinson <m.j.hutchinson@dur.ac.uk>
Chris Howie <cdhowie@nerdshack.com>
%package devel
License: X11/MIT
Requires: %{name} = %{version} pkg-config
Summary: A Simple JavaScript Bridge for Gecko#
Group: Development/Libraries/Other
AutoReqProv: on
%description devel
It's an interim solution until someone write a proper XPCOM bridge for
MONO. It uses unmanaged code and P/Invoke to invoke Gecko's XPCOM
components from managed code. It should work with any .NET language.
Benefit is that you can load a web page that contains JavaScript and
call the JavaScript function from C#/.NET.
%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires | grep -v "no package provides" ; } '
#'
%prep
%setup
#%patch0
%build
%configure \
--disable-schemas-install \
--disable-scrollkeeper \
--enable-tango=yes
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
chmod -x $RPM_BUILD_ROOT/%{_prefix}/%{_lib}/%{name}/JSCall.js
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
# mono "binary" files go into lib/ and not lib64/ regardless of platform.
%{_prefix}/lib/mono/gac/jscall
%files devel
%defattr(-,root,root)
%{_prefix}/%{_lib}/pkgconfig/jscall-sharp.pc
%{_prefix}/%{_lib}/jscall-sharp
%changelog
* Fri Oct 31 2008 maw@suse.de
- Update to version 0.0.3:
+ Build against mozilla-xulrunner190 (bnc#420641)
+ Weaker dependence on mozilla in general.
* Mon Jan 21 2008 ro@suse.de
- move libjscallglue to base package (required at runtime)
- work around problem in mono-find-requires if the sharp bindings
are a subpackage of the one providing the library
* Thu Jun 21 2007 maw@suse.de
- Minor specfile cleanups
- Don't build as root
- Create a proper -devel subpackage.
* Thu Jun 21 2007 maw@suse.de
- Initial submission after undropping the package in the PDB.
* Mon Apr 16 2007 btimothy@suse.de
- Updated to use proper lib variable in the files section so it will build
on 64-bit machines
* Tue Apr 03 2007 btimothy@suse.de
- Added base directory to be compiled and installed (to pick up jscall-sharp.pc)
* Mon Apr 02 2007 btimothy@suse.de
- Initial package, version 0.0.2