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

Revision 10460, 2.7 KB checked in by Takemikaduchi, 8 years ago (diff)

firefox: new upstrream release
others: rebuild with gcc-5.4.0

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