Репозиторий Sisyphus
Последнее обновление: 21 августа 2019 | Пакетов: 17343 | Посещений: 14697970
en ru br
Репозитории ALT
S:2.49.4-alt1
5.1: 1.1.18-alt2
4.1: 1.1.16-alt0.M41.1
+updates:1.1.13-alt0.M41.1
4.0: 1.1.12-alt0.M40.1
www.altlinux.org/Changes

Группа :: Сети/WWW
Пакет: seamonkey

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: seamonkey
Version: 1.1.16
Release: alt0.M41.1
Serial: 1
Summary: Web browser and mail reader
License: MPL/NPL
Group: Networking/WWW
Packager: Damir Shayhutdinov <damir at altlinux.ru>
Url: http://www.mozilla.org/projects/seamonkey/

%define seamonkey_home  %_libdir/mozilla
%define seamonkey_version %name-%version

Source0: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%version/%name-%version.source.tar.bz2
Source1: mozilla-make-package.pl
Source2: mozilla-rebuild-databases.sh
Source3: mozilla-1.7.1-alt-ssl-addon-certs.txt
Source4: seamonkey.firsttime
Source5: mozilla-searchplugins.tar.bz2
Source6: seamonkey-alt-menu-desktop.tar.bz2
Source7: enigmail-0.94.1.tar.gz
Source8: mozilla-enigmail-prefs.js
Source9: mozilla-userChrome.css

Patch2: seamonkey-1.0.4-alt-disable-prefetch.patch
Patch3: seamonkey-1.0.4-alt-system-mozldap.patch
Patch4: seamonkey-1.1-fix-link.patch
Patch5: firefox-3.0-fix-layout-shortcuts.patch


Patch7: seamonkey-home-page.patch
Patch8: seamonkey-1.0.4-gtk2+xft-xrender-workaround.patch

# ALT patches

Patch113: mozilla-1.7-alt-add-plugins-dir.patch
Patch114: mozilla-1.7-alt-run-mozilla.patch
Patch131: mozilla-alt-enigmail.patch


#RH patch

Patch150: mozilla-default-plugin-less-annoying.patch
Patch151: firefox-1.5-with-system-nss.patch

PreReq: urw-fonts seamonkey-plugins-common
Requires: seamonkey-psm
Obsoletes: mozilla < 1.8
Provides: mozilla = 1.8
Conflicts: mozilla < 1.8

# Automatically added by buildreq on Sun Jul 16 2006

BuildRequires: gcc-c++ libdnet-devel libgtk+2-devel libIDL-devel
BuildRequires: libjpeg-devel libnspr-devel libpng-devel libXinerama-devel
BuildRequires: libXp-devel libXt-devel makedepend net-tools unzip
BuildRequires: xorg-cf-files zip libnss-devel libnss-devel-static libXft-devel
BuildPreReq: browser-plugins-npapi-devel
BuildPreReq: mozldap-devel
BuildPreReq: autoconf_2.13
BuildRequires: desktop-file-utils

%add_findprov_lib_path %seamonkey_home

%description
SeaMonkey is an open-source web browser, designed for standards
compliance, performance and portability.

%package devel
Summary: Development files for SeaMonkey
Group: Development/Other
Requires: %name = %serial:%version-%release
Obsoletes: mozilla-devel < 1.8
Provides: mozilla-devel = 1.8
Requires: rpm-build-seamonkey


%description devel
Development header files for mozilla.

%package mail
Summary: SeaMonkey-based mail system
Group: Networking/Mail
Requires: %name = %serial:%version-%release coreutils
Obsoletes: mozilla-mail < 1.8
Provides: mozilla-mail = %serial:%version-%release
Requires(postun): %name = %serial:%version-%release

%description mail
Mail/news client based on the SeaMonkey web browser.  The mail/news
client supports IMAP, POP, and NNTP and has an easy to use interface.

