mozjs24-vl.spec 2.7 KB

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