automatic version update by autodist [release 2.19-1mamba;Mon Jul 15 2013]

This commit is contained in:
Automatic Build System 2024-01-05 17:44:03 +01:00
parent 29e35f2bec
commit f5761134d4
16 changed files with 1436 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# seamonkey # seamonkey
SeaMonkey is an all-in-one Internet application suite. It includes a browser, mail/news client, IRC client, JavaScript debugger, and a tool to inspect the DOM for web pages. It is derived from the application formerly known as Mozilla Application Suite.

BIN
Seamonkeyoutline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

View File

@ -0,0 +1,24 @@
diff -r f1af606531f5 memory/jemalloc/jemalloc.h
--- mozilla/memory/jemalloc/jemalloc.h Sat Nov 22 20:22:22 2008 +0100
+++ mozilla/memory/jemalloc/jemalloc.h Mon Dec 01 16:53:06 2008 -0500
@@ -45,14 +45,14 @@
} jemalloc_stats_t;
#ifndef MOZ_MEMORY_DARWIN
-void *malloc(size_t size);
-void *valloc(size_t size);
-void *calloc(size_t num, size_t size);
-void *realloc(void *ptr, size_t size);
-void free(void *ptr);
+void *malloc(size_t size) __THROW __attribute_malloc__ __wur;
+void *valloc(size_t size) __THROW __attribute_malloc__ __wur;
+void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur;
+void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur;
+void free(void *ptr) __THROW __attribute_malloc__ __wur;
#endif
-int posix_memalign(void **memptr, size_t alignment, size_t size);
+int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur;
void *memalign(size_t alignment, size_t size);
size_t malloc_usable_size(const void *ptr);
void jemalloc_stats(jemalloc_stats_t *stats);

162
mozilla-1.9.1-path.patch Normal file
View File