%package psm
Summary: Personal Security Manager
Group: Networking/WWW
PreReq: coreutils %name = %serial:%version-%release
Provides: %name-nss
Obsoletes: mozilla-psm < 1.8
Obsoletes: mozilla-nss < 1.8
Provides: mozilla-psm = 1.8
Provides: mozilla-nss = 1.8
Requires(postun): %name = %serial:%version-%release

%description psm
The Personal Security Manager is a set of libraries that allow SeaMonkey
to talk to the Network Security Services layer.  It allows SeaMonkey to
access SSL web sites and manage cryptographic keys.

%package irc
Summary: IRC support for SeaMonkey
Group: Networking/IRC
PreReq: %name = %serial:%version-%release
Obsoletes: mozilla-irc < 1.8
Provides: mozilla-irc = 1.8
Requires(postun): %name = %serial:%version-%release

%description irc
IRC support for SeaMonkey.

%package js-debugger
Summary: JavaScript debugger for use with SeaMonkey
Group: Networking/WWW
PreReq: coreutils %name = %serial:%version-%release
Obsoletes: mozilla-js-debugger < 1.8
Provides: mozilla-js-debugger = 1.8
Requires(postun): %name = %serial:%version-%release

%description js-debugger
JavaScript debugger for use with SeaMonkey.

%package dom-inspector
Summary: A tool for inspecting the DOM of pages in SeaMonkey
Group: Networking/WWW
PreReq: coreutils %name = %serial:%version-%release
Obsoletes: mozilla-dom-inspector < 1.8
Provides: mozilla-dom-inspector = 1.8
Requires(postun): %name = %serial:%version-%release

%description dom-inspector
This is a tool that allows you to inspect the DOM for web pages in
SeaMonkey.  This is of great use to people who are doing SeaMonkey chrome
development or web page development.

%package spellchecker
Summary: Spellchecker for SeaMonkey
Group: Networking/WWW
License: LGPL
PreReq: coreutils %name = %serial:%version-%release
Obsoletes: mozilla-spellchecker < 1.8
Provides: mozilla-spellchecker = 1.8
Requires(postun): %name = %serial:%version-%release

%description spellchecker
Spellchecker package for SeaMonkey.

%package enigmail
Summary: GPG/PGP integration in SeaMonkey
Group: Networking/WWW
PreReq: coreutils %name = %serial:%version-%release
PreReq: %name-mail = %serial:%version-%release gnupg
Obsoletes: mozilla-enigmail < 1.8
Provides: mozilla-enigmail = 1.8
Requires(postun): %name = %serial:%version-%release

%description enigmail
GPG/PGP integration in SeaMonkey

%package plugins-common
Summary: SeaMonkey Plugins Common
Group: Networking/WWW
Obsoletes: mozilla-plugins-common < 1.8
Provides: mozilla-plugins-common = 1.8
Conflicts: mozilla-plugins-common < 1.8

%description plugins-common
SeaMonkey Plugins Common

%prep

%setup -q -n mozilla
tar -xz -C mailnews/extensions -f %SOURCE7

%patch4 -p1

#disable prefetch by default

%patch2 -p1


#build with system mozldap

%patch3 -p1

#homepage patch

#%patch7 -p1 -b .home-page

# gtk2 fonts rendering workaround

%patch8 -p1

# add ALT plugin dir

%patch113 -p1

# add run-mozilla patch

%patch114 -p1

# add enigmail

%patch131 -p1

# RH patch for less annoying default plugin

%patch150 -p1

# Mozilla patch for shorcuts in non-latin layout

%patch5 -p0

%build
# additional CA certificates
cat %SOURCE3 >> security/nss/lib/ckfw/builtins/certdata.txt
%make -C security/nss/lib/ckfw/builtins PERL=%_bindir/perl generate

rpath_link=`pwd`/dist/lib
export LDFLAGS="$LDFLAGS -Wl,-rpath,%seamonkey_home -Wl,-rpath-link,$rpath_link"
%add_optflags -Wno-non-virtual-dtor

