%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.33.1 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 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-autoupdate 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 %{_prefix}/lib/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" \ NSS_LIBS="`pkg-config --libs nss` -lcrmf" \ NSS_CFLAGS="`pkg-config --cflags nss`" #MOZ_SERVICES_SYNC="1" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %ifarch %{ix86} cd %{pkg_dir}/obj-i686-pc-linux-gnu %else cd %{pkg_dir}/obj-%{_target_cpu}-unknown-linux-gnu %endif 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 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 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 dist/bin/seamonkey %{buildroot}%{seadir}/seamonkey install -pm 755 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 * Sat Apr 18 2015 Silvan Calarco 2.33.1-1mamba - update to 2.33.1 * Sun Oct 26 2014 Automatic Build System 2.30-1mamba - automatic version update by autodist * Fri Sep 19 2014 Automatic Build System 2.29-1mamba - automatic version update by autodist * Mon Jul 15 2013 Automatic Build System 2.19-1mamba - automatic version update by autodist * Mon Apr 15 2013 Automatic Build System 2.17.1-1mamba - automatic version update by autodist * Sat Apr 13 2013 Silvan Calarco 2.17-2mamba - fix to avoid providing libxul.so and others in seamonkey-devel * Thu Apr 11 2013 Automatic Build System 2.17-1mamba - update to 2.17 * Tue Nov 13 2012 Automatic Build System 2.13.2-1mamba - update to 2.13.2 * Sat Sep 15 2012 Automatic Build System 2.12.1-1mamba - update to 2.12.1 * Tue Apr 10 2012 Automatic Build System 2.8-1mamba - automatic version update by autodist * Mon Nov 28 2011 Automatic Build System 2.5-1mamba - automatic update by autodist * Sat Oct 01 2011 Automatic Build System 2.4.1-1mamba - automatic version update by autodist * Fri Sep 09 2011 Automatic Build System 2.3.3-1mamba - automatic version update by autodist * Thu Aug 25 2011 Automatic Build System 2.3.1-1mamba - automatic version update by autodist * Tue Aug 16 2011 Automatic Build System 2.3-1mamba - automatic version update by autodist * Fri Jul 22 2011 Automatic Build System 2.2-1mamba - update to 2.2 * Fri Oct 29 2010 Automatic Build System 2.0.10-1mamba - automatic update to 2.0.10 by autodist * Thu Oct 28 2010 Automatic Build System 2.0.9-1mamba - automatic update to 2.0.9 by autodist * Mon Oct 04 2010 Automatic Build System 2.0.8-1mamba - automatic update to 2.0.8 by autodist * Thu Sep 09 2010 Automatic Build System 2.0.7-1mamba - automatic update to 2.0.7 by autodist * Mon Aug 09 2010 Silvan Calarco 2.0.6-2mamba - port from milestone1-contrib - added option --with-system-libxul - disabled jprof because of missing requirement * Sun Jul 25 2010 gil 2.0.6-1mamba - update to 2.0.6 * Sun Jul 11 2010 gil 2.0.5-1mamba - update to 2.0.5 * Fri Apr 02 2010 gil 2.0.4-1mamba - update to 2.0.4 * Tue Feb 23 2010 gil 2.0.3-1mamba - update to 2.0.3 * Sat Jan 16 2010 gil 2.0.2-1mamba - update to 2.0.2 * Sun Dec 20 2009 gil 2.0.1-2mamba - edit bookmarks.html * Sat Dec 19 2009 gil 2.0.1-1mamba - update to 2.0.1 * Tue Nov 17 2009 gil 2.0-1mamba - update to 2.0 * Mon Sep 14 2009 gil 1.1.18-2mamba - rebuilt * Sat Sep 05 2009 gil 1.1.18-1mamba - update to 1.1.18 * Fri Jul 03 2009 gil 1.1.17-2mamba - rebuilt * Wed Jul 01 2009 gil 1.1.17-1mamba - update to 1.1.17 * Mon May 25 2009 gil 1.1.16-1mamba - update to 1.1.16 - added italian language and hunspell(-it) support * Mon Sep 29 2008 gil 1.1.12-1mamba - update to 1.1.12 * Sat May 03 2008 gil 1.1.9-1mamba - package created by autospec