@ -0,0 +1,162 @@
--- mozilla/toolkit/xre/nsAppRunner.h.old 2007-09-25 18:01:56.000000000 +0200
+++ mozilla/toolkit/xre/nsAppRunner.h 2007-09-25 18:02:23.000000000 +0200
@@ -48,7 +48,8 @@
#elif defined(CCHMAXPATH)
#define MAXPATHLEN CCHMAXPATH
#else
-#define MAXPATHLEN 1024
+#include <limits.h>
+#define MAXPATHLEN PATH_MAX
#endif
#endif
diff -up mozilla/toolkit/mozapps/update/src/updater/updater.cpp.old mozilla/toolkit/mozapps/update/src/updater/updater.cpp
--- mozilla/toolkit/mozapps/update/src/updater/updater.cpp.old 2007-09-25 18:00:26.000000000 +0200
+++ mozilla/toolkit/mozapps/update/src/updater/updater.cpp 2007-09-25 18:00:53.000000000 +0200
@@ -107,7 +107,8 @@ void LaunchChild(int argc, char **argv);
# elif defined(CCHMAXPATH)
# define MAXPATHLEN CCHMAXPATH
# else
-# define MAXPATHLEN 1024
+# include <limits.h>
+# define MAXPATHLEN PATH_MAX
# endif
#endif
diff -up mozilla/xpcom/io/SpecialSystemDirectory.cpp.old mozilla/xpcom/io/SpecialSystemDirectory.cpp
--- mozilla/xpcom/io/SpecialSystemDirectory.cpp.old 2007-09-25 18:04:25.000000000 +0200
+++ mozilla/xpcom/io/SpecialSystemDirectory.cpp 2007-09-25 18:04:48.000000000 +0200
@@ -109,7 +109,8 @@
#elif defined(CCHMAXPATH)
#define MAXPATHLEN CCHMAXPATH
#else
-#define MAXPATHLEN 1024
+#include <limits.h>
+#define MAXPATHLEN PATH_MAX
#endif
#endif
diff -up mozilla/xpcom/obsolete/nsFileSpecUnix.cpp.old mozilla/xpcom/obsolete/nsFileSpecUnix.cpp
--- mozilla/xpcom/obsolete/nsFileSpecUnix.cpp.old 2006-11-28 01:18:37.000000000 +0100
+++ mozilla/xpcom/obsolete/nsFileSpecUnix.cpp 2007-09-25 18:05:49.000000000 +0200
@@ -79,7 +79,8 @@
#endif
#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024 /* Guessing this is okay. Works for SCO. */
+#include <limits.h>
+#define MAXPATHLEN PATH_MAX /* Guessing this is okay. Works for SCO. */
#endif
#if defined(__QNX__)
diff -up mozilla/xpcom/build/nsXPCOMPrivate.h.old mozilla/xpcom/build/nsXPCOMPrivate.h
--- mozilla/xpcom/build/nsXPCOMPrivate.h.old 2007-09-25 18:02:58.000000000 +0200
+++ mozilla/xpcom/build/nsXPCOMPrivate.h 2007-09-25 18:03:15.000000000 +0200
@@ -252,7 +252,8 @@ NS_GetFrozenFunctions(XPCOMFunctions *en
#elif defined(CCHMAXPATH)
#define MAXPATHLEN CCHMAXPATH
#else
-#define MAXPATHLEN 1024
+#include <limits.h>
+#define MAXPATHLEN PATH_MAX
#endif
#endif
diff -up mozilla/dbm/include/mcom_db.h.old mozilla/dbm/include/mcom_db.h
--- mozilla/dbm/include/mcom_db.h.old 2007-09-25 17:57:09.000000000 +0200
+++ mozilla/dbm/include/mcom_db.h 2007-09-25 17:57:49.000000000 +0200
@@ -214,7 +214,8 @@
#endif /* __DBINTERFACE_PRIVATE */
#ifdef SCO
-#define MAXPATHLEN 1024
+#include <limits.h>
+#define MAXPATHLEN PATH_MAX
#endif
#include <fcntl.h>
diff -up mozilla/xpcom/typelib/xpidl/xpidl_java.c.old mozilla/xpcom/typelib/xpidl/xpidl_java.c
--- mozilla/xpcom/typelib/xpidl/xpidl_java.c.old 2007-09-25 18:38:52.000000000 +0200
+++ mozilla/xpcom/typelib/xpidl/xpidl_java.c 2007-09-25 18:39:17.000000000 +0200
@@ -44,6 +44,7 @@
#include "xpidl.h"
#include <ctype.h>
#include <glib.h>
+#include <limits.h>
#ifdef XP_WIN
#include <windef.h>
diff -up mozilla/widget/src/xremoteclient/XRemoteClient.cpp.old mozilla/widget/src/xremoteclient/XRemoteClient.cpp
--- mozilla/widget/src/xremoteclient/XRemoteClient.cpp.old 2007-09-25 18:14:08.000000000 +0200
+++ mozilla/widget/src/xremoteclient/XRemoteClient.cpp 2007-09-25 18:36:55.000000000 +0200
@@ -76,7 +76,8 @@
#endif
#ifndef MAX_PATH
-#define MAX_PATH 1024
+#include <limits.h>
+#define MAX_PATH PATH_MAX
#endif
#define ARRAY_LENGTH(array_) (sizeof(array_)/sizeof(array_[0]))
diff -up mozilla/modules/libreg/src/reg.c.old mozilla/modules/libreg/src/reg.c
--- mozilla/modules/libreg/src/reg.c.old 2007-09-25 18:25:02.000000000 +0200
+++ mozilla/modules/libreg/src/reg.c 2007-09-25 18:27:46.000000000 +0200
@@ -96,7 +96,8 @@
#define MAX_PATH PATH_MAX
#elif defined(XP_UNIX)
#ifndef MAX_PATH
-#define MAX_PATH 1024
+#include <limits.h>
+#define MAX_PATH PATH_MAX
#endif
#elif defined(XP_OS2)
#ifndef MAX_PATH
diff -up mozilla/config/pathsub.h.old mozilla/config/pathsub.h
--- mozilla/config/pathsub.h.old 2004-04-18 16:17:25.000000000 +0200
+++ mozilla/config/pathsub.h 2007-09-25 18:48:13.000000000 +0200
@@ -46,7 +46,7 @@
#include <sys/types.h>
#ifndef PATH_MAX
-#define PATH_MAX 1024
+#error "PATH_MAX is not defined!"
#endif
/*
diff -up mozilla/modules/libjar/nsZipArchive.cpp.old mozilla/modules/libjar/nsZipArchive.cpp
--- mozilla/modules/libjar/nsZipArchive.cpp.old 2006-09-13 20:32:37.000000000 +0200
+++ mozilla/modules/libjar/nsZipArchive.cpp 2007-09-25 18:51:00.000000000 +0200
@@ -121,7 +121,7 @@ char * strdup(const char *src)
# define S_IFLNK 0120000
# endif
# ifndef PATH_MAX
-# define PATH_MAX 1024
+# include <limits.h>
# endif
#endif /* XP_UNIX */
diff -up mozilla/nsprpub/config/pathsub.h.old mozilla/nsprpub/config/pathsub.h
--- mozilla/nsprpub/config/pathsub.h.old 2004-04-25 17:00:34.000000000 +0200
+++ mozilla/nsprpub/config/pathsub.h 2007-09-25 18:57:51.000000000 +0200
@@ -50,7 +50,7 @@
#endif
#ifndef PATH_MAX
-#define PATH_MAX 1024
+#error "PATH_MAX is not defined!"
#endif
/*
diff -up mozilla/security/coreconf/nsinstall/pathsub.h.old mozilla/security/coreconf/nsinstall/pathsub.h
--- mozilla/security/coreconf/nsinstall/pathsub.h.old 2004-04-25 17:02:18.000000000 +0200
+++ mozilla/security/coreconf/nsinstall/pathsub.h 2007-09-25 19:00:35.000000000 +0200
@@ -49,7 +49,7 @@
#endif
#ifndef PATH_MAX
-#define PATH_MAX 1024
+#error "PATH_MAX is not defined!"
#endif
/*

66
openmamba-bookmarks-html Normal file
View File

@ -0,0 +1,66 @@
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 PERSONAL_TOOLBAR_FOLDER="true" ID="NC:PersonalToolbarFolder">Personal Toolbar Folder</H3>
<DL><p>
<DT><A HREF="http://www.openmamba.org/">openmamba.org</A>
<DT><A HREF="http://www.seamonkey-project.org/">SeaMonkey</A>
<DT><A HREF="http://www.mozilla.org/">mozilla.org</A>
<DT><A HREF="http://www.mozillazine.org/">mozillaZine</A>
<DT><A HREF="http://www.mozdev.org/">mozdev.org</A>
</DL><p>
<DT><H3>SeaMonkey and Mozilla</H3>
<DL><p>
<DT><A HREF="http://www.seamonkey-project.org/">The SeaMonkey Project</A>
<DT><H3>mozilla.org</H3>
<DL><p>
<DT><A HREF="http://www.mozilla.org/">The Mozilla Organization</A>
<DT><A HREF="http://www.mozilla.org/projects/">Mozilla Projects</A>
<DT><A HREF="http://www.mozilla.org/about/">About Mozilla</A>
</DL><p>
<DT><H3>Extending SeaMonkey</H3>
<DL><p>
<DT><A HREF="https://en-US.add-ons.mozilla.com/en-US/seamonkey/">SeaMonkey Add-ons</A>
<DT><A HREF="https://en-US.add-ons.mozilla.com/en-US/seamonkey/themes">SeaMonkey Themes</A>
<DT><A HREF="https://en-US.add-ons.mozilla.com/en-US/seamonkey/dictionaries">Spell Checking Dictionaries</A>
<DT><A HREF="https://en-US.add-ons.mozilla.com/en-US/seamonkey/plugins">Plugins for SeaMonkey</A>
<DT><A HREF="http://www.mozdev.org/">mozdev.org</A>
<DT><A HREF="http://www.mozdev.org/projects/applications/SeaMonkey.html">SeaMonkey Extensions from mozdev.org</A>
</DL><p>
<DT><H3>Community &amp; Support</H3>
<DL><p>
<DT><A HREF="http://www.seamonkey-project.org/community">SeaMonkey Community</A>
<DT><A HREF="http://www.mozillazine.org/">mozillaZine</A>
<DT><A HREF="http://forums.mozillazine.org/viewforum.php?f=40">SeaMonkey Support Forum (mozillaZine)</A>
</DL><p>
</DL><p>
<DT><H3>openmamba Project</H3>
<DL><p>
<DT><H3>openmamba.org</H3>
<DL><p>
<DT><A HREF="http://www.openmamba.org/">The openmamba Organization</A>
<DT><A HREF="http://www.openmamba.org/products.html">openmamba: Products</A>
<DT><A HREF="http://www.openmamba.org/events.html">openmamba: Events</A>
</DL><p>
<DT><H3>Community &amp; Support</H3>
<DL><p>
<DT><A HREF="http://www.openmamba.org/community//">openmamba: Community</A>
<DT><A HREF="http://forum.openmamba.org/">openmamba: Forum</A>
<DT><A HREF="http://wiki.openmamba.org/it/index.php/Pagina_principale">openmamba: Wiki</A>
<DT><A HREF="http://bugs.openmamba.org/my_view_page.php/">openmamba: Support</A>
</DL><p>
<HR>
</DL><p>
<DT><H3>Search the Web</H3>
<DL><p>
<DT><A HREF="http://www.google.com/">Google</A>
<DT><A HREF="http://groups.google.com/">Google Groups</A>
<DT><A HREF="http://news.google.com/">Google News</A>
</DL><p>
</DL><p>

16
seamonkey-lang.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# gil
SEAMONKEY_VERSION=$1
if [ -z "$SEAMONKEY_VERSION" ]; then
echo "Usage: $0 <version>"
exit 2
fi
rm -rf seamonkey-$SEAMONKEY_VERSION
mkdir seamonkey-$SEAMONKEY_VERSION
cd seamonkey-$SEAMONKEY_VERSION
wget -r -N -l 1 -np -nd -A "seamonkey-$SEAMONKEY_VERSION.*.langpack.xpi" ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$SEAMONKEY_VERSION/langpack/
rm -f robots.txt
tar -cj *.xpi > ../seamonkey-$SEAMONKEY_VERSION-langpacks.tar.bz2
#rm -rf seamonkey-$SEAMONKEY_VERSION

BIN
seamonkey-mail-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

15
seamonkey-mail.desktop Normal file
View File

@ -0,0 +1,15 @@
[Desktop Entry]
Encoding=UTF-8
Name=SeaMonkey Mail
Name[ja]=SeaMonkey メール
Name[it]=SeaMonkey
GenericName=Mail/News Client
Comment=Read Mail with SeaMonkey
Comment[ja]=SeaMonkey 上のメールã¯ãƒ©ã¤ã¢ãƒ³ãƒˆ
Comment[it]=Leggere email con SeaMonkey
Exec=__LIB_DIR__/seamonkey -mail
Icon=seamonkey-mail-icon
Terminal=false
Type=Application
Categories=Application;Network;

207
seamonkey-make-package.pl Normal file
View File

@ -0,0 +1,207 @@
#!/usr/bin/perl -w
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Christopher Blizzard.
# Portions created by Christopher Blizzard are Copyright (C)
# Christopher Blizzard. All Rights Reserved.
#
# Contributor(s):
# This script will read one of the mozilla packages- file on unix and
# copy it to a target directory. It's for unix only and is really
# designed for use in building rpms or other packages.
use Getopt::Long;
use File::Find;
use strict;
# global vars
my $install_dir = "";
my $install_root = "";
my $package_name = "";
my $package_file = "";
my $output_file = "";
my $exclude_file = "";
my $retval;
# std return val
$retval = GetOptions('install-dir=s', \$install_dir,
'install-root=s', \$install_root,
'package=s', \$package_name,
'package-file=s', \$package_file,
'output-file=s', \$output_file,
'exclude-file=s', \$exclude_file);
# make sure that all of the values are specific on the command line
if (!$retval || !$install_dir || !$install_root || !$package_name ||
!$package_file || !$output_file) {
print_usage();
exit 1;
}
# try to open the packages file
open (PACKAGE_FILE, $package_file) || die("$0: Failed to open file $package_file for reading.");
print "chdir to $install_dir\n";
chdir($install_dir);
my @file_list;
my @exclude_list;
my @final_file_list;
my $reading_package = 0;
LINE: while (<PACKAGE_FILE>) {
s/\;.*//; # it's a comment, kill it.
s/^\s+//; # nuke leading whitespace
s/\s+$//; # nuke trailing whitespace
# it's a blank line, skip it.
if (/^$/) {
next LINE;
}
# it's a new component
if (/^\[/) {
my $this_package;
( $this_package ) = /^\[(.+)\]$/;
if ($this_package eq $package_name) {
$reading_package = 1;
}
else {
$reading_package = 0;
}
next LINE;
}
# read this line
if ($reading_package) {
# see if it's a deletion
if (/^-/) {
my $this_file;
( $this_file ) = /^-(.+)$/;
push (@exclude_list, $this_file);
}
else {
push (@file_list, $_);
}
}
}
close PACKAGE_FILE;
# check if we have an exclude file
if ($exclude_file) {
print "reading exclude file $exclude_file\n";
open (EXCLUDE_FILE, $exclude_file) || die("$0: Failed to open exclude file $exclude_file for reading.");
while (<EXCLUDE_FILE>) {
chomp;
print "Ignoring $_\n";
push (@exclude_list, $_);
}
close EXCLUDE_FILE;
}
# Expand our file list
expand_file_list(\@file_list, \@exclude_list, \@final_file_list);
print "final file list\n";
foreach (@final_file_list) {
print $_ . "\n";
}
open (OUTPUT_FILE, ">>$output_file") || die("Failed to open output file\n");
foreach (@final_file_list) {
# strip off the bin/
s/^bin\///;
if ( ! -f $_ ) {
print("Skipping $_ because it doesn't exist\n");
}
else {
print ("Adding $_\n");
print (OUTPUT_FILE $install_root . "/" . $_ . "\n");
}
}
close OUTPUT_FILE;
#print "\nexlude list\n";
#foreach (@exclude_list) {
# print $_ . "\n";
#}
# this function expands a list of files
sub expand_file_list {
my $file_list_ref = shift;
my $exclude_list_ref = shift;
my $final_file_list_ref = shift;
my $this_file;
foreach $this_file (@{$file_list_ref}) {
# strip off the bin/
$this_file =~ s/^bin\///;
# is it a wild card?
if ($this_file =~ /\*/) {
print "Wild card $this_file\n";
# expand that wild card, removing anything in the exclude
# list
my @temp_list;
printf ("Expanding $this_file\n");
@temp_list = glob($this_file);
foreach $this_file (@temp_list) {
if (!in_exclude_list($this_file, $exclude_list_ref)) {
push (@{$final_file_list_ref}, $this_file);
}
}
}
else {
if (!in_exclude_list($this_file, $exclude_list_ref)) {
push (@{$final_file_list_ref}, $this_file);
}
}
}
}
# is this file in the exlude list?
sub in_exclude_list {
my $file = shift;
my $exclude_list_ref = shift;
my $this_file;
foreach $this_file (@{$exclude_list_ref}) {
if ($file eq $this_file) {
return 1;
}
}
return 0;
}
# print out a usage message
sub print_usage {
print ("$0: --install-dir dir --install-root dir --package name --package-file file --output-file file\n");
print ("\t install-dir is the directory where the files are installed.\n");
print ("\t install-root is the directory that should prefix files in the package file.\n");
print ("\t package is the name of the package to list\n");
print ("\t package-file is the file that contains the list of packages\n");
print ("\t output-file is the file which will contain the list of files\n");
}

View File

@ -0,0 +1,4 @@
libnss3.so
libsmime3.so
libsoftokn3.so
libssl3.so

199
seamonkey-script Normal file
View File

@ -0,0 +1,199 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
##
## Usage:
##
## $ mozilla
##
## This script is meant to run a mozilla program from the mozilla
## rpm installation.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.
cmdname=`basename $0`
## don't leave any core files around
ulimit -c 0
##
## Variables
##
MOZ_DIST_BIN="LIBDIR/seamonkey-MOZILLA_VERSION"
MOZ_PROGRAM="LIBDIR/seamonkey-MOZILLA_VERSION/seamonkey"
MOZ_CLIENT_PROGRAM="LIBDIR/seamonkey-MOZILLA_VERSION/mozilla-xremote-client -a seamonkey"
MOZ_EXTENSIONS_DIR="$MOZ_DIST_BIN/extensions"
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="LIBDIR/seamonkey-MOZILLA_VERSION"
export MOZILLA_FIVE_HOME
##
## Select the propper plugin dir
## Wrapped plug-ins are located in /lib/mozilla/plugins-wrapped
##
if [ -x "/usr/bin/mozilla-plugin-config" ]
then
MOZ_PLUGIN_DIR="plugins-wrapped"
else
MOZ_PLUGIN_DIR="plugins"
fi
##
## Set LD_LIBRARY_PATH
##
if [ "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=LIBDIR/seamonkey-MOZILLA_VERSION:LIBDIR/seamonkey-MOZILLA_VERSION/plugins:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=LIBDIR/seamonkey-MOZILLA_VERSION:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
fi
export LD_LIBRARY_PATH
##
## Make sure that we set the plugin path for backwards compatibility
##
if [ "$MOZ_PLUGIN_PATH" ]
then
MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
else
MOZ_PLUGIN_PATH=LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
fi
export MOZ_PLUGIN_PATH
##
## Set MOZ_APP_LAUNCHER for gnome-session
##
export MOZ_APP_LAUNCHER="/usr/bin/seamonkey"
##
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
##
#MOZ_DISABLE_PANGO=1
#export MOZ_DISABLE_PANGO
##
## Disable the GNOME crash dialog, Moz has it's own
##
GNOME_DISABLE_CRASH_DIALOG=1
export GNOME_DISABLE_CRASH_DIALOG
function check_running() {
$MOZ_CLIENT_PROGRAM 'ping()' 2>/dev/null >/dev/null
RETURN_VAL=$?
if [ "$RETURN_VAL" -eq "2" ]; then
echo 0
return 0
else
echo 1
return 1
fi
}
function open_mail() {
if [ "${ALREADY_RUNNING}" -eq "1" ]; then
exec $MOZ_CLIENT_PROGRAM 'xfeDoCommand(openInbox)' \
2>/dev/null >/dev/null
else
exec $MOZ_PROGRAM $*
fi
}
function open_compose() {
if [ "${ALREADY_RUNNING}" -eq "1" ]; then
exec $MOZ_CLIENT_PROGRAM 'xfeDoCommand(composeMessage)' \
2>/dev/null >/dev/null
else
exec $MOZ_PROGRAM $*
fi
}
# OK, here's where all the real work gets done
# check to see if there's an already running instance or not
ALREADY_RUNNING=`check_running`
# If there is no command line argument at all then try to open a new
# window in an already running instance.
if [ "${ALREADY_RUNNING}" -eq "1" ] && [ -z "$1" ]; then
exec $MOZ_CLIENT_PROGRAM "xfeDoCommand(openBrowser)" 2>/dev/null >/dev/null
fi
# check system locale
MOZARGS=
# Try without a local variant first, then with a local variant
# So that pt-BR doesn't try to use pt for example
# edit $LC_MESSAGES with $LANG
SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"`
[ -f $MOZ_EXTENSIONS_DIR/langpack-${SHORTMOZLOCALE}@seamonkey.mozilla.org/chrome/$SHORTMOZLOCALE.jar ] && MOZARGS="-UILocale $SHORTMOZLOCALE"
MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
[ -f $MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@seamonkey.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
# if there's no command line argument and there's not a running
# instance then just fire up a new copy of the browser
if [ -z "$1" ]; then
exec $MOZ_PROGRAM $MOZARGS 2>/dev/null >/dev/null
fi
unset RETURN_VAL
# If there's a command line argument but it doesn't begin with a -
# it's probably a url. Try to send it to a running instance.
USE_EXIST=0
opt="$1"
case "$opt" in
-mail)
open_mail ${1+"$@"}
;;
-compose)
open_compose ${1+"$@"}
;;
-*) ;;
*) USE_EXIST=1 ;;
esac
if [ "${USE_EXIST}" -eq "1" ] && [ "${ALREADY_RUNNING}" -eq "1" ]; then
# check to make sure that the command contains at least a :/ in it.
echo $opt | grep -e ':/' 2>/dev/null > /dev/null
RETURN_VAL=$?
if [ "$RETURN_VAL" -eq "1" ]; then
# if it doesn't begin with a '/' and it exists when the pwd is
# prepended to it then append the full path
echo $opt | grep -e '^/' 2>/dev/null > /dev/null
if [ "${RETURN_VAL}" -ne "0" ] && [ -e "`pwd`/$opt" ]; then
opt="`pwd`/$opt"
fi
exec $MOZ_CLIENT_PROGRAM "openurl($opt)" 2>/dev/null >/dev/null
fi
# just pass it off if it looks like a url
exec $MOZ_CLIENT_PROGRAM "openurl($opt,new-window)" 2>/dev/null >/dev/null
fi
exec $MOZ_PROGRAM $MOZARGS ${1+"$@"}

