source: projects/specs/trunk/m/mozjs24/mozjs24-vl.spec @ 9469

Revision 9469, 2.6 KB checked in by inagaki, 9 years ago (diff)

2015-03-24 Ryoichi INAGAKI <ryo1@…>

  • libedit: added compat32
  • mozjs24: rebuilt


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