112 lines
3.0 KiB
RPMSpec
112 lines
3.0 KiB
RPMSpec
|
%define majver %(echo %version | cut -d. -f1-2)
|
||
|
Name: mozjs185
|
||
|
Version: 1.0.0
|
||
|
Release: 3mamba
|
||
|
Summary: Mozilla stand-alone library implementing JavaScript 1.8.5
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.mozilla.org
|
||
|
Source: http://ftp.mozilla.org/pub/mozilla.org/js/js185-%{version}.tar.gz
|
||
|
# Only GPL because linking to readline
|
||
|
License: GPL
|
||
|
#License: MPL, GPL, LGPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libnspr-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: pkg-config
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Requires(post): %{__install_info}
|
||
|
Requires(preun): %{__install_info}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Mozilla stand-alone library implementing JavaScript 1.8.5.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: Mozilla stand-alone library implementing JavaScript 1.8.5
|
||
|
Provides: libjs
|
||
|
Obsoletes: libjs
|
||
|
Provides: spidermonkey
|
||
|
Obsoletes: spidermonkey
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
Mozilla stand-alone library implementing JavaScript 1.8.5.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Provides: libjs-devel
|
||
|
Obsoletes: libjs-devel
|
||
|
Provides: spidermonkey-devel
|
||
|
Obsoletes: spidermonkey-devel
|
||
|
Requires: pkg-config
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n js-1.8.5
|
||
|
|
||
|
%build
|
||
|
cd js/src
|
||
|
%configure \
|
||
|
--with-system-nspr \
|
||
|
--enable-threadsafe \
|
||
|
--enable-readline \
|
||
|
%ifarch arm
|
||
|
--with-cpu-arch=armv5te
|
||
|
%endif
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
cd js/src
|
||
|
%makeinstall
|
||
|
|
||
|
rm -f %{buildroot}%{_libdir}/libmozjs185.so
|
||
|
ln -s libmozjs185.so.%{majver} %{buildroot}%{_libdir}/libmozjs185.so
|
||
|
rm -f %{buildroot}%{_libdir}/libmozjs185.so.1.0
|
||
|
ln -s libmozjs185.so.%{version} %{buildroot}%{_libdir}/libmozjs185.so.1.0
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libmozjs185.so.*
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/js-config
|
||
|
%dir %{_includedir}/js
|
||
|
%{_includedir}/js/*.h
|
||
|
%{_includedir}/js/*.tbl
|
||
|
%{_includedir}/js/js.msg
|
||
|
%{_libdir}/libmozjs185-1.0.a
|
||
|
%{_libdir}/libmozjs185.so
|
||
|
%{_libdir}/pkgconfig/mozjs185.pc
|
||
|
%doc README
|
||
|
|
||
|
%changelog
|
||
|
* Fri Apr 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-3mamba
|
||
|
- arm: force build for armv5te cpu arch instead of armv7 default (crashes on rpi)
|
||
|
|
||
|
* Sun Sep 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-2mamba
|
||
|
- obsolete spidermonkey
|
||
|
|
||
|
* Sat Sep 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
|
||
|
- package created by autospec
|