Browse Source

firefox:
- update to 5.0
- do not build with external xulrunner
- remove BR: gecko-devel, R: gecko-libs
- add BR: alsa-lib-devel, lcms-devel, libvpx-devel, libpng-devel,
sqlite3-devel, zip



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4289 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 12 years ago
parent
commit
319026c06d

+ 47 - 25
f/firefox/firefox-vl.spec

@@ -1,11 +1,11 @@
 ## do not include minor version number in MOZILLA_FIVE_HOME
-%global ffmajor 4.0
-%global geckomajor 2.0
-%global ffminor 1
-%global ffversion %{ffmajor}.%{ffminor}
+%global ffmajor 5.0
+%global geckomajor 5.0
+#global ffminor 1
+%global ffversion %{ffmajor}
 %define ffdir %{_libdir}/firefox-%{ffmajor}
 %global langpackdir %{ffdir}/langpacks
-%define tarballdir mozilla-2.0
+%define tarballdir mozilla-release
 
 %define firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
 %define homepage http://vinelinux.org/
@@ -29,8 +29,8 @@
 %define nss_version 3.12.9
 %define cairo_version 1.10.2-2
 %define libjpeg-turbo_version 1.1.0
-%define gecko_version %{geckomajor}.%{ffminor}
-#define gecko_version %{geckomajor}
+#define gecko_version %{geckomajor}.%{ffminor}
+%define gecko_version %{geckomajor}
 
 ExclusiveArch: i386 i586 i686 x86_64 ia64 ppc s390 s390x
 
@@ -41,8 +41,8 @@ ExclusiveArch: i386 i586 i686 x86_64 ia64 ppc s390 s390x
 %define separated_plugins 0
 %endif
 
-Summary:        Fx4 for Vine Linux
-Summary(ja):	Fx4 for Vine Linux
+Summary:        Fx Browser
+Summary(ja):	Fx ウェブブラウザ
 Name:           firefox
 Version:        %{ffversion}
 Release:        %{ffrelease}
@@ -51,8 +51,8 @@ License:        MPL/LGPL
 Group:          Applications/Internet
 Source0:        firefox-%{version}.source.tar.bz2
 
-Source220:       mozconfig-firefox4-vine5
-Source230:       mozconfig-firefox4-vine6
+Source220:       mozconfig-firefox5-vine5
+Source230:       mozconfig-firefox5-vine6
 
 Source11:       firefox-vine-default-bookmarks.html
 Source12:       firefox-vine-default-prefs.js
@@ -69,7 +69,7 @@ Source100:      find-external-requires
 # locale sources
 %define MOZ_BUILD_LOCALES "ja"
 Source1000:     firefox-%{ffversion}-langpacks.tar.bz2
-Source1010:     firefox-unofficial-branding-fx4.tar.bz2
+Source1010:     firefox-unofficial-branding-fx.tar.bz2
 #
 Source2000:     firefox-searchplugins-4.0-ja.tar.bz2
 
@@ -78,15 +78,18 @@ Source2000:     firefox-searchplugins-4.0-ja.tar.bz2
 # build patches
 Patch0:		firefox-version.patch
 
+# bugfix
+Patch14:	firefox-5.0-asciidel.patch
+
 # customization patches
 Patch26:	firefox-1.5-default-a4-paper.patch
 
 ## Vine patch
 # http://bugzilla.mozilla.org/show_bug.cgi?id=179248
-Patch1000:      firefox-3.6.2-sjisalias.patch
+#Patch1000:      firefox-3.6.2-sjisalias.patch
 
 # vine customization patch
-Patch2000:      firefox-4.0-vine.patch
+Patch2000:      firefox-5.0-vine.patch
 
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -98,15 +101,20 @@ BuildRequires:  gtk2-devel
 BuildRequires:	gnome-vfs2-devel
 BuildRequires:	libgnome-devel
 BuildRequires:  pango-devel
