gjs/gjs.spec

90 lines
2.5 KiB
RPMSpec
Raw Normal View History

%global glib2_version 2.58.0
%global gobject_introspection_version 1.61.2
%global gtk3_version 3.20
%global mozjs78_version 78.4.0-1
2019-09-30 10:40:40 -04:00
Name: gjs
Version: 1.66.1
2020-10-09 15:20:35 +08:00
Release: 1
2019-09-30 10:40:40 -04:00
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.66/%{name}-%{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: mozjs78-devel >= %{mozjs78_version}
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
2019-09-30 10:40:40 -04:00
Requires: gtk3%{?_isa} >= %{gtk3_version}
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: mozjs78%{?_isa} >= %{mozjs78_version}
Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version}
2019-09-30 10:40:40 -04:00
# Filter provides for private libraries
%global __provides_exclude_from ^%{_libdir}/gjs/
2019-09-30 10:40:40 -04:00
%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}
2019-12-26 15:21:40 +08:00
2019-09-30 10:40:40 -04:00
%description devel
Development files for gjs.
%prep
2020-10-09 15:20:35 +08:00
%autosetup -p1
2019-09-30 10:40:40 -04:00
%build
2020-10-09 15:20:35 +08:00
%meson
%meson_build
2019-09-30 10:40:40 -04:00
%install
2020-10-09 15:20:35 +08:00
%meson_install
2019-09-30 10:40:40 -04:00
%files
2019-12-26 15:21:40 +08:00
%defattr(-,root,root)
2020-10-09 15:20:35 +08:00
%doc NEWS README.md
2019-12-26 15:21:40 +08:00
%license COPYING
2019-09-30 10:40:40 -04:00
%{_bindir}/gjs*
%{_libdir}/*.so.*
%{_libdir}/gjs
%files devel
2019-12-26 15:21:40 +08:00
%defattr(-,root,root)
2019-09-30 10:40:40 -04:00
%doc examples/*
%{_includedir}/gjs-1.0
%{_libdir}/pkgconfig/gjs-1.0.pc
%{_libdir}/*.so
2020-10-09 15:20:35 +08:00
%{_libexecdir}/installed-tests
2019-09-30 10:40:40 -04:00
%{_datadir}/gjs-1.0/lsan/
%{_datadir}/gjs-1.0/valgrind/
%{_datadir}/installed-tests
2020-10-09 15:20:35 +08:00
%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml
2019-09-30 10:40:40 -04:00
%changelog
* Fri Nov 13 2020 chengguipeng <chengguipeng1@huawei.com> - 1.66.1-1
- update to 1.66.1
2020-10-09 15:20:35 +08:00
* Fri Oct 9 2020 jinzhimin <jinzhimin2@huawei.com> - 1.65.4-1
- update to 1.65.4
2020-01-20 23:14:32 +08:00
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.54.1-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add dbus-daemon in buildrequires
2019-12-26 15:21:40 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.54.1-4
- change the path of files
2019-09-30 10:40:40 -04:00
* Wed Sep 11 2019 Lijin Yang <yanglijin@huawei.com> - 1.54.1-3
2019-12-26 15:21:40 +08:00
- Package init