mozjs24-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Summary: The Mozilla library for JavaScript
  2. Name: mozjs24
  3. Version: 24.2.0
  4. Release: 1%{?_dist_release}
  5. # The sources are triple licensed, but when we link against readline which is
  6. # GPL, the result can only be GPL.
  7. %if 0%{?_without_readline:1}
  8. License: GPLv2+ or LGPLv2+ or MPLv1.1
  9. %else
  10. License: GPLv2+
  11. %endif
  12. Group: Development/Languages
  13. URL: http://www.mozilla.org/js/
  14. Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. Buildrequires: nspr-devel >= 4.7
  17. Buildrequires: readline-devel
  18. BuildRequires: autoconf213
  19. BuildRequires: python
  20. BuildRequires: zip
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: Takemikaduchi
  24. %description
  25. JavaScript is the Netscape-developed object scripting language used in millions
  26. of web pages and server applications worldwide. Netscape's JavaScript is a
  27. superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
  28. with only mild differences from the published standard.
  29. %package devel
  30. Summary: Header files, libraries and development documentation for %{name}
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. Requires: ncurses-devel readline-devel
  35. Provides: libjs-devel = %{version}-%{release}
  36. %description devel
  37. This package contains the header files, static libraries and development
  38. documentation for %{name}. If you like to develop programs using %{name},
  39. you will need to install %{name}-devel.
  40. %prep
  41. %setup -q -n mozjs-%{version}
  42. cd js
  43. # Rm parts with spurios licenses, binaries
  44. rm -rf src/ctypes/libffi src/editline
  45. pushd src
  46. autoconf-2.13
  47. %configure \
  48. --with-system-nspr \
  49. --enable-threadsafe \
  50. %if 0%{!?_without_readline:1}
  51. --enable-readline \
  52. %endif
  53. popd
  54. %build
  55. cd js
  56. %{__make} %{?_smp_mflags} -C src
  57. %install
  58. cd js
  59. %{__make} -C src install DESTDIR=%{buildroot}
  60. %{__rm} -rf %{buildroot}%{_libdir}/*.a
  61. %{__rm} -rf %{buildroot}%{_libdir}/*.la
  62. %clean
  63. %{__rm} -rf %{buildroot}
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc js/src/README.html
  69. %{_bindir}/js24
  70. %{_libdir}/libmozjs-24.so
  71. %files devel
  72. %defattr(-,root,root,-)
  73. %{_bindir}/js24-config
  74. %{_includedir}/mozjs-24
  75. %{_libdir}/pkgconfig/mozjs-24.pc
  76. %changelog
  77. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.2.0-1
  78. - initial build