View File

@ -0,0 +1,3 @@
libnspr4.so
libplc4.so
libplds4.so

16
seamonkey.desktop Normal file
View File

@ -0,0 +1,16 @@
[Desktop Entry]
Encoding=UTF-8
Name=SeaMonkey
Name[ja]=SeaMonkey ã¦ã§ãƒãƒ»ãƒãƒ©ã¦ã
Name[it]=SeaMonkey
GenericName=Internet Application Suite
Comment=Make most of the Internet
Comment[ja]=ã¦ã§ãƒãƒ»ãƒãƒ©ã¦ã
Comment[it]=Web Browser
Exec=__LIB_DIR__/seamonkey %u -splash
Icon=seamonkey
Terminal=false
Type=Application
#StartupWMClass=seamonkey-bin
Categories=Application;Network;

197
seamonkey.sh.in Normal file
View File

@ -0,0 +1,197 @@
#!/bin/sh
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
##
## Usage:
##
## $ mozilla
##
## This script is meant to run a mozilla program from the mozilla
## rpm installation.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.
cmdname=`basename $0`
## don't leave any core files around
ulimit -c 0
##
## Variables
##
MOZ_DIST_BIN="LIBDIR/seamonkey-MOZILLA_VERSION"
MOZ_PROGRAM="LIBDIR/seamonkey-MOZILLA_VERSION/seamonkey-bin"
MOZ_CLIENT_PROGRAM="LIBDIR/seamonkey-MOZILLA_VERSION/mozilla-xremote-client -a seamonkey"
MOZ_EXTENSIONS_DIR="$MOZ_DIST_BIN/extensions"
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="LIBDIR/seamonkey-MOZILLA_VERSION"
export MOZILLA_FIVE_HOME
##
## Select the propper plugin dir
## Wrapped plug-ins are located in /lib/mozilla/plugins-wrapped
##
if [ -x "/usr/bin/mozilla-plugin-config" ]
then
MOZ_PLUGIN_DIR="plugins-wrapped"
else
MOZ_PLUGIN_DIR="plugins"
fi
##
## Set LD_LIBRARY_PATH
##
if [ "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=LIBDIR/seamonkey-MOZILLA_VERSION:LIBDIR/seamonkey-MOZILLA_VERSION/plugins:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=LIBDIR/seamonkey-MOZILLA_VERSION:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
fi
export LD_LIBRARY_PATH
##
## Make sure that we set the plugin path for backwards compatibility
##
if [ "$MOZ_PLUGIN_PATH" ]
then
MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
else
MOZ_PLUGIN_PATH=LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/seamonkey-MOZILLA_VERSION/plugins
fi
export MOZ_PLUGIN_PATH
##
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
##
#MOZ_DISABLE_PANGO=1
#export MOZ_DISABLE_PANGO
##
## Disable the GNOME crash dialog, Moz has it's own
##
GNOME_DISABLE_CRASH_DIALOG=1
export GNOME_DISABLE_CRASH_DIALOG
function check_running() {
$MOZ_CLIENT_PROGRAM 'ping()' 2>/dev/null >/dev/null
RETURN_VAL=$?
if [ "$RETURN_VAL" -eq "2" ]; then
echo 0
return 0
else
echo 1
return 1
fi
}
function open_mail() {
if [ "${ALREADY_RUNNING}" -eq "1" ]; then
exec $MOZ_CLIENT_PROGRAM 'xfeDoCommand(openInbox)' \
2>/dev/null >/dev/null
else
exec $MOZ_PROGRAM $*
fi
}
function open_compose() {
if [ "${ALREADY_RUNNING}" -eq "1" ]; then
exec $MOZ_CLIENT_PROGRAM 'xfeDoCommand(composeMessage)' \
2>/dev/null >/dev/null
else
exec $MOZ_PROGRAM $*
fi
}
# OK, here's where all the real work gets done
# check to see if there's an already running instance or not
ALREADY_RUNNING=`check_running`
# If there is no command line argument at all then try to open a new
# window in an already running instance.
if [ "${ALREADY_RUNNING}" -eq "1" ] && [ -z "$1" ]; then
exec $MOZ_CLIENT_PROGRAM "xfeDoCommand(openBrowser)" 2>/dev/null >/dev/null
fi
# check system locale
# check system locale
MOZARGS=
#MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
#[ -f $MOZILLA_FIVE_HOME/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"`
[ -f $MOZ_EXTENSIONS_DIR/langpack-${SHORTMOZLOCALE}@seamonkey.mozilla.org/chrome/$SHORTMOZLOCALE.jar ] && MOZARGS="-UILocale $SHORTMOZLOCALE"
#MOZLOCALE=`echo $LC_MESSAGES | sed "s|_\([^.]*\).*|-\1|g"`
MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
[ -f $MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@seamonkey.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
# if there's no command line argument and there's not a running
# instance then just fire up a new copy of the browser
if [ -z "$1" ]; then
exec $MOZ_PROGRAM $MOZARGS 2>/dev/null >/dev/null
fi
unset RETURN_VAL
# If there's a command line argument but it doesn't begin with a -
# it's probably a url. Try to send it to a running instance.
USE_EXIST=0
opt="$1"
case "$opt" in
-mail)
open_mail ${1+"$@"}
;;
-compose)
open_compose ${1+"$@"}
;;
-*) ;;
*) USE_EXIST=1 ;;
esac
if [ "${USE_EXIST}" -eq "1" ] && [ "${ALREADY_RUNNING}" -eq "1" ]; then
# check to make sure that the command contains at least a :/ in it.
echo $opt | grep -e ':/' 2>/dev/null > /dev/null
RETURN_VAL=$?
if [ "$RETURN_VAL" -eq "1" ]; then
# if it doesn't begin with a '/' and it exists when the pwd is
# prepended to it then append the full path
echo $opt | grep -e '^/' 2>/dev/null > /dev/null
if [ "${RETURN_VAL}" -ne "0" ] && [ -e "`pwd`/$opt" ]; then
opt="`pwd`/$opt"
fi
exec $MOZ_CLIENT_PROGRAM "openurl($opt)" 2>/dev/null >/dev/null
fi
# just pass it off if it looks like a url
exec $MOZ_CLIENT_PROGRAM "openurl($opt,new-window)" 2>/dev/null >/dev/null
fi
exec $MOZ_PROGRAM $MOZARGS ${1+"$@"}

