mozjs24-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Summary: JavaScript interpreter and libraries
  2. Summary(ja): JavaScript インタプリタ及びライブラリ
  3. Name: mozjs24
  4. Version: 24.2.0
  5. Release: 2%{?_dist_release}
  6. License: MPLv2.0
  7. Group: Development/Languages
  8. URL: http://www.mozilla.org/js/
  9. Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2
  10. Patch0: js17-build-fixes.patch
  11. Patch1: mozjs24-0001-Add-AArch64-support.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. Buildrequires: nspr-devel >= 4.7
  14. Buildrequires: readline-devel
  15. BuildRequires: python
  16. BuildRequires: zip
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. JavaScript is the Netscape-developed object scripting language used in millions
  22. of web pages and server applications worldwide. Netscape's JavaScript is a
  23. superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
  24. with only mild differences from the published standard.
  25. %package devel
  26. Summary: Header files, libraries and development documentation for %{name}
  27. Summary(ja): %{name} のヘッダファイル、ライブラリ及び開発用ドキュメント
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. Provides: libjs-devel = %{version}-%{release}
  32. %description devel
  33. This package contains the header files, static libraries and development
  34. documentation for %{name}. If you like to develop programs using %{name},
  35. you will need to install %{name}-devel.
  36. %prep
  37. %setup -q -n mozjs-%{version}
  38. # Delete bundled sources
  39. rm js/src/editline -rf
  40. rm js/src/ctypes/libffi -rf
  41. %patch0 -p1
  42. %patch1 -p1
  43. chmod a+x configure
  44. %build
  45. %configure \
  46. --disable-static \
  47. --with-system-nspr \
  48. --enable-threadsafe \
  49. --enable-readline \
  50. --enable-xterm-updates
  51. make %{?_smp_mflags}
  52. %install
  53. %{__rm} -rf %{buildroot}
  54. make install DESTDIR=%{buildroot}
  55. # For some reason the headers and pkg-config file are executable
  56. find %{buildroot}%{_includedir} -type f -exec chmod a-x {} \;
  57. chmod a-x %{buildroot}%{_libdir}/pkgconfig/*.pc
  58. %{__rm} -rf %{buildroot}%{_libdir}/*.a
  59. %{__rm} -rf %{buildroot}%{_libdir}/*.la
  60. %clean
  61. %{__rm} -rf %{buildroot}
  62. %post -p /sbin/ldconfig
  63. %postun -p /sbin/ldconfig
  64. %files
  65. %defattr(-,root,root,-)
  66. %doc LICENSE README
  67. %{_bindir}/js24
  68. %{_libdir}/libmozjs-24.so
  69. %files devel
  70. %defattr(-,root,root,-)
  71. %{_bindir}/js24-config
  72. %{_includedir}/mozjs-24
  73. %{_libdir}/pkgconfig/mozjs-24.pc
  74. %changelog
  75. * Tue Mar 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 24.2.0-2
  76. - rebuilt with readline 6.3
  77. - fixed License
  78. - added Japanese summary
  79. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1
  80. - initial build