commit a05f75dd975241a6a21efe677e2328d6c4c4db6c Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:40:40 2019 -0400 Package init diff --git a/gjs-1.54.1.tar.xz b/gjs-1.54.1.tar.xz new file mode 100644 index 0000000..ff8e890 Binary files /dev/null and b/gjs-1.54.1.tar.xz differ diff --git a/gjs.spec b/gjs.spec new file mode 100644 index 0000000..d39f6f6 --- /dev/null +++ b/gjs.spec @@ -0,0 +1,69 @@ +Name: gjs +Version: 1.54.1 +Release: 3 +Summary: using GNOME libraries from Javascript +License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+) +URL: https://wiki.gnome.org/Attic/Gjs +Source0: https://download.gnome.org/sources/gjs/1.54/gjs-%{version}.tar.xz + +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 + +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} = %{version}-%{release} + +%description devel +Development files for gjs. + +%package tests +Summary: Usability test of the gjs package +Requires: %{name} = %{version}-%{release} + +%description tests +The tests package can be used to verify the Usability of the gjs package. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --enable-installed-tests + +%make_build V=1 + +%install +%make_install + +chrpath --delete %{buildroot}%{_bindir}/gjs-console +chrpath --delete %{buildroot}%{_libexecdir}/gjs/installed-tests/minijasmine + +%delete_la + +%files +%doc NEWS README COPYING +%{_bindir}/gjs* +%{_libdir}/*.so.* +%{_libdir}/gjs + +%files devel +%doc examples/* +%{_includedir}/gjs-1.0 +%{_libdir}/pkgconfig/gjs-1.0.pc +%{_libdir}/*.so +%{_datadir}/gjs-1.0/lsan/ +%{_datadir}/gjs-1.0/valgrind/ + +%files tests +%{_libexecdir}/gjs/installed-tests +%{_datadir}/installed-tests + +%changelog +* Wed Sep 11 2019 Lijin Yang - 1.54.1-3 +- Package init \ No newline at end of file