Hi, Please have a good summary in message especially for new package, talking about #FEA. We removed this package before together with FF.
Peter > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Martin Xu > Sent: Friday, December 03, 2010 1:09 PM > To: [email protected] > Subject: [meego-commits] 10558: New package Trunk:Testing/xulrunner > > Hi, > Adding new package xulrunner in project Trunk:Testing. Please review and > accept ASAP. > > Justification for this new package: > > "add package xulrunner" > > Thank You, > Martin Xu > > [This message was auto-generated] > > --- > > Request #10558: > > submit: home:martin:branches:Trunk:Testing/xulrunner(r2)(cleanup) -> > Trunk:Testing/xulrunner > > > Message: > "add package xulrunner" > > State: new 2010-12-02T21:08:52 martin > Comment: None > > > This is a NEW package in Trunk:Testing project. > The files in the new package: > xulrunner/ > |__ Makefile > |__ fix-sse-misalignment.patch > |__ mozilla-191-path.patch > |__ mozilla-192-pkgconfig.patch > |__ mozilla-build.patch > |__ mozilla-jemalloc.patch > |__ mozilla-ps-pdf-simplify-operators.patch > |__ skip-building-error.patch > |__ use-system-nss-db.patch > |__ xulrunner-1.9.2.source.tar.bz2 > |__ xulrunner-mozconfig > |__ xulrunner-redhat-default-prefs.js > |__ xulrunner-version.patch > |__ xulrunner.1 > |__ xulrunner.changes > |__ xulrunner.sh.in > |__ xulrunner.spec > > The content of the spec file, xulrunner.spec: > ================================================================ > === > %define nspr_version 4.8 > %define nss_version 3.12.1.1 > %define cairo_version 1.6.0 > %define lcms_version 1.17 > %define freetype_version 2.1.9 > %define sqlite_version 3.6.14 > %define tarballdir mozilla-1.9.2 > > %define version_internal 1.9.2 > %define mozappdir %{_libdir}/%{name}-%{version_internal} > > Summary: XUL Runtime for Gecko Applications > Name: xulrunner > Version: 1.9.2 > Release: 1%{?dist} > URL: http://developer.mozilla.org/En/XULRunner > License: MPLv1.1 or GPLv2+ or LGPLv2+ > Group: Applications/Internet > Source0: %{name}-%{version}.source.tar.bz2 > Source10: %{name}-mozconfig > Source12: %{name}-redhat-default-prefs.js > Source21: %{name}.sh.in > Source23: %{name}.1 > > # build patches > Patch0: xulrunner-version.patch > Patch1: mozilla-build.patch > Patch2: mozilla-191-path.patch > Patch3: mozilla-jemalloc.patch > > # build error, temp patch to skip > Patch4: skip-building-error.patch > > # Fedora specific patches > Patch10: mozilla-192-pkgconfig.patch > Patch11: use-system-nss-db.patch > > # Upstream patches > Patch100: mozilla-ps-pdf-simplify-operators.patch > Patch200: fix-sse-misalignment.patch > > > # --------------------------------------------------- > > BuildRequires: pkgconfig(dbus-glib-1) > BuildRequires: nspr-devel >= %{nspr_version} > BuildRequires: nss-devel >= %{nss_version} > BuildRequires: cairo-devel >= %{cairo_version} > BuildRequires: libpng-devel > BuildRequires: libjpeg-devel > BuildRequires: zip > BuildRequires: bzip2-devel > BuildRequires: zlib-devel > BuildRequires: lcms-devel >= %{lcms_version} > BuildRequires: libIDL-devel > BuildRequires: gtk2-devel > BuildRequires: krb5-devel > BuildRequires: pango-devel > BuildRequires: freetype-devel >= %{freetype_version} > BuildRequires: libXt-devel > BuildRequires: libXrender-devel > BuildRequires: hunspell-devel > BuildRequires: sqlite-devel >= %{sqlite_version} > BuildRequires: startup-notification-devel > BuildRequires: alsa-lib-devel > BuildRequires: python > BuildRequires: python-devel >= 2.6 > BuildRequires: libnotify-devel > > Requires: mozilla-filesystem > Requires: nspr >= %{nspr_version} > Requires: nss >= %{nss_version} > Requires: sqlite >= %{sqlite_version} > Provides: gecko-libs = %{version} > > %description > XULRunner provides the XUL Runtime environment for Gecko applications. > > %package devel > Summary: Development files for Gecko > Group: Development/Libraries > Obsoletes: mozilla-devel < 1.9 > Obsoletes: firefox-devel < 2.1 > Provides: gecko-devel = %{version} > > Requires: xulrunner = %{version}-%{release} > Requires: nspr-devel >= %{nspr_version} > Requires: nss-devel >= %{nss_version} > Requires: cairo-devel >= %{cairo_version} > Requires: libjpeg-devel > Requires: zip > Requires: bzip2-devel > Requires: zlib-devel > Requires: lcms-devel >= %{lcms_version} > Requires: libIDL-devel > Requires: gtk2-devel > #Requires: gnome-vfs2-devel > #Requires: libgnome-devel > #Requires: libgnomeui-devel > Requires: krb5-devel > Requires: pango-devel > Requires: freetype-devel >= %{freetype_version} > Requires: libXt-devel > Requires: libXrender-devel > Requires: hunspell-devel > Requires: sqlite-devel > Requires: startup-notification-devel > Requires: alsa-lib-devel > > > %description devel > Gecko development files. > > #--------------------------------------------------------------------- > > %prep > %setup -q -c > cd %{tarballdir} > > sed -e 's/__RPM_VERSION_INTERNAL__/%{version_internal}/' %{P:%%PATCH0} > \ > > version.patch > %{__patch} -p1 -b --suffix .version --fuzz=0 < version.patch > > %patch1 -p1 -b .build > %patch2 -p1 -b .path > %patch3 -p1 -b .jemalloc > %patch4 -p1 -b .building-error > > %patch10 -p1 -b .pk > %patch11 -p1 -b .sysnss > > %patch100 -p1 -b .ps-pdf-simplify-operators > %patch200 -p1 -b .fix-sse-misalignment > > > %{__rm} -f .mozconfig > %{__cp} %{SOURCE10} .mozconfig > > #--------------------------------------------------------------------- > > %build > cd %{tarballdir} > > INTERNAL_GECKO=%{version_internal} > MOZ_APP_DIR=%{_libdir}/%{name}-${INTERNAL_GECKO} > > # Mozilla builds with -Wall with exception of a few warnings which show up > # everywhere in the code; so, don't override that. > MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-Wall//') > export CFLAGS=$MOZ_OPT_FLAGS > export CXXFLAGS=$MOZ_OPT_FLAGS > > export PREFIX='%{_prefix}' > export LIBDIR='%{_libdir}' > > MOZ_SMP_FLAGS=-j1 > %ifnarch ppc ppc64 s390 s390x > [ -z "$RPM_BUILD_NCPUS" ] && \ > RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`" > [ "$RPM_BUILD_NCPUS" -gt 1 ] && MOZ_SMP_FLAGS=-j2 > %endif > > export LDFLAGS="-Wl,-rpath,${MOZ_APP_DIR}" > make -f client.mk build STRIP="/bin/true" > MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS" > > #--------------------------------------------------------------------- > > %install > cd %{tarballdir} > %{__rm} -rf $RPM_BUILD_ROOT > > INTERNAL_GECKO=%{version_internal} > > INTERNAL_APP_NAME=%{name}-${INTERNAL_GECKO} > MOZ_APP_DIR=%{_libdir}/${INTERNAL_APP_NAME} > > INTERNAL_APP_SDK_NAME=%{name}-sdk-${INTERNAL_GECKO} > MOZ_APP_SDK_DIR=%{_libdir}/${INTERNAL_APP_SDK_NAME} > > DESTDIR=$RPM_BUILD_ROOT make install > > %{__mkdir_p} $RPM_BUILD_ROOT/${MOZ_APP_DIR} \ > > $RPM_BUILD_ROOT%{_datadir}/idl/${INTERNAL_APP_SDK_NAME} \ > > $RPM_BUILD_ROOT%{_includedir}/${INTERNAL_APP_SDK_NAME} > %{__install} -p dist/sdk/bin/regxpcom $RPM_BUILD_ROOT/$MOZ_APP_DIR > > %{__mkdir_p} > $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications} > > # set up our default preferences > %{__cat} %{SOURCE12} | %{__sed} -e 's,RPM_VERREL,%{version}-%{release},g' > > rh-default-prefs > %{__install} -p -D -m 644 rh-default-prefs > $RPM_BUILD_ROOT/${MOZ_APP_DIR}/defaults/pref/all-redhat.js > %{__rm} rh-default-prefs > > # Start script install > %{__rm} -rf $RPM_BUILD_ROOT%{_bindir}/%{name} > %{__cat} %{SOURCE21} | %{__sed} -e > 's,XULRUNNER_VERSION,%{version_internal},g' > \ > $RPM_BUILD_ROOT%{_bindir}/%{name} > %{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/%{name} > > %{__rm} -f $RPM_BUILD_ROOT${MOZ_APP_DIR}/%{name}-config > > cd $RPM_BUILD_ROOT${MOZ_APP_DIR}/chrome > find . -name "*" -type d -maxdepth 1 -exec %{__rm} -rf {} \; > cd - > > # Prepare our devel package > %{__mkdir_p} > $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME} > %{__mkdir_p} > $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME}/stable > %{__mkdir_p} > $RPM_BUILD_ROOT/%{_datadir}/idl/${INTERNAL_APP_SDK_NAME} > %{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig > > %{__cp} -rL dist/include/* \ > $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME} > > # Copy mozilla-config to stable include dir > %{__cp} dist/include/mozilla-config.h \ > $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME}/stable > > # Fix multilib devel conflicts... > %ifarch x86_64 ia64 s390x ppc64 > %define mozbits 64 > %else > %define mozbits 32 > %endif > > function install_file() { > genheader=$* > mv ${genheader}.h ${genheader}%{mozbits}.h > cat > ${genheader}.h << EOF > // This file exists to fix multilib conflicts > #if defined(__x86_64__) || defined(__ia64__) || defined(__s390x__) || > defined(__powerpc64__) > #include "${genheader}64.h" > #else > #include "${genheader}32.h" > #endif > EOF > } > > pushd $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME} > install_file "mozilla-config" > popd > > pushd > $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_SDK_NAME}/stable > install_file "mozilla-config" > popd > > > %{__install} -p -c -m 755 dist/bin/xpcshell \ > dist/bin/xpidl \ > dist/bin/xpt_dump \ > dist/bin/xpt_link \ > $RPM_BUILD_ROOT/${MOZ_APP_DIR} > > %{__rm} -rf $RPM_BUILD_ROOT/%{_includedir}/${INTERNAL_APP_NAME} > %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/idl/${INTERNAL_APP_NAME} > > > %{__rm} -rf $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/include > ln -s %{_includedir}/${INTERNAL_APP_SDK_NAME}/stable \ > $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/include > %{__rm} -rf $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/idl > ln -s %{_datadir}/idl/${INTERNAL_APP_SDK_NAME}/stable \ > $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/idl > > find $RPM_BUILD_ROOT/%{_includedir} -type f -name "*.h" | xargs chmod 644 > find $RPM_BUILD_ROOT/%{_datadir}/idl -type f -name "*.idl" | xargs chmod > 644 > > %{__rm} -rf $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/lib/*.so > pushd $RPM_BUILD_ROOT${MOZ_APP_DIR} > for i in *.so; do > ln -s ${MOZ_APP_DIR}/$i > $RPM_BUILD_ROOT${MOZ_APP_SDK_DIR}/sdk/lib/$i > done > popd > > # GRE stuff > %ifarch x86_64 ia64 ppc64 s390x > %define gre_conf_file gre64.conf > %else > %define gre_conf_file gre.conf > %endif > > MOZILLA_GECKO_VERSION=`./config/milestone.pl --topsrcdir=.` > %{__mv} > $RPM_BUILD_ROOT/etc/gre.d/$MOZILLA_GECKO_VERSION".system.conf" \ > $RPM_BUILD_ROOT/etc/gre.d/%{gre_conf_file} > chmod 644 $RPM_BUILD_ROOT/etc/gre.d/%{gre_conf_file} > > # Library path > %ifarch x86_64 ia64 ppc64 s390x > %define ld_conf_file xulrunner-64.conf > %else > %define ld_conf_file xulrunner-32.conf > %endif > > %{__mkdir_p} $RPM_BUILD_ROOT/etc/ld.so.conf.d > %{__cat} > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{ld_conf_file} << EOF > ${MOZ_APP_DIR} > EOF > > # Copy over the LICENSE > %{__install} -p -c -m 644 LICENSE $RPM_BUILD_ROOT${MOZ_APP_DIR} > > # Use the system hunspell dictionaries > %{__rm} -rf ${RPM_BUILD_ROOT}${MOZ_APP_DIR}/dictionaries > ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}${MOZ_APP_DIR}/dictionaries > > # ghost files > %{__mkdir_p} $RPM_BUILD_ROOT${MOZ_APP_DIR}/components > touch $RPM_BUILD_ROOT${MOZ_APP_DIR}/components/compreg.dat > touch $RPM_BUILD_ROOT${MOZ_APP_DIR}/components/xpti.dat > > #--------------------------------------------------------------------- > > %clean > %{__rm} -rf $RPM_BUILD_ROOT > > #--------------------------------------------------------------------- > > %post > /sbin/ldconfig > > %postun > /sbin/ldconfig > > %preun > # is it a final removal? > if [ $1 -eq 0 ]; then > %{__rm} -rf ${MOZ_APP_DIR}/components > fi > > %files > %defattr(-,root,root,-) > %{_bindir}/xulrunner > %dir /etc/gre.d > /etc/gre.d/%{gre_conf_file} > %dir %{mozappdir} > %doc %attr(644, root, root) %{mozappdir}/LICENSE > %doc %attr(644, root, root) %{mozappdir}/README.txt > %{mozappdir}/chrome > %{mozappdir}/dictionaries > %dir %{mozappdir}/components > %ghost %{mozappdir}/components/compreg.dat > %ghost %{mozappdir}/components/xpti.dat > %{mozappdir}/components/*.so > %{mozappdir}/components/*.xpt > %{mozappdir}/components/*.list > %attr(644, root, root) %{mozappdir}/components/*.js > %{mozappdir}/defaults > %{mozappdir}/greprefs > %dir %{mozappdir}/icons > %attr(644, root, root) %{mozappdir}/icons/* > %{mozappdir}/modules > %{mozappdir}/plugins > %{mozappdir}/res > %{mozappdir}/*.so > %{mozappdir}/mozilla-xremote-client > %{mozappdir}/run-mozilla.sh > %{mozappdir}/regxpcom > %{mozappdir}/xulrunner > %{mozappdir}/xulrunner-bin > %{mozappdir}/xulrunner-stub > %{mozappdir}/platform.ini > %{mozappdir}/dependentlibs.list > %{_sysconfdir}/ld.so.conf.d/xulrunner*.conf > > # XXX See if these are needed still > %{mozappdir}/updater* > > %exclude %{mozappdir}/update.locale > > %files devel > %defattr(-,root,root,-) > %dir %{_datadir}/idl/%{name}*%{version_internal} > %{_datadir}/idl/%{name}*%{version_internal}/ > %{_includedir}/%{name}*%{version_internal} > #%exclude %{_includedir}/%{name}*%{version_internal}/unstable > #%exclude %{_includedir}/%{name}*%{version_internal}/pyxpcom > %{mozappdir}/xpcshell > %{mozappdir}/xpidl > %{mozappdir}/xpt_dump > %{mozappdir}/xpt_link > %dir %{_libdir}/%{name}-sdk-* > %{_libdir}/%{name}-sdk-*/* > %exclude %{_libdir}/pkgconfig/*gtkmozembed*.pc > %{_libdir}/pkgconfig/*.pc > > > ================================================================ > === > > _______________________________________________ > MeeGo-commits mailing list > [email protected] > http://lists.meego.com/listinfo/meego-commits _______________________________________________ MeeGo-packaging mailing list [email protected] http://lists.meego.com/listinfo/meego-packaging