472
seamonkey.spec Normal file
View File

@ -0,0 +1,472 @@
%define seadir %{_libdir}/seamonkey-%{version}
%define majver %(echo %version | cut -d. -f 1-2)
%define build_langpack 1
%define debug 0
%define system_png 0
%define pkg_dir comm-release
Name: seamonkey
Version: 2.19
Release: 1mamba
Summary: Web-browser, e-mail, newsgroup client, IRC chat client, HTML editor
Group: Graphical Desktop/Applications/Internet
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mozilla.org/projects/seamonkey
#Source0: %{ftp}/%{version}/seamonkey-%{version}.source.tar.gz
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.bz2
Source1: seamonkey-script
Source2: seamonkey.desktop
Source3: seamonkey-mail.desktop
Source4: seamonkey-mail-icon.png
Source5: Seamonkeyoutline.png
Source6: seamonkey-make-package.pl
%if %build_langpack
# langpack got with
# wget ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/*.xpi
# and then bzipped into Source1 below
# tar -cj *.xpi > seamonkey-%{version}-langpacks.tar.bz2
Source7: seamonkey-%{version}-langpacks.tar.bz2
%endif
Source8: seamonkey-psm-exclude-list
Source9: seamonkey-xpcom-exclude-list
Source10: seamonkey-lang.sh
Source11: openmamba-bookmarks-html
Source12: seamonkey.sh.in
Patch0: mozilla-1.9.1-path.patch
Patch1: mozilla-1.9.1-jemalloc.patch
Patch2: xulrunner-1.9.2.7-libjpeg-turbo.patch
License: GPL, LGPL, MPL 1.1
## AUTOBUILDREQ-BEGIN
BuildRequires: GConf-devel
BuildRequires: glibc-devel
BuildRequires: hunspell-it
BuildRequires: libalsa-devel
BuildRequires: libatk-devel
BuildRequires: libbonobo-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libgnome-devel
BuildRequires: libgnome-vfs-devel
BuildRequires: libgtk-devel
BuildRequires: libhunspell-devel
BuildRequires: libjpeg-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpopt-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXrender-devel
BuildRequires: libXt-devel
BuildRequires: libz-devel
BuildRequires: ORBit2-devel
## AUTOBUILDREQ-END
BuildRequires: coreutils
BuildRequires: hunspell-it
BuildRequires: libart_lgpl-devel
BuildRequires: libbonoboui-devel
BuildRequires: libgnomecanvas-devel
BuildRequires: libgnomeui-devel
BuildRequires: libICE-devel
BuildRequires: libIDL-devel
BuildRequires: libpng-devel
BuildRequires: libSM-devel
BuildRequires: libXft-devel
BuildRequires: libXinerama-devel
BuildRequires: libmozjs185-devel
Requires: hunspell-it
Obsoletes: seamonkey-i18n-it-IT
Provides: seamonkey-i18n-it-IT
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
SeaMonkey is an all-in-one Internet application suite. It includes a browser, mail/news client, IRC client, JavaScript debugger, and a tool to inspect the DOM for web pages. It is derived from the application formerly known as Mozilla Application Suite.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
SeaMonkey is an all-in-one Internet application suite.
This package contains static libraries and header files need for development.
%prep
%setup -q -c -n %{name}
#-D -T
#:<< __EOF
%define _use_internal_dependency_generator 0
%define __find_provides %{_builddir}/seamonkey/find_provides.sh
cat > %{_builddir}/%{name}/find_provides.sh <<_EOF
#! /bin/sh
grep -v %{buildroot}%{seadir} | \
grep -v %{buildroot}%{_libdir}/seamonkey-devel | \
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu}
_EOF
chmod +x %{_builddir}/seamonkey/find_provides.sh
%define __find_requires %{_builddir}/seamonkey/find_requires.sh
cat > %{_builddir}/%{name}/find_requires.sh <<_EOF
#! /bin/sh
%{_libdir}/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null |
while read line; do
[ ! -f %{buildroot}%{seadir}/\$line ] && echo "\$line"
done
_EOF
chmod +x %{_builddir}/%{name}/find_requires.sh
cd %{pkg_dir}
#%patch0 -p0
#%patch1 -p0
#(
#cd mozilla
#% patch2 -p0
#)
for p in $(find . -name "*.py"); do
sed -i 's|#!/usr/bin/python|#!%{__python}|' $p
sed -i 's|#!/usr/bin/env python|#!%{__python}|' $p
sed -i 's|#!python|#!%{__python}|' $p
sed -i 's|#!/usr/local/bin/python2.1|#!%{__python}|' $p
sed -i 's|#!/usr/local/bin/python|#!%{__python}|' $p
done
for c in $(find . -name "configure" -o -name "configure.in"); do
sed -i 's|python2.5 python2.4 python|python2.6|' $c
sed -i 's|PYTHON_VERSION=2.4|PYTHON_VERSION=%{python_version}|' $c
done
rm -f .mozconfig
cat << EOF > .mozconfig
ac_add_options --enable-application=suite
ac_add_options --prefix=%{_prefix}
ac_add_options --libdir=%{_libdir}
ac_add_options --with-default-mozilla-five-home=%{seadir}
ac_add_options --with-user-appdir=.seamonkey
#ac_add_options --with-system-libxul
#ac_add_options --with-libxul-sdk=%{_libdir}/xulrunner-devel-1.9
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-libvpx
#ac_add_options --with-system-png
ac_add_options --with-pthreads
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-installer
#ac_add_options --enable-debug
#ac_add_options --disable-optimize
ac_add_options --disable-javaxpcom
ac_add_options --enable-optimize="$RPM_OPT_FLAGS"
ac_add_options --enable-xinerama
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-xprint
ac_add_options --disable-strip
ac_add_options --disable-system-cairo
ac_add_options --enable-pango
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-extensions=default,irc
ac_add_options --enable-crypto
ac_add_options --enable-libxul
ac_add_options --disable-crashreporter
ac_add_options --enable-safe-browsing
#ac_add_options --enable-static
ac_add_options --enable-system-hunspell
ac_add_options --disable-cpp-exceptions
ac_add_options --disable-updater
ac_add_options --disable-gnomevfs
#ac_add_options --enable-jprof
#ac_add_options --enable-system-sqlite
ac_add_options --enable-chrome-format=omni
#ac_add_options --enable-image-decoders=all
#ac_add_options --enable-image-encoders=all
ac_add_options --disable-necko-wifi
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export MOZ_PHOENIX=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
EOF
#__EOF
# --enable-default-toolkit=
# Gtk2 with DirectFB - cairo-gtk2-dfb
# * - cairo-gtk2
# * - cairo-qt
# --enable-system-sqlite
# --enable-image-decoders[={mod1,mod2,default,all,none}]
# --enable-image-encoders[={mod1,mod2,default,all,none}]
# --enable-valgrind Enable Valgrind integration hooks (default=no)
# --enable-efence Link with Electric Fence
# --enable-necko-protocols[={http,ftp,default,all,none}]
# --disable-necko-disk-cache
# --disable-necko-wifi Disable necko wifi scanner
%build
#:<< __EOF
cd %{pkg_dir}
export PYTHON=%{__python}
export SM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-Wall//'-e 's/\r//')
export RPM_OPT_FLAGS=$SM_OPT_FLAGS
export CFLAGS=$SM_OPT_FLAGS
export CXXFLAGS=$SM_OPT_FLAGS
make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="-j1"
#MOZ_SERVICES_SYNC="1"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd %{pkg_dir}/obj-i686-pc-linux-gnu
DESTDIR=%{buildroot} make install MOZ_SERVICES_SYNC="1"
echo > ../%{name}.lang
%if %build_langpack
mkdir -p %{buildroot}%{seadir}/extensions
install -d seamonkey-langpacks && tar -C seamonkey-langpacks -xjf %{SOURCE7}
for langpack in $(ls seamonkey-langpacks/*.xpi) ; do
language=$(echo $(echo $langpack | sed -e s:.langpack.xpi::g)| sed -e s:seamonkey-langpacks/seamonkey-%{version}.::g)
extensiondir=%{buildroot}%{seadir}/extensions/langpack-$language@seamonkey.mozilla.org
install -d $extensiondir
unzip $langpack -d $extensiondir
find $extensiondir -type f | xargs chmod 644
chromedir=%{buildroot}%{seadir}/extensions/langpack-$language@seamonkey.mozilla.org/chrome
tmpdir=`mktemp -d %{name}.XXXXXXXX`
langtmp=$tmpdir/%{name}/langpack-$language
mkdir -p $langtmp
jarfile=$language.jar
#pushd $langtmp
#jar xf $chromedir/$jarfile
#popd
#sed -i -e "s|browser.startup.homepage.*$|browser.startup.homepage=http://www.openmamba.org|g;" \
#$langtmp/locale/$language/navigator-region/region.properties
#find $langtmp -type f | xargs chmod 644
#rm -rf $jarfile
#cd $tmpdir/%{name}
#jar cfM $chromedir/$jarfile -C langpack-$language .
#cd -
#rm -rf $tmpdir
language=`echo $language | sed -e 's/-/_/g'`
extensiondir=`echo $extensiondir | sed -e "s,^%{buildroot},,"`
echo "%%lang($language) $extensiondir" >> ../%{name}.lang
done
#mkdir temp
#pushd temp
#jar xf %{buildroot}%{seadir}/chrome/en-US.jar
#sed -i -e "s|browser.startup.homepage.*$|browser.startup.homepage=http://www.openmamba.org|g;" \
# locale/en-US/navigator-region/region.properties
#popd
#jar cfM %{buildroot}%{seadir}/chrome/en-US.jar -C temp .
#rm -rf temp
#chmod 644 %{buildroot}%{seadir}/chrome/en-US.jar
%endif
#sed -i -e "s|en-US|it|g;" %{buildroot}%{seadir}/defaults/pref/suite-l10n.js
cat > default-prefs << _EOF
pref("browser.display.use_system_colors", true);
pref("general.smoothScroll", true);
pref("general.useragent.vendor", "openmamba");
pref("general.useragent.vendorSub", "%{version}-%{release}");
pref("update_notifications.enabled", false);
_EOF
install -p -D -m 644 default-prefs %{buildroot}%{seadir}/defaults/pref/all-openmamba.js
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
sed -i "s|__LIB_DIR__|%{_bindir}|" %{buildroot}%{_datadir}/applications/seamonkey.desktop
sed -i "s|__LIB_DIR__|%{_bindir}|" %{buildroot}%{_datadir}/applications/seamonkey-mail.desktop
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 ../suite/branding/nightly/icons/gtk/seamonkey.png %{buildroot}%{_datadir}/pixmaps/seamonkey.png
install -m 644 ../suite/branding/nightly/icons/gtk/messengerWindow48.png %{buildroot}%{_datadir}/pixmaps/seamonkey-mail-icon.png
install -pm 644 mozilla/dist/bin/components/*.xpt \
%{buildroot}%{seadir}/components
if [ ! -d %{buildroot}%{seadir}/plugins/ ]; then
mkdir -m 755 %{buildroot}%{seadir}/plugins
fi
rm -rf %{buildroot}%{seadir}/defaults/profile/bookmarks.html
install -pm 644 %{SOURCE11} %{buildroot}%{seadir}/defaults/profile/bookmarks.html
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 mozilla/dist/man/man1/seamonkey.1 %{buildroot}%{_mandir}/man1/
rm -rf %{buildroot}%{_bindir}/seamonkey
rm -rf %{buildroot}%{seadir}/seamonkey
rm -rf %{buildroot}%{seadir}/seamonkey-bin
cat %{SOURCE12} | sed -e 's/MOZILLA_VERSION/%{version}/g' -e 's,LIBDIR,%{_libdir},g' > %{buildroot}%{_bindir}/seamonkey
chmod 755 %{buildroot}%{_bindir}/seamonkey
install -pm 755 mozilla/dist/bin/seamonkey %{buildroot}%{seadir}/seamonkey
install -pm 755 mozilla/dist/bin/seamonkey-bin %{buildroot}%{seadir}
ln -sf %{_datadir}/myspell/*.{aff,dic} %{buildroot}%{seadir}/dictionaries/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#%post
#%{_sbindir}/alternatives --install %{_bindir}/seamonkey seamonkey %{seadir}/seamonkey 201
#%preun
#if [ "$1" = "0" ]; then
# %{_sbindir}/alternatives --remove seamonkey %{seadir}/seamonkey
# rm -fr %{seadir}
#fi
%files
%defattr(-,root,root)
%{_bindir}/seamonkey
%dir %{_datadir}/idl/seamonkey-%{version}
%{_datadir}/idl/seamonkey-%{version}/*.idl
%{_datadir}/pixmaps/seamonkey*.png
%{_datadir}/applications/seamonkey*.desktop
%dir %{seadir}
%{seadir}/*
%{_mandir}/man1/seamonkey.1.gz
%doc %{pkg_dir}/mozilla/LEGAL
%doc %{pkg_dir}/mozilla/LICENSE
%doc %{pkg_dir}/mozilla/README.txt
%files devel
%defattr(-,root,root)
%dir %{_includedir}/seamonkey-%{version}
%{_includedir}/seamonkey-%{version}/*
%dir %{_libdir}/seamonkey-devel-%{version}
%{_libdir}/seamonkey-devel-%{version}/*
%changelog
* Mon Jul 15 2013 Automatic Build System <autodist@mambasoft.it> 2.19-1mamba
- automatic version update by autodist
* Mon Apr 15 2013 Automatic Build System <autodist@mambasoft.it> 2.17.1-1mamba
- automatic version update by autodist
* Sat Apr 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.17-2mamba
- fix to avoid providing libxul.so and others in seamonkey-devel
* Thu Apr 11 2013 Automatic Build System <autodist@mambasoft.it> 2.17-1mamba
- update to 2.17
* Tue Nov 13 2012 Automatic Build System <autodist@mambasoft.it> 2.13.2-1mamba
- update to 2.13.2
* Sat Sep 15 2012 Automatic Build System <autodist@mambasoft.it> 2.12.1-1mamba
- update to 2.12.1
* Tue Apr 10 2012 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
- automatic version update by autodist
* Mon Nov 28 2011 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
- automatic update by autodist
* Sat Oct 01 2011 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
- automatic version update by autodist
* Fri Sep 09 2011 Automatic Build System <autodist@mambasoft.it> 2.3.3-1mamba
- automatic version update by autodist
* Thu Aug 25 2011 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
- automatic version update by autodist
* Tue Aug 16 2011 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
- automatic version update by autodist
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
- update to 2.2
* Fri Oct 29 2010 Automatic Build System <autodist@mambasoft.it> 2.0.10-1mamba
- automatic update to 2.0.10 by autodist
* Thu Oct 28 2010 Automatic Build System <autodist@mambasoft.it> 2.0.9-1mamba
- automatic update to 2.0.9 by autodist
* Mon Oct 04 2010 Automatic Build System <autodist@mambasoft.it> 2.0.8-1mamba
- automatic update to 2.0.8 by autodist
* Thu Sep 09 2010 Automatic Build System <autodist@mambasoft.it> 2.0.7-1mamba
- automatic update to 2.0.7 by autodist
* Mon Aug 09 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-2mamba
- port from milestone1-contrib
- added option --with-system-libxul
- disabled jprof because of missing requirement
* Sun Jul 25 2010 gil <puntogil@libero.it> 2.0.6-1mamba
- update to 2.0.6
* Sun Jul 11 2010 gil <puntogil@libero.it> 2.0.5-1mamba
- update to 2.0.5
* Fri Apr 02 2010 gil <puntogil@libero.it> 2.0.4-1mamba
- update to 2.0.4
* Tue Feb 23 2010 gil <puntogil@libero.it> 2.0.3-1mamba
- update to 2.0.3
* Sat Jan 16 2010 gil <puntogil@libero.it> 2.0.2-1mamba
- update to 2.0.2
* Sun Dec 20 2009 gil <puntogil@libero.it> 2.0.1-2mamba
- edit bookmarks.html
* Sat Dec 19 2009 gil <puntogil@libero.it> 2.0.1-1mamba
- update to 2.0.1
* Tue Nov 17 2009 gil <puntogil@libero.it> 2.0-1mamba
- update to 2.0
* Mon Sep 14 2009 gil <puntogil@libero.it> 1.1.18-2mamba
- rebuilt
* Sat Sep 05 2009 gil <puntogil@libero.it> 1.1.18-1mamba
- update to 1.1.18
* Fri Jul 03 2009 gil <puntogil@libero.it> 1.1.17-2mamba
- rebuilt
* Wed Jul 01 2009 gil <puntogil@libero.it> 1.1.17-1mamba
- update to 1.1.17
* Mon May 25 2009 gil <puntogil@libero.it> 1.1.16-1mamba
- update to 1.1.16
- added italian language and hunspell(-it) support
* Mon Sep 29 2008 gil <puntogil@libero.it> 1.1.12-1mamba
- update to 1.1.12
* Sat May 03 2008 gil <puntogil@libero.it> 1.1.9-1mamba
- package created by autospec

View File

@ -0,0 +1,53 @@
--- modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp 2010-07-22 23:55:10.000000000 +0200
+++ modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp-gil 2010-07-25 15:57:53.000000000 +0200
@@ -57,19 +57,6 @@
extern "C" {
#include "iccjpeg.h"
-
-/* Colorspace conversion (copied from jpegint.h) */
-struct jpeg_color_deconverter {
- JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
- JMETHOD(void, color_convert, (j_decompress_ptr cinfo,
- JSAMPIMAGE input_buf, JDIMENSION input_row,
- JSAMPARRAY output_buf, int num_rows));
-};
-
-METHODDEF(void)
-ycc_rgb_convert_argb (j_decompress_ptr cinfo,
- JSAMPIMAGE input_buf, JDIMENSION input_row,
- JSAMPARRAY output_buf, int num_rows);
}
NS_IMPL_ISUPPORTS1(nsJPEGDecoder, imgIDecoder)
@@ -514,14 +501,6 @@
return NS_OK; /* I/O suspension */
}
- /* Force to use our YCbCr to Packed RGB converter when possible */
- if (!mTransform && (gfxPlatform::GetCMSMode() == eCMSMode_Off) &&
- mInfo.jpeg_color_space == JCS_YCbCr && mInfo.out_color_space == JCS_RGB) {
- /* Special case for the most common case: transform from YCbCr direct into packed ARGB */
- mInfo.out_color_components = 4; /* Packed ARGB pixels are always 4 bytes...*/
- mInfo.cconvert->color_convert = ycc_rgb_convert_argb;
- }
-
/* If this is a progressive JPEG ... */
mState = mInfo.buffered_image ? JPEG_DECOMPRESS_PROGRESSIVE : JPEG_DECOMPRESS_SEQUENTIAL;
}
@@ -678,15 +657,6 @@
PRUint32 *imageRow = ((PRUint32*)mImageData) +
(mInfo.output_scanline * mInfo.output_width);
- if (mInfo.cconvert->color_convert == ycc_rgb_convert_argb) {
- /* Special case: scanline will be directly converted into packed ARGB */
- if (jpeg_read_scanlines(&mInfo, (JSAMPARRAY)&imageRow, 1) != 1) {
- *suspend = PR_TRUE; /* suspend */
- break;
- }
- continue; /* all done for this row! */
- }
-
JSAMPROW sampleRow = (JSAMPROW)imageRow;
if (mInfo.output_components == 3) {
/* Put the pixels at end of row to enable in-place expansion */