Package libmozjs: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | Summary: Mozilla SpiderMonkey (JavaScript-C) Engine Name: libmozjs Version: 1.8.5 Release: alt1.M60P.1 License: MPL/GPL/LGPL URL: http://www.mozilla.org/js/spidermonkey/ Group: System/Libraries Packager: Alexey Gladkov <legion@altlinux.ru> Source0: %name-%version.tar BuildRequires: gcc-c++ libnspr-devel libreadline-devel zip unzip BuildRequires: libffi-devel libffi-devel-static BuildRequires: autoconf_2.13 %set_autoconf_version 2.13 %description SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript. %package devel Summary: Development libraries for SpiderMonkey Group: Development/C Requires: %name = %version-%release %description devel Header and Library files for doing development with the SpiderMonkey %package devel-static Summary: SpiderMonkey static libraries Group: Development/C Requires: %name-devel = %version-%release %description devel-static SpiderMonkey development kit (static libs) %package tools Summary: Tools for the SpiderMonkey Group: Development/Other %description tools SpiderMonkey is the code-name for the Mozilla's C implementation of JavaScript. %prep %setup -q -n %name-%version %build cd js/src sed -i -e 's/^MOZILLA_VERSION = @MOZILLA_VERSION@/MOZILLA_VERSION = %version/' config/autoconf.mk.in %add_optflags %optflags_shared XCFLAGS="$XCFLAGS %optflags" XCFLAGS="$XCFLAGS $(nspr-config --cflags)" XCFLAGS="$XCFLAGS -DJS_C_STRINGS_ARE_UTF8" XCFLAGS="$XCFLAGS -DJS_HAS_XML_SUPPORT" export XCFLAGS %__autoconf %configure \ --with-pthreads \ --with-system-nspr \ --enable-threadsafe \ --enable-readline \ --enable-jemalloc \ # %make_build %install cd js/src %make_install install DESTDIR=%buildroot cp -f *.tbl %buildroot/%_includedir/js/ (set +x find -P "%buildroot" -type l -printf '%%p\t%%l\n' | while read link target; do [ -z "${target%%%%/*}" ] || continue t="$(relative "$target" "$link")" ln -vnsf -- "$t" "$link" done ) cd %buildroot/%_pkgconfigdir ln -s mozjs185.pc mozjs.pc %files %_libdir/*.so.* %files tools %_bindir/* %files devel %_includedir/js %_pkgconfigdir/*.pc %_libdir/*.so %files devel-static %_libdir/*.a %changelog * Mon Dec 17 2012 Andrey Cherepanov <cas@altlinux.org> 1.8.5-alt1.M60P.1 - Backport to p6 branch new version (for Firefox 17.0) * Wed Sep 07 2011 Alexey Gladkov <legion@altlinux.ru> 1.8.5-alt2 - Drop compatibility with libjs. * Sun Sep 04 2011 Alexey Gladkov <legion@altlinux.ru> 1.8.5-alt1 - New version (1.8.5). - Add utf-8 support. - Obsolete libjs. * Wed Jul 25 2007 Alexey Gladkov <legion@altlinux.ru> 1.8-alt1.20070725 - New cvs snapshot. - Fix permissions. - Add missing header: jsutil.h. * Thu Jun 28 2007 Alexey Gladkov <legion@altlinux.ru> 1.8-alt1.20070628 - First build for ALT Linux. |