source: projects/specs/trunk/m/mozjs17/mozjs17-vl.spec @ 9686

Revision 9686, 2.5 KB checked in by Takemikaduchi, 9 years ago (diff)

gnome-phone-manager: update
others: rebuild

Line 
1Summary:        The Mozilla library for JavaScript
2Name:           mozjs17
3Version:        17.0.0
4Release:        3%{?_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}
8License:        GPLv2+ or LGPLv2+ or MPLv1.1
9%else
10License:        GPLv2+
11%endif
12Group:          Development/Languages
13URL:            http://www.mozilla.org/js/
14Source0:        http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz   
15
16Patch0:         mozjs17-17.0.0-Makefile.patch
17
18BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
19
20Buildrequires:  nspr-devel >= 4.7
21Buildrequires:  readline-devel
22BuildRequires:  autoconf213
23BuildRequires:  python
24BuildRequires:  zip
25
26Vendor: Project Vine
27Distribution: Vine Linux
28Packager: Takemikaduchi
29
30%description
31JavaScript is the Netscape-developed object scripting language used in millions
32of web pages and server applications worldwide. Netscape's JavaScript is a
33superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
34with only mild differences from the published standard.
35
36
37%package devel
38Summary: Header files, libraries and development documentation for %{name}
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: pkgconfig
42Requires: ncurses-devel readline-devel
43Provides: libjs-devel = %{version}-%{release}
44
45%description devel
46This package contains the header files, static libraries and development
47documentation for %{name}. If you like to develop programs using %{name},
48you will need to install %{name}-devel.
49
50
51%prep
52%setup -q -n mozjs%{version}
53%patch0 -p1
54cd js
55
56# Rm parts with spurios licenses, binaries
57rm -rf src/ctypes/libffi src/editline
58
59pushd src
60autoconf-2.13
61%configure \
62    --with-system-nspr \
63    --enable-threadsafe \
64%if 0%{!?_without_readline:1}
65        --enable-readline \
66%endif
67
68popd
69
70
71%build
72cd js
73%{__make} %{?_smp_mflags} -C src
74
75%install
76cd js
77%{__make} -C src install DESTDIR=%{buildroot}
78
79%{__rm} -rf %{buildroot}%{_libdir}/*.a
80%{__rm} -rf %{buildroot}%{_libdir}/*.la
81
82
83%clean
84%{__rm} -rf %{buildroot}
85
86
87%post -p /sbin/ldconfig
88
89%postun -p /sbin/ldconfig
90
91
92%files
93%defattr(-,root,root,-)
94%doc js/src/README.html
95%{_bindir}/js17
96%{_libdir}/libmozjs-17.0.so
97
98%files devel
99%defattr(-,root,root,-)
100%{_bindir}/js17-config
101%{_includedir}/js-17.0
102%{_libdir}/pkgconfig/mozjs-17.0.pc
103
104%changelog
105* Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-3
106- rebuild with readline-6.3
107
108* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-2
109- rebuild with VineSeed environment
110
111* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-1
112- initial build
113
Note: See TracBrowser for help on using the repository browser.