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
|
|
|
#
|
2018-01-17 16:31:00 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2012-03-11 18:45:16 +01:00
|
|
|
|
2009-08-04 12:20:43 +02:00
|
|
|
Name: gjs
|
2018-01-17 16:31:00 +01:00
|
|
|
Version: 1.50.2
|
2011-12-21 06:05:24 +01:00
|
|
|
Release: 0
|
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
|
|
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
2017-09-11 21:22:31 +02:00
|
|
|
License: MIT
|
2009-09-03 23:35:28 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
2017-11-02 14:52:33 +01:00
|
|
|
Url: https://wiki.gnome.org/Projects/Gjs
|
2018-01-17 16:31:00 +01:00
|
|
|
Source: https://download.gnome.org/sources/gjs/1.50/%{name}-%{version}.tar.xz
|
2010-03-20 00:46:42 +01:00
|
|
|
BuildRequires: gcc-c++
|
2017-08-31 09:45:40 +02:00
|
|
|
BuildRequires: mozjs52-devel
|
|
|
|
BuildRequires: pkgconfig
|
2009-08-04 12:20:43 +02:00
|
|
|
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)
|
2017-11-02 14:52:33 +01:00
|
|
|
BuildRequires: pkgconfig(cairo-gobject)
|
2014-08-23 13:51:51 +02:00
|
|
|
BuildRequires: pkgconfig(cairo-xlib)
|
2010-11-05 12:22:58 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
2017-11-02 14:52:33 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.50.0
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.50.0
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.53.4
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.50.0
|
2017-02-22 21:41:49 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
|
2012-09-21 21:23:22 +02:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
2017-08-31 09:45:40 +02:00
|
|
|
#BuildRequires: pkgconfig(mozjs-52)
|
2010-11-05 12:22:58 +01:00
|
|
|
Requires: libgjs0 = %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%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
|
|
|
Summary: JavaScript bindings based on gobject-introspection and Mozilla
|
2012-09-08 00:35:08 +02:00
|
|
|
Group: System/Libraries
|
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.
|
|
|
|
|
2012-09-08 00:35:08 +02:00
|
|
|
%package -n typelib-1_0-GjsPrivate-1_0
|
2017-09-12 08:58:01 +02:00
|
|
|
Summary: Introspection bindings for the GJS library
|
|
|
|
# The tyeplib was renamed in gnome 3.6, to reflect it is a private lib.
|
2017-02-22 21:41:49 +01:00
|
|
|
Group: System/Libraries
|
2012-10-20 16:17:28 +02:00
|
|
|
Obsoletes: typelib-1_0-GjsDBus-1_0 < %{version}
|
2011-12-24 15:24:50 +01:00
|
|
|
|
2012-09-08 00:35:08 +02:00
|
|
|
%description -n typelib-1_0-GjsPrivate-1_0
|
2011-12-24 15:24:50 +01:00
|
|
|
This module contains JavaScript bindings based on gobject-introspection and the
|
|
|
|
Mozilla SpiderMonkey JavaScript engine.
|
|
|
|
|
2009-08-04 12:20:43 +02:00
|
|
|
%package -n libgjs-devel
|
2017-09-12 08:58:01 +02:00
|
|
|
Summary: Development files for the GJS library
|
2011-12-24 15:24:50 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2015-03-19 15:35:05 +01:00
|
|
|
Requires: %{name} = %{version}
|
2010-11-05 12:22:58 +01:00
|
|
|
Requires: libgjs0 = %{version}
|
2012-09-08 00:35:08 +02:00
|
|
|
Requires: typelib-1_0-GjsPrivate-1_0 = %{version}
|
2009-08-04 12:20:43 +02:00
|
|
|
# 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
|
2018-01-17 16:31:00 +01:00
|
|
|
%setup -q
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2018-01-17 16:31:00 +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
|
2009-08-04 12:20:43 +02:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%post -n libgjs0 -p /sbin/ldconfig
|
2018-01-17 16:31:00 +01:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%postun -n libgjs0 -p /sbin/ldconfig
|
2009-08-04 12:20:43 +02:00
|
|
|
|
|
|
|
%files
|
2018-01-17 16:31:00 +01:00
|
|
|
%defattr(-,root,root)
|
2011-07-28 00:07:27 +02:00
|
|
|
%{_bindir}/gjs
|
|
|
|
%{_bindir}/gjs-console
|
2009-08-04 12:20:43 +02:00
|
|
|
|
2010-11-05 12:22:58 +01:00
|
|
|
%files -n libgjs0
|
2018-01-17 16:31:00 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS README
|
2009-08-04 12:20:43 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
2012-09-08 00:35:08 +02:00
|
|
|
%files -n typelib-1_0-GjsPrivate-1_0
|
2018-01-17 16:31:00 +01:00
|
|
|
%defattr(-,root,root)
|
2012-09-08 00:35:08 +02:00
|
|
|
%dir %{_libdir}/gjs
|
|
|
|
%dir %{_libdir}/gjs/girepository-1.0/
|
|
|
|
%{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib
|
2011-12-24 15:24:50 +01:00
|
|
|
|
2009-08-04 12:20:43 +02:00
|
|
|
%files -n libgjs-devel
|
2018-01-17 16:31:00 +01:00
|
|
|
%defattr(-,root,root)
|
2009-08-04 12:20:43 +02:00
|
|
|
%{_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
|