autoconf_2.13
# build seamonkey
%undefine __libtoolize
export ac_cv_visibility_pragma=no
%configure \
   --disable-timeline \
   --disable-debug \
   --disable-debug-modules \
   --disable-debugger-info-modules \
   --disable-tests \
   --disable-pedantic \
   --disable-short-wchar \
   --disable-logging \
   --with-system-nspr \
   --with-system-ldap \
   --with-system-nss \
   --disable-freetype2 \
   --enable-xprint  \
   --enable-svg \
   --enable-svg-renderer=cairo \
   --enable-system-cairo \
   --enable-default-toolkit=gtk2 \
   --enable-crypto \
   --enable-mathml \
   --enable-bidi \
   --enable-optimize="%optflags" \
   --enable-reorder \
   --enable-strip-libs \
   --enable-cpp-rtti \
   --enable-cpp-exceptions \
   --disable-calendar \
   --enable-xft \
   --enable-canvas \
   --with-system-jpeg \
   --with-system-png \
   --with-system-zlib \
   --with-default-mozilla-five-home=%seamonkey_home \
   --with-user-appdir=.seamonkey \
   --enable-application=suite \
   --enable-extensions

sed -i "/NSS_LIBS/s at -lcrmf at -lcrmf -lnssutil3 at " config/autoconf.mk
%make_build

cd mailnews/extensions/enigmail
./makemake -r
%make_build
cd -

cp %SOURCE9 dist/bin/defaults/profile/chrome/

%install
%make_install DESTDIR=%buildroot install

for dir in %_libdir %_includedir %_datadir/idl
do
mv %buildroot/$dir/%seamonkey_version %buildroot/$dir/mozilla
ln -s mozilla %buildroot/$dir/%seamonkey_version
ln -s mozilla %buildroot/$dir/seamonkey
done

# Packages

for i in langenus regus deflenus xpcom browser;
do
%SOURCE1 --package $i --output-file %buildroot/seamonkey.list \
--package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
--install-dir %buildroot%seamonkey_home \
--install-root %seamonkey_home
done

# hack for correct enigmail installation

