Hello community,

here is the log from the commit of package js for openSUSE:Factory
checked in at Mon Jun 6 15:11:50 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/js/js.changes  2011-04-19 16:51:20.000000000 
+0200
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Tue Apr 19 11:56:43 UTC 2011 - [email protected]
+
+- initial openSUSE package
+

calling whatdependson for head-i586


New:
----
  baselibs.conf
  js.changes
  js.spec
  js185-1.0.0.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ js.spec ++++++
#
# spec file for package js
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           js
Summary:        JavaScript interpreter
Version:        1.8.5
Release:        1
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          Development/Languages/Other
Url:            http://www.mozilla.org/js/
Source0:        http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf213 gcc-c++ mozilla-nspr-devel pkg-config python zip

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n libmozjs185-1_0
Summary:        JavaScript library
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          System/Libraries

%description -n libmozjs185-1_0
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.


%package devel
Summary:        Header files, libraries and development documentation for 
%{name}
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          Development/Libraries/Other
Requires:       libmozjs185-1_0 = %{version}-%{release}
Requires:       pkg-config
Provides:       libjs-devel = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n %{name}-%{version}
cd js
# Create pkgconfig file
%{__cat} > libjs.pc << 'EOF'
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: libjs
Description: JS library
Requires: nspr
Version: %{version}
Libs: -L${libdir} -ljs
Cflags: -DXP_UNIX=1 -DJS_THREADSAFE=1 -I${includedir}
EOF

%build
export SUSE_ASNEEDED=0
cd js
pushd src
%configure --with-system-nspr
popd
export BUILD_OPT=1
%{__make} %{?_smp_mflags} -C src \
        JS_THREADSAFE="1" \
        XCFLAGS="%{optflags} -fPIC " \
        BUILD_OPT="1" \

%install
cd js
%{__mkdir_p} %{buildroot}%{_bindir} \
             %{buildroot}%{_libdir}/pkgconfig \
             %{buildroot}%{_includedir}
%{__install} -m 0755 src/jscpucfg src/shell/js \
        %{buildroot}%{_bindir}/
%{__install} -m 0755 src/libmozjs185.so \
        %{buildroot}%{_libdir}/
%{__mv} %{buildroot}%{_libdir}/libmozjs185.so 
%{buildroot}%{_libdir}/libmozjs185.so.1.0
ln -s libmozjs185.so.1.0 %{buildroot}%{_libdir}/libmozjs185.so
%{__install} -m 0644 src/js*.h src/js.msg src/*.tbl \
        %{buildroot}%{_includedir}/
%{__install} -m 0644 libjs.pc \
        %{buildroot}%{_libdir}/pkgconfig/

%clean
%{__rm} -rf %{buildroot}

%post -n libmozjs185-1_0 -p /sbin/ldconfig

%postun -n libmozjs185-1_0 -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc js/src/README.html
%{_bindir}/js

%files -n libmozjs185-1_0
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%{_bindir}/jscpucfg
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_includedir}/js*.h
%{_includedir}/*.tbl
%{_includedir}/js.msg

%changelog
++++++ baselibs.conf ++++++
libmozjs185-1_0

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to