# # Conditional build: %bcond_without sysprof # sysprof profiling %bcond_without systemtap # systemtap/dtrace trace support # Summary: JavaScript bindings for GNOME Summary(pl.UTF-8): Wiązania JavaScriptu dla GNOME Name: gjs Version: 1.68.0 Release: 1 License: MIT and (MPL v1.1 or GPL v2+ or LGPL v2+) Group: Libraries Source0: https://download.gnome.org/sources/gjs/1.68/%{name}-%{version}.tar.xz # Source0-md5: ca06aee4b29f422b7c1463e390f75edb URL: https://wiki.gnome.org/Projects/Gjs BuildRequires: autoconf >= 2.64 BuildRequires: automake >= 1:1.11.1 BuildRequires: cairo-devel BuildRequires: cairo-gobject-devel BuildRequires: gettext-tools BuildRequires: glib2-devel >= 1:2.66.0 BuildRequires: gobject-introspection-devel >= 1.66.1 BuildRequires: libffi-devel BuildRequires: libstdc++-devel >= 6:7.0 BuildRequires: libtool >= 2:2.2.0 BuildRequires: meson >= 0.52.0 BuildRequires: mozjs78-devel >= 78 BuildRequires: ninja >= 1.5 BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.736 # pkgconfig(sysprof-capture-4) %{?with_sysprof:BuildRequires: sysprof-devel >= 3.36} %{?with_systemtap:BuildRequires: systemtap-sdt-devel} BuildRequires: tar >= 1:1.22 BuildRequires: xz Requires: glib2 >= 1:2.66.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Gjs allows using GNOME libraries from JavaScript. It is mainly based on Spidermonkey JavaScript engine and the GObject introspection framework. %description -l pl.UTF-8 Gjs pozwala używać bibliotek GNOME z JavaScriptem. Jest oparty głównie na silniku JavaScriptu Spidermonkey i systemie GObject introspection. %package devel Summary: Header files for gjs library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: cairo-devel Requires: cairo-gobject-devel Requires: glib2-devel >= 1:2.66.0 Requires: gobject-introspection-devel >= 1.66.0 Requires: libffi-devel Requires: mozjs78-devel >= 78 %description devel Header files for gjs library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki gjs. %package -n systemtap-gjs Summary: systemtap/dtrace probes for gjs Summary(pl.UTF-8): Sondy systemtap/dtrace dla gjs Group: Development/Tools Requires: %{name} = %{version}-%{release} Requires: systemtap-client BuildArch: noarch %description -n systemtap-gjs systemtap/dtrace probes for gjs. %description -n systemtap-gjs -l pl.UTF-8 Sondy systemtap/dtrace dla gjs. %prep %setup -q %build %meson build \ -Dprofiler=%{?with_sysprof:enabled}%{!?with_sysprof:disabled} \ -Dsystemtap=%{__true_false systemtap} \ -Ddtrace=%{__true_false systemtap} %ninja_build -C build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %ninja_install -C build cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} # belongs to installed-tests %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml %{__rm} -r $RPM_BUILD_ROOT{%{_datadir},%{_libexecdir}}/installed-tests %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc COPYING NEWS README.md %attr(755,root,root) %{_bindir}/gjs %attr(755,root,root) %{_bindir}/gjs-console %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 %dir %{_libdir}/gjs %dir %{_libdir}/gjs/girepository-1.0 %{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib %{_datadir}/gjs-1.0 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libgjs.so %{_includedir}/gjs-1.0 %{_pkgconfigdir}/gjs-1.0.pc %{_examplesdir}/%{name}-%{version} %if %{with systemtap} %files -n systemtap-gjs %defattr(644,root,root,755) %{_datadir}/systemtap/tapset/gjs.stp %endif