2009-08-04 12:20:43 +02:00
|
|
|
#
|
2011-01-17 18:54:16 +01:00
|
|
|
# spec file for package gjs
|
2009-08-04 12:20:43 +02:00
|
|
|
#
|
2011-01-10 12:05:51 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-04 12:20:43 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-11-20 12:25:23 +01:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%if 0%{suse_version} > 1130
|
|
|
|
%define xulrunner_ver 20
|
|
|
|
%else
|
2010-03-29 13:19:49 +02:00
|
|
|
%if 0%{suse_version} > 1120
|
|
|
|
%define xulrunner_ver 192
|
|
|
|
%else
|
2009-08-10 22:36:35 +02:00
|
|
|
%define xulrunner_ver 191
|
|
|
|
%endif
|
2010-03-29 13:19:49 +02:00
|
|
|
%endif
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
Name: gjs
|
2011-03-01 22:47:15 +01:00
|
|
|
Version: 0.7.11
|
2011-02-21 17:52:49 +01:00
|
|
|
Release: 5
|
2010-08-10 00:39:16 +02:00
|
|
|
# FIXME: find out if tapsets should really be in devel package or in main package
|
2009-09-03 23:35:28 +02:00
|
|
|
License: MIT License (or similar)
|
|
|
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
|
|
|
Group: Development/Libraries/GNOME
|
2011-01-17 10:51:00 +01:00
|
|
|
Url: http://live.gnome.org/Gjs
|
2009-09-03 23:35:28 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2010-03-20 00:46:42 +01:00
|
|
|
BuildRequires: gcc-c++
|
2009-08-04 12:20:43 +02:00
|
|
|
BuildRequires: mozilla-xulrunner%{xulrunner_ver}-devel
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: readline-devel
|
2010-08-10 00:39:16 +02:00
|
|
|
BuildRequires: systemtap-sdt-devel
|
2010-11-05 12:22:58 +01:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
Requires: libgjs0 = %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module contains JavaScript bindings based on gobject-introspection and the
|
|
|
|
Mozilla SpiderMonkey JavaScript engine.
|
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%package -n libgjs0
|
2009-08-04 12:20:43 +02:00
|
|
|
License: MIT License (or similar)
|
|
|
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
|
|
|
Group: Development/Libraries/GNOME
|
2010-12-05 10:06:05 +01:00
|
|
|
# Explicitly requires the xulrunner version we need, instead of hoping we'll
|
|
|
|
# get the right one with the libmozjs.so Requires.
|
|
|
|
Requires: mozilla-xulrunner%{xulrunner_ver}
|
2010-11-05 12:22:58 +01:00
|
|
|
Provides: libgjs-0 = %{version}
|
|
|
|
Obsoletes: libgjs-0 < %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%description -n libgjs0
|
2009-08-04 12:20:43 +02:00
|
|
|
This module contains JavaScript bindings based on gobject-introspection and the
|
|
|
|
Mozilla SpiderMonkey JavaScript engine.
|
|
|
|
|
|
|
|
%package -n libgjs-devel
|
|
|
|
License: MIT License (or similar)
|
|
|
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
|
|
|
Group: Development/Libraries/GNOME
|
2010-11-05 12:22:58 +01:00
|
|
|
Requires: libgjs0 = %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
Requires: mozilla-xulrunner%{xulrunner_ver}-devel
|
|
|
|
# Just a helper provides
|
2010-11-05 12:22:58 +01:00
|
|
|
Provides: gjs-devel = %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%description -n libgjs-devel
|
|
|
|
This module contains JavaScript bindings based on gobject-introspection and the
|
|
|
|
Mozilla SpiderMonkey JavaScript engine.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2010-11-05 12:22:58 +01:00
|
|
|
--disable-static \
|
|
|
|
--enable-systemtap
|
|
|
|
make %{?_smp_mflags}
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%install
|
2010-11-05 12:22:58 +01:00
|
|
|
%make_install
|
2009-09-03 23:35:28 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-08-10 00:39:16 +02:00
|
|
|
# fix installation of systemtap files
|
|
|
|
mv %{buildroot}%{buildroot}%{_datadir}/systemtap %{buildroot}%{_datadir}/systemtap
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%post -n libgjs0 -p /sbin/ldconfig
|
2009-08-04 12:20:43 +02:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%postun -n libgjs0 -p /sbin/ldconfig
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%files -n libgjs0
|
2009-08-04 12:20:43 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS README
|
2010-11-05 12:22:58 +01:00
|
|
|
%{_datadir}/gjs-1.0/
|
2009-08-04 12:20:43 +02:00
|
|
|
%{_libdir}/*.so.*
|
2010-11-05 12:22:58 +01:00
|
|
|
%{_libdir}/gjs-1.0/
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%files -n libgjs-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2010-08-10 00:39:16 +02:00
|
|
|
%{_datadir}/systemtap/tapset/*.stp
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%changelog
|