[Tizen-submit] 20305: New package Tizen:IVI:Genivi/nspr

noreply at tizen.org noreply at tizen.org
Fri Jan 31 03:10:18 GMT 2014


Hi,
Adding new package nspr in project Tizen:IVI:Genivi. Please review and accept ASAP.

Justification for this new package:

Submitter: Graydon, Tracy <tracy.graydon at intel.com>
Comments: submit/tizen_ivi_genivi/20140131.030453
Git project: platform/upstream/nspr
Tag: submit/tizen_ivi_genivi/20140131.030453
Commit: 518c7d103df241c2f9ef899f1a506f2d53d9049e Fix spec file to use new directory structure Fix group designation for rpmlint error

Thank You,
Graydon, Tracy

[This message was auto-generated]

---

Request: #20305

  submit:       Tizen:IVI:Genivi:build/nspr(cleanup) -> Tizen:IVI:Genivi


Message:
Submitter: Graydon, Tracy <tracy.graydon at intel.com>
Comments: submit/tizen_ivi_genivi/20140131.030453
Git project: platform/upstream/nspr
Tag: submit/tizen_ivi_genivi/20140131.030453
Commit: 518c7d103df241c2f9ef899f1a506f2d53d9049e Fix spec file to use new directory structure Fix group designation for rpmlint error

State:   new        2014-01-31T03:12:15 tizenrobot
Comment: <no comment>
changes files:
--------------

++++++ new changes file:
--- nspr.changes
+++ nspr.changes

new:
----
  baselibs.conf
  nspr-4.10.tar.bz2
  nspr.changes
  nspr.manifest
  nspr.spec

spec files:
-----------

++++++ new spec file:
--- nspr.spec
+++ nspr.spec
@@ -0,0 +1,96 @@
+Name:           nspr
+VCS:            platform/upstream/nspr#518c7d103df241c2f9ef899f1a506f2d53d9049e
+Version:        4.10
+Release:        0
+License:        MPL-2.0
+Summary:        Netscape Portable Runtime
+Url:            http://www.mozilla.org/projects/nspr/
+Group:          Base/Libraries
+Source:         ftp://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/nspr-%{version}.tar.bz2
+Source1:        baselibs.conf
+Source1001: 	nspr.manifest
+BuildRequires:  gcc-c++
+BuildRequires:  pkg-config
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+NSPR provides platform independence for non-GUI operating system
+facilities. These facilities include threads, thread synchronization,
+normal file and network I/O, interval timing and calendar time, basic
+memory management (malloc and free), and shared library linking.
+
+%package devel
+Summary:        Netscape Portable Runtime development files
+Group:          Base/Development
+Requires:       nspr = %{version}
+
+%description devel
+NSPR provides platform independence for non-GUI operating system
+facilities. These facilities include threads, thread synchronization,
+normal file and network I/O, interval timing and calendar time, basic
+memory management (malloc and free), and shared library linking.
+
+%prep
+%setup -n nspr-%{version} -q
+cp %{SOURCE1001} .
+
+%build
+# set buildtime to "last-modification-time"
+modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
+BUILD_STRING="$(date -u -d "${modified}" "+%%F %%T")"
+BUILD_TIME="$(date -u -d "${modified}" "+%%s000000")"
+#
+cd nspr
+export CFLAGS="%{optflags}"
+./configure --enable-optimize="$CFLAGS" \
+            --disable-debug \
+%ifarch x86_64
+	    --enable-64bit \
+%endif
+	    --libdir=%{_libdir} \
+	    --includedir=%{_includedir}/nspr4 \
+	    --prefix=%{_prefix}
+make SH_DATE="$BUILD_STRING" SH_NOW="$BUILD_TIME" %{?_smp_mflags}
+%check
+# Run test suite
+perl ./pr/tests/runtests.pl 2>&1 | tee output.log
+TEST_FAILURES=`grep -c FAILED ./output.log` || :
+if [ $TEST_FAILURES -ne 0 ]; then
+  echo "error: test suite returned failure(s)"
+  exit 1
+fi
+echo "test suite completed"
+
+

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list