Compare commits

..

No commits in common. "9fe68032ec25aa703c7fb3183f4dab3263a1cdc8" and "819d360592390c80c107aac54060c81ff933c57c" have entirely different histories.

3 changed files with 25 additions and 48 deletions

BIN
gjs-1.54.1.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,57 +1,50 @@
%global glib2_version 2.58.0
%global gobject_introspection_version 1.61.2
%global gtk3_version 3.20
%global mozjs91_version 91.6.0-1
Name: gjs
Version: 1.71.1
Release: 2
Version: 1.54.1
Release: 5
Summary: using GNOME libraries from Javascript
License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+)
URL: https://wiki.gnome.org/Projects/Gjs
Source0: https://download.gnome.org/sources/%{name}/1.71/%{name}-%{version}.tar.xz
URL: https://wiki.gnome.org/Attic/Gjs
Source0: https://download.gnome.org/sources/gjs/1.54/gjs-%{version}.tar.xz
BuildRequires: cairo-gobject-devel dbus-daemon dbus-glib-devel gcc-c++
BuildRequires: meson cmake gettext pkgconfig readline-devel sysprof-devel
BuildRequires: gtk3-devel >= %{gtk3_version}
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: mozjs91-devel >= %{mozjs91_version}
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
BuildRequires: cairo-gobject-devel chrpath gobject-introspection-devel >= 1.41.4
BuildRequires: glib2-devel >= 2.54.0 gtk3-devel >= 3.20 mozjs60-devel >= 60.2.2
BuildRequires: readline-devel dbus-glib-devel gcc-c++ gettext pkgconfig dbus-daemon
Requires: gtk3%{?_isa} >= %{gtk3_version}
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: mozjs91%{?_isa} >= %{mozjs91_version}
Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version}
# Filter provides for private libraries
%global __provides_exclude_from ^%{_libdir}/gjs/
Requires: glib2 >= 2.54.0 gobject-introspection >= 1.41.4 gtk3 >= 3.20 mozjs60 >= 60.2.2
%description
Gjs is a Javascript binding for GNOME. It's mainly based on Spidermonkey javascript
engine and the GObject introspection framework.
%package devel
Summary: Development files for gjs
Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: %{name}-tests = %{version}-%{release}
Obsoletes: %{name}-tests < %{version}-%{release}
Summary: Development files for gjs
Requires: %{name} = %{version}-%{release}
Provides: %{name}-tests = %{version}-%{release}
Obsoletes: %{name}-tests < %{version}-%{release}
%description devel
Development files for gjs.
%prep
%autosetup -p1
%autosetup -n %{name}-%{version} -p1
%build
%meson
%meson_build
%configure --enable-installed-tests
%make_build V=1
%install
%meson_install
%make_install
chrpath --delete %{buildroot}%{_bindir}/gjs-console
chrpath --delete %{buildroot}%{_libexecdir}/gjs/installed-tests/minijasmine
%delete_la
%files
%defattr(-,root,root)
%doc NEWS README.md
%doc NEWS README
%license COPYING
%{_bindir}/gjs*
%{_libdir}/*.so.*
@ -63,28 +56,12 @@ Development files for gjs.
%{_includedir}/gjs-1.0
%{_libdir}/pkgconfig/gjs-1.0.pc
%{_libdir}/*.so
%{_libexecdir}/installed-tests
%{_libexecdir}/gjs/installed-tests
%{_datadir}/gjs-1.0/lsan/
%{_datadir}/gjs-1.0/valgrind/
%{_datadir}/installed-tests
%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml
%changelog
* Mon Feb 19 2024 hanhuihui <hanhuihui5@huawei.com> - 1.71.1-2
- rebuild for glib2 without sysprof
* Wed Apr 06 2022 wangkai <wangkai385@huawei.com> - 1.71.1-1
- Update to 1.71.1
* Mon May 31 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.66.2-1
- Upgrade to 1.66.2
* Fri Nov 13 2020 chengguipeng <chengguipeng1@huawei.com> - 1.66.1-1
- update to 1.66.1
* Fri Oct 9 2020 jinzhimin <jinzhimin2@huawei.com> - 1.65.4-1
- update to 1.65.4
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.54.1-5
- Type:bugfix
- Id:NA