cat << EOF >> %buildroot%seamonkey_home/chrome/installed-chrome.txt
content,install,url,jar:resource:/chrome/enigmail.jar!/content/enigmail/
locale,install,url,jar:resource:/chrome/enigmail.jar!/locale/en-US/enigmail/
locale,install,url,jar:resource:/chrome/enigmail-en-US.jar!/locale/en-US/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin-tbird.jar!/skin/classic/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin.jar!/skin/modern/enigmail/
skin,install,url,jar:resource:/chrome/enigmail-skin.jar!/skin/classic/enigmail/
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/modern/enigmail/
skin,install,url,jar:resource:/chrome/enigmail.jar!/skin/classic/enigmail/
EOF
install -m 644 %SOURCE8 %buildroot%seamonkey_home/defaults/pref/enigmail.js
cp -arL dist/bin/components/*enig*     %buildroot%seamonkey_home/components/
cp -arL dist/bin/components/*ipc*      %buildroot%seamonkey_home/components/
cp -arL dist/bin/chrome/enigmail*.jar  %buildroot%seamonkey_home/chrome/

for i in mail psm chatzilla venkman inspector spellcheck enigmail
do
%SOURCE1 --package $i --output-file %buildroot/seamonkey-$i.list \
--package-file %_builddir/mozilla/xpinstall/packager/packages-unix \
--install-dir %buildroot%seamonkey_home \
--install-root %seamonkey_home
done

# install rebuild-databases.sh

install -m755 -D %SOURCE2 %buildroot%seamonkey_home/rebuild-databases.sh
%__subst s,/usr/lib,%_libdir,g %buildroot%seamonkey_home/rebuild-databases.sh
%__subst 's,MOZ_APPNAME=.*,MOZ_APPNAME=%name,' %buildroot%seamonkey_home/rebuild-databases.sh

# install firsttime.d

install -m755 -D %SOURCE4 %buildroot%_sysconfdir/firsttime.d/%name
%__subst s, at seamonkey_home at ,%seamonkey_home,g \
%buildroot%_sysconfdir/firsttime.d/%name

# install icons

install -D suite/branding/icons/gtk/default16.xpm \
%buildroot/%_miconsdir/%name.xpm
install -D suite/branding/icons/gtk/default.xpm \
%buildroot/%_iconsdir/%name.xpm
install -D suite/branding/icons/gtk/%name.png \
%buildroot/%_iconsdir/hicolor/128x128/apps/%name.png

# install search plugins

tar -C %buildroot/%seamonkey_home -xjf %SOURCE5

# install desktop menu

mkdir -p %buildroot/%_desktopdir
tar -C %buildroot/%_desktopdir -xjf %SOURCE6

# enigmail


# save original chrome

cp %buildroot%seamonkey_home/chrome/installed-chrome.txt  %buildroot%seamonkey_home/chrome/installed-chrome-orig.txt

%ifdef M40
# make devel library links
for i in gkgfx jsj mozjs gtkembedmoz gtkxtbin \
xpcom xpcom_compat xpcom_core msgbaseutil
do
ln -sf mozilla/lib$i.so %buildroot/%_libdir/lib$i.so
done
%endif
# fix pkgconfig
%__subst s at %name-%version at mozilla at  %buildroot/%_pkgconfigdir/seamonkey-{gtkmozembed,js,nspr,nss,plugin,xpcom}.pc
%__subst 's at libdir=.* at libdir=%_libdir/mozilla at ' %buildroot/%_pkgconfigdir/seamonkey-{gtkmozembed,js,nspr,nss,plugin,xpcom}.pc
%__subst 's at -L%_libdir/%name-%version at -L%_libdir/mozilla at g' %buildroot/%_bindir/seamonkey-config

%__subst 's, at npapidir at ,%browser_plugins_path,g' %buildroot/%_bindir/seamonkey

# build initial component and chrome registry

pushd %buildroot%seamonkey_home
LD_LIBRARY_PATH=%buildroot%seamonkey_home:%buildroot%_libdir \
MOZILLA_FIVE_HOME=%buildroot%seamonkey_home ./regxpcom
echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt
echo "locale,install,select,en-US" >> chrome/installed-chrome.txt
LD_LIBRARY_PATH=%buildroot%seamonkey_home:%buildroot%_libdir \
MOZILLA_FIVE_HOME=%buildroot%seamonkey_home ./regchrome

find . -type d -perm 0700 -exec chmod 755 {} \; || :
popd

for i in gtkmozembed js nspr nss plugin xpcom
do
ln -sf %name-$i.pc %buildroot%_pkgconfigdir/mozilla-$i.pc
done

cp %buildroot%seamonkey_home/mozilla-xremote-client %buildroot/%_bindir/seamonkey-xremote-client
%post
%update_menus
%update_desktopdb
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun
%postun_ldconfig
%clean_menus
%clean_desktopdb
if [ "$1" == "0" ]; then
   rm -rf %seamonkey_home/chrome/overlayinfo
   rm -f %seamonkey_home/chrome/*.rdf
   rm -f %seamonkey_home/component.reg
   rm -f %seamonkey_home/components/xpti*.dat
fi

%post mail
%update_menus
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun mail
%clean_menus
if [ "$1" == "0" ]; then
   %postun_ldconfig
   [ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:
fi

%post psm
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun psm
%postun_ldconfig
[ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:

%post irc
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun irc
if [ "$1" == "0" ]; then
   %postun_ldconfig
   [ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:
fi

%post js-debugger
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun js-debugger
%postun_ldconfig
[ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:

%post dom-inspector
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun dom-inspector
%postun_ldconfig
[ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:

%post spellchecker
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun spellchecker
%postun_ldconfig
[ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:

%post enigmail
%post_ldconfig
%seamonkey_home/rebuild-databases.sh

%postun enigmail
%postun_ldconfig
[ -x %seamonkey_home/rebuild-databases.sh ] && %seamonkey_home/rebuild-databases.sh ||:

%files -f %buildroot/seamonkey.list
%exclude /*.list
%_sysconfdir/firsttime.d/%name
%_bindir/%name
%_bindir/%name-xremote-client
%seamonkey_home/rebuild-databases.sh
%seamonkey_home/*.so
%seamonkey_home/searchplugins

%_datadir/applications/%name-alt-browser.desktop
%_miconsdir/%name.xpm
%_iconsdir/%name.xpm
%_iconsdir/hicolor/128x128/apps/%name.png
%dir %seamonkey_home/defaults/pref
%dir %seamonkey_home/defaults/profile/US
%dir %seamonkey_home/defaults/profile
%dir %seamonkey_home/defaults/wallet
%dir %seamonkey_home/defaults
%dir %seamonkey_home/chrome
%dir %seamonkey_home/components
%dir %seamonkey_home/res/html
%dir %seamonkey_home/res/samples
%dir %seamonkey_home/res/entityTables
%dir %seamonkey_home/searchplugins
%dir %seamonkey_home/res
%dir %_libdir/%name-%version
%seamonkey_home/res/throbber
%dir %_libdir/seamonkey
%dir %seamonkey_home
%dir %seamonkey_home/chrome/icons
%dir %seamonkey_home/chrome/icons/default
%dir %seamonkey_home/defaults/autoconfig
%dir %seamonkey_home/init.d
%dir %seamonkey_home/greprefs
%dir %seamonkey_home/isp
%dir %seamonkey_home/res/dtd
%dir %seamonkey_home/res/fonts
%_man1dir/*
%exclude %seamonkey_home/plugins/*
%exclude %seamonkey_home/defaults/messenger
%exclude %seamonkey_home/libmsgbaseutil.so
%exclude %seamonkey_home/defaults/pref/inspector.js
%seamonkey_home/chrome/reporter*
%seamonkey_home/chrome/installed-chrome-orig.txt
%config(noreplace) %seamonkey_home/chrome/installed-chrome.txt
%verify (not md5 mtime size) %seamonkey_home/components/compreg.dat
%verify (not md5 mtime size) %seamonkey_home/components/xpti.dat
%config (missingok)  %seamonkey_home/chrome/*.rdf
%ifdef M40
%_libdir/*.so
%endif

%files plugins-common
%dir %seamonkey_home
%dir %seamonkey_home/plugins
%seamonkey_home/plugins/*

%files devel
%_includedir/%name
%_includedir/mozilla
%_includedir/%name-%version
%seamonkey_home/xpcshell
%seamonkey_home/xpidl
%seamonkey_home/xpt_dump
%seamonkey_home/xpt_link
%_pkgconfigdir/*
%_bindir/%name-config
%_datadir/idl/%name
%_datadir/idl/mozilla
%_datadir/idl/%name-%version
%seamonkey_home/TestGtkEmbed
%dir %seamonkey_home/res/samples
%seamonkey_home/res/samples/*
%seamonkey_home/defaults/profile/US/chrome/*example.css
%seamonkey_home/chrome/embed-sample.jar

%files mail -f %buildroot/seamonkey-mail.list
%_desktopdir/%name-alt-mail.desktop
%seamonkey_home/chrome/messenger.jar
%seamonkey_home/components/libmailnews.so
%seamonkey_home/components/libmailview.so
%seamonkey_home/components/liblocalmail.so
%seamonkey_home/components/libmsg*.so
%seamonkey_home/defaults/messenger


%files psm -f %buildroot/seamonkey-psm.list

%files irc -f %buildroot/seamonkey-chatzilla.list
%seamonkey_home/chrome/chatzilla.jar
%seamonkey_home/chrome/icons/default/chatzilla*

%files spellchecker  -f %buildroot/seamonkey-spellcheck.list
%files js-debugger -f %buildroot/seamonkey-venkman.list
%files dom-inspector -f %buildroot/seamonkey-inspector.list
%seamonkey_home/chrome/inspector.manifest
%files enigmail -f %buildroot/seamonkey-enigmail.list
%seamonkey_home/chrome/enigmail*
%seamonkey_home/components/*enig*
%seamonkey_home/components/ipc.xpt
%seamonkey_home/defaults/pref/enigmail.js

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin