Include standalone /usr/bin/js52 interpreter

Polari and gnome-shell are going to make use of it to syntax check js
files in CI. This puts it in the -devel subpackage, in line with how
Debian is packaging /usr/bin/js52 in their -dev subpackage.
This commit is contained in:
Kalev Lember 2017-10-31 16:52:36 +01:00
parent 589dba8116
commit c4fc1def71

View File

@ -7,7 +7,7 @@
Name: mozjs%{major}
Version: 52.4.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: SpiderMonkey JavaScript library
License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+ and AFL and ASL 2.0
@ -123,8 +123,8 @@ popd
# Fix permissions
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc
# We only need the shared library
rm %{buildroot}%{_bindir}/js*
# Remove unneeded files
rm %{buildroot}%{_bindir}/js52-config
rm %{buildroot}%{_libdir}/libjs_static.ajs
# Rename library and create symlinks, following fix-soname.patch
@ -156,11 +156,15 @@ jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/js/src/shell/js basic
%{_libdir}/libmozjs-%{major}.so.0*
%files devel
%{_bindir}/js52
%{_libdir}/libmozjs-%{major}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{major}/
%changelog
* Tue Oct 31 2017 Kalev Lember <klember@redhat.com> - 52.4.0-3
- Include standalone /usr/bin/js52 interpreter
* Tue Oct 31 2017 Kalev Lember <klember@redhat.com> - 52.4.0-2
- Various secondary arch fixes