+BuildRequires:	alsa-lib-devel
+BuildRequires:  lcms-devel
+BuildRequires:  libvpx-devel
+BuildRequires:  libpng-devel
 %if %{build_vine6}
 BuildRequires:  libnotify-devel
 BuildRequires:  cairo-devel >= %{cairo_version}
 BuildRequires:  libjpeg-turbo-devel >= %{libjpeg-turbo_version}
+BuildRequires:  sqlite3-devel >= %{sqlite_version}
 %endif
 %if %{build_vine5}
 BuildRequires:  nspr-devel >= %{nspr_version}
 BuildRequires:  nss-devel >= %{nss_version}
-BuildRequires:  gecko-devel = %{gecko_version}
+#BuildRequires:  gecko-devel = %{gecko_version}
 BuildRequires:	libXt-devel
 BuildRequires:	libXrender-devel
 BuildRequires:  startup-notification-devel
@@ -115,12 +123,13 @@ BuildRequires:  autoconf213
 BuildRequires:  freetype2-devel
 BuildRequires:  yasm
 BuildRequires:  unzip
+BuildRequires:  zip
 
 Requires:       desktop-file-utils >= %{desktop_file_utils_version}
 %if %{build_vine5}
 Requires:	nspr >= %{nspr_version}
 Requires:	nss >= %{nss_version}
-Requires:       gecko-libs >= %{gecko_version}
+#Requires:       gecko-libs >= %{gecko_version}
 %endif
 
 Obsoletes:      phoenix, mozilla-firebird, MozillaFirebird
@@ -132,9 +141,13 @@ Provides:       webclient
 %define __find_requires %{SOURCE100}
 
 %description
-Fx3.6 is an open-source web browser based on mozilla technology.
+Fx Browser is an open-source web browser based on mozilla technology.
 This is unofficial build of firefox browser.
 
+%description -l ja
+FX ウェブブラウザは Mozilla テクノロジーをベースとしたオープンソースの
+ウェブブラウザです。
+
 #---------------------------------------------------------------------
 
 %prep
@@ -145,11 +158,13 @@ sed -e 's/__RPM_VERSION_INTERNAL__/%{ffmajor}/' \
     %{P:%%PATCH0} > version.patch
 %{__patch} -p1 -b --suffix .version < version.patch
     
+%patch14 -p1 -b .asciidel
+
 %patch26 -p1
 
 #
-%patch1000 -p0
-%patch2000 -p1
+#%patch1000 -p0
+%patch2000 -p1 -b .vine
 
 %{__rm} -f .mozconfig
 
@@ -158,7 +173,7 @@ sed -e 's/__RPM_VERSION_INTERNAL__/%{ffmajor}/' \
 %{__cp} -f %{SOURCE220} .mozconfig
 %endif
 
-echo "ac_add_options --with-libxul-sdk=`pkg-config --variable=sdkdir libxul`" >> .mozconfig
+#echo "ac_add_options --with-libxul-sdk=`pkg-config --variable=sdkdir libxul`" >> .mozconfig
 
 %if !%{?separated_plugins}
 echo "ac_add_options --disable-ipc" >> .mozconfig
@@ -187,7 +202,7 @@ export CXXFLAGS=$MOZ_OPT_FLAGS
 
 export MOZILLA_OFFICIAL=1
 export BUILD_OFFICIAL=1
-export MOZ_APP_DISPLAYNAME="Fx for Vine Linux"
+export MOZ_APP_DISPLAYNAME="Fx Browser"
 
 export PREFIX='%{_prefix}'
 export LIBDIR='%{_libdir}'
@@ -215,7 +230,7 @@ cd %{tarballdir}
 
 # set up our prefs and add it to the package manifest file, so it gets pulled in
 # to omni.jar which gets created during make install
