]> git.pld-linux.org Git - packages/gjs.git/blobdiff - gjs.spec
- updated to 1.58.4
[packages/gjs.git] / gjs.spec
index 9d342997681389f1a76304a744a8ab555db55ee9..94da806156b639c9b3add34062b8f8c6ba294bab 100644 (file)
--- a/gjs.spec
+++ b/gjs.spec
@@ -1,34 +1,37 @@
 #
 # 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.40.1
+Version:       1.58.4
 Release:       1
 License:       MIT and (MPL v1.1 or GPL v2+ or LGPL v2+)
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/gjs/1.40/%{name}-%{version}.tar.xz
-# Source0-md5: 150580858bc40d0dbc9df43741eb2ad3
-Patch0:                %{name}-systemtap.patch
-URL:           http://live.gnome.org/Gjs
-BuildRequires: autoconf >= 2.61
-BuildRequires: automake
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gjs/1.58/%{name}-%{version}.tar.xz
+# Source0-md5: 385f4baa266991a08d3e425bc69ee962
+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-devel
-BuildRequires: glib2-devel >= 1:2.36.0
-BuildRequires: gobject-introspection-devel >= 1.39.3
-BuildRequires: gtk+3-devel
+BuildRequires: gettext-tools
+BuildRequires: glib2-devel >= 1:2.58.0
+BuildRequires: gobject-introspection-devel >= 1.41.4
 BuildRequires: libffi-devel
-BuildRequires: libstdc++-devel
-BuildRequires: libtool
-BuildRequires: mozjs24-devel
+BuildRequires: libstdc++-devel >= 6:5.0
+BuildRequires: libtool >= 2:2.2.0
+BuildRequires: mozjs60-devel >= 60
 BuildRequires: pkgconfig
 BuildRequires: readline-devel
+# pkgconfig(sysprof-capture-3)
+%{?with_sysprof:BuildRequires: sysprof-devel >= 3.34}
 %{?with_systemtap:BuildRequires:       systemtap-sdt-devel}
-Requires:      glib2 >= 1:2.36.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires:      glib2 >= 1:2.58.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,10 +48,12 @@ Summary:    Header files for gjs library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki gjs
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      dbus-devel
-Requires:      glib2-devel >= 1:2.36.0
-Requires:      gobject-introspection-devel >= 1.39.3
-Requires:      mozjs24-devel
+Requires:      cairo-devel
+Requires:      cairo-gobject-devel
+Requires:      glib2-devel >= 1:2.58.0
+Requires:      gobject-introspection-devel >= 1.41.4
+Requires:      libffi-devel
+Requires:      mozjs60-devel >= 60
 
 %description devel
 Header files for gjs library.
@@ -71,7 +76,6 @@ Sondy systemtap/dtrace dla gjs.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -80,6 +84,7 @@ Sondy systemtap/dtrace dla gjs.
 %{__autoheader}
 %{__automake}
 %configure \
+       --enable-profiler%{!?with_sysprof:=no} \
        --disable-silent-rules \
        %{?with_systemtap:--enable-systemtap}
 %{__make}
@@ -91,9 +96,12 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %{__make} -j1 install \
        DESTDIR=$RPM_BUILD_ROOT
 
-cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+# obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+# belongs to installed-tests
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -111,13 +119,13 @@ rm -rf $RPM_BUILD_ROOT
 %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
-%{_pkgconfigdir}/gjs-internals-1.0.pc
 %{_examplesdir}/%{name}-%{version}
 
 %files -n systemtap-gjs
This page took 0.092374 seconds and 4 git commands to generate.