-%{__cat} %{SOURCE12} | sed -e 's,FIREFOX_RPM_VR,%{version}-%{release},g' > dist/bin/defaults/preferences/all-vine.js
+%{__cat} %{SOURCE12} | sed -e 's,FIREFOX_RPM_VR,%{version}-%{release},g' > dist/bin/defaults/pref/all-vine.js
 # This sed call "replaces" firefox.js with all-vine.js, newline, and itself (&)
 # having the net effect of prepending all-vine.js above firefox.js
 %{__sed} -i -e\
@@ -227,11 +242,11 @@ cd %{tarballdir}
 %{__install} -p -D -m 664 %{SOURCE11} $RPM_BUILD_ROOT%{ffdir}/defaults/profile/bookmarks.html
 
 # Make sure locale works for langpacks
-%{__cat} > dist/bin/defaults/preferences/firefox-l10n.js << EOF
+%{__cat} > dist/bin/defaults/pref/firefox-l10n.js << EOF
 pref("general.useragent.locale", "chrome://global/locale/intl.properties");
 EOF
 
-export MOZ_APP_DISPLAYNAME="Fx for Vine Linux"
+export MOZ_APP_DISPLAYNAME="Fx Browser"
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 %{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
@@ -270,7 +285,7 @@ XULRUNNER_DIR=`pkg-config --variable=libdir libxul | %{__sed} -e "s,%{_libdir},,
   $RPM_BUILD_ROOT%{ffdir}/firefox-xremote-client
 
 # Remove binary stub from xulrunner
-%{__rm} -rf $RPM_BUILD_ROOT/%{ffdir}/firefox
+#%{__rm} -rf $RPM_BUILD_ROOT/%{ffdir}/firefox
 
 #%{__chmod} 755 $RPM_BUILD_ROOT%{ffdir}/firefox-xremote-client
 %{__install} -p -D -m 664 %{SOURCE30} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1
@@ -367,6 +382,13 @@ fi
 #---------------------------------------------------------------------
 
 %changelog
+* Thu Jul 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0-1
+- update to 5.0
+- do not build with external xulrunner
+  - remove BR: gecko-devel, R: gecko-libs
+- add BR: alsa-lib-devel, lcms-devel, libvpx-devel, libpng-devel,
+  sqlite3-devel, zip
+
 * Mon May 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.1-1
 - update to 4.0.1
 - remove MimeType from firefox-safe-mode.desktop

+ 3 - 3
f/firefox/firefox.vine.sh.in

@@ -48,7 +48,7 @@ case $MOZ_ARCH in
 		;;
 esac
 
-MOZ_FIREFOX_FILE="application.ini"
+MOZ_FIREFOX_FILE="firefox"
 
 if [ ! -r $MOZ_LIB_DIR/firefox-FIREFOX_VERSION/$MOZ_FIREFOX_FILE ]; then
     if [ ! -r $SECONDARY_LIB_DIR/firefox-FIREFOX_VERSION/$MOZ_FIREFOX_FILE ]; then
@@ -61,10 +61,10 @@ if [ ! -r $MOZ_LIB_DIR/firefox-FIREFOX_VERSION/$MOZ_FIREFOX_FILE ]; then
     MOZ_LIB_DIR="$SECONDARY_LIB_DIR"
 fi
 MOZ_DIST_BIN="$MOZ_LIB_DIR/firefox-FIREFOX_VERSION"
-MOZ_XUL_DIR="$MOZ_LIB_DIR/XULRUNNER_DIRECTORY"
+MOZ_XUL_DIR="$MOZ_LIB_DIR/firefox-FIREFOX_VERSION"
 MOZ_LANGPACKS_DIR="$MOZ_DIST_BIN/langpacks"
 MOZ_EXTENSIONS_PROFILE_DIR="$HOME/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
-MOZ_PROGRAM="/usr/bin/xulrunner $MOZ_DIST_BIN/$MOZ_FIREFOX_FILE"
+MOZ_PROGRAM="$MOZ_DIST_BIN/$MOZ_FIREFOX_FILE"
 MOZ_LAUNCHER="$MOZ_DIST_BIN/run-mozilla.sh"
  
 ##

+ 49 - 0
f/firefox/mozconfig-firefox5-vine5

@@ -0,0 +1,49 @@
+. $topsrcdir/browser/config/mozconfig
+
+ac_add_options --prefix="$PREFIX"
+ac_add_options --libdir="$LIBDIR"
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+#ac_add_options --with-system-png
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+#ac_add_options --with-system-cairo
+ac_add_options --enable-system-cairo
+#ac_add_options --disable-system-cairo
+ac_add_options --without-mng
+ac_add_options --with-pthreads
+ac_add_options --disable-tests
+ac_add_options --disable-mochitest
+ac_add_options --disable-debug
+ac_add_options --disable-installer
+ac_add_options --enable-jsd
+ac_add_options --enable-optimize="$RPM_OPT_FLAGS"
+ac_add_options --enable-default-toolkit=cairo-gtk2
+#ac_add_options --enable-xft
+ac_add_options --enable-pango
+ac_add_options --enable-xinerama
+ac_add_options --enable-crypto
+ac_add_options --enable-svg
+ac_add_options --enable-canvas
+ac_add_options --disable-xprint
+ac_add_options --disable-strip
+ac_add_options --enable-single-profile
+ac_add_options --disable-profilesharing
+ac_add_options --disable-official-branding
+ac_add_options --disable-crashreporter
+ac_add_options --disable-dbus
+ac_add_options --enable-safe-browsing
+ac_add_options --enable-libxul
+ac_add_options --enable-startup-notification
+ac_add_options --disable-necko-wifi
+ac_add_options --with-branding=browser/branding/unofficial
+ac_add_options --with-distribution-id=org.vinelinux
+
+#ac_add_options --with-l10n-base=../l10n
+
+export BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=1
+mk_add_options BUILD_OFFICIAL=1
+mk_add_options MOZILLA_OFFICIAL=1
+mk_add_options MOZ_OBJDIR=@TOPSRCDIR@
+

+ 51 - 0
f/firefox/mozconfig-firefox5-vine6

@@ -0,0 +1,51 @@
+. $topsrcdir/browser/config/mozconfig
+
+ac_add_options --prefix="$PREFIX"
+ac_add_options --libdir="$LIBDIR"
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-system-libvpx
+ac_add_options --enable-system-cairo
+ac_add_options --enable-system-sqlite
+ac_add_options --without-mng
+ac_add_options --with-pthreads
+ac_add_options --disable-tests
+ac_add_options --disable-mochitest
+ac_add_options --disable-debug
+ac_add_options --disable-installer
+ac_add_options --enable-jsd
+ac_add_options --enable-optimize="$RPM_OPT_FLAGS"
+ac_add_options --enable-default-toolkit=cairo-gtk2
+#ac_add_options --enable-xft
+ac_add_options --enable-pango
+ac_add_options --enable-xinerama
+ac_add_options --enable-crypto
+ac_add_options --enable-svg
+ac_add_options --enable-canvas
+ac_add_options --disable-xprint
+ac_add_options --disable-strip
+ac_add_options --enable-single-profile
+ac_add_options --disable-profilesharing
+ac_add_options --disable-official-branding
+ac_add_options --disable-crashreporter
+ac_add_options --disable-dbus
+ac_add_options --enable-safe-browsing
+ac_add_options --enable-libxul
+ac_add_options --enable-startup-notification
+ac_add_options --enable-libnotify
+ac_add_options --disable-necko-wifi
+ac_add_options --disable-cpp-exceptions
+ac_add_options --enable-shared-js
+ac_add_options --enable-url-classifier
+ac_add_options --enable-gio
+ac_add_options --disable-gnomevfs
+ac_add_options --with-branding=browser/branding/unofficial
+ac_add_options --with-distribution-id=org.vinelinux
+
+export BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=1
+mk_add_options BUILD_OFFICIAL=1
+mk_add_options MOZILLA_OFFICIAL=1
+mk_add_options MOZ_OBJDIR=@TOPSRCDIR@