diff --git a/seamonkey.spec b/seamonkey.spec index 1bdfc72..b39dafa 100644 --- a/seamonkey.spec +++ b/seamonkey.spec @@ -5,9 +5,8 @@ %define debug 0 %define system_png 0 -%define pkg_dir comm-release Name: seamonkey -Version: 2.38 +Version: 2.49.3 Release: 1mamba Summary: Web-browser, e-mail, newsgroup client, IRC chat client, HTML editor Group: Graphical Desktop/Applications/Internet @@ -40,36 +39,42 @@ 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: firefox-devel BuildRequires: glibc-devel -BuildRequires: hunspell-it +BuildRequires: libX11-devel +BuildRequires: libXcomposite-devel +BuildRequires: libXdamage-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libXrender-devel +BuildRequires: libXt-devel BuildRequires: libalsa-devel BuildRequires: libatk-devel -BuildRequires: libbonobo-devel BuildRequires: libcairo-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel +BuildRequires: libffi-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel +BuildRequires: libfribidi-devel BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel -BuildRequires: libgnome-devel -BuildRequires: libgnome-vfs-devel BuildRequires: libgtk-devel +BuildRequires: libgtk2-devel BuildRequires: libhunspell-devel +BuildRequires: libicu-devel BuildRequires: libjpeg-devel BuildRequires: libnspr-devel BuildRequires: libnss-devel BuildRequires: libpango-devel -BuildRequires: libpng-devel -BuildRequires: libpopt-devel BuildRequires: libsqlite-devel +BuildRequires: libstartup-notification-devel BuildRequires: libstdc++6-devel -BuildRequires: libX11-devel -BuildRequires: libXrender-devel -BuildRequires: libXt-devel +BuildRequires: libvpx-devel +BuildRequires: libxcb-devel BuildRequires: libz-devel -BuildRequires: ORBit2-devel +BuildRequires: mozldap-devel ## AUTOBUILDREQ-END BuildRequires: coreutils BuildRequires: hunspell-it @@ -103,32 +108,35 @@ 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} +%setup -q -c -T +#:<< ___EOF #-D -T -#:<< __EOF +tar xf %{SOURCE0} || true +shopt -s dotglob nullglob +mv %{name}-%{version}/* . +rmdir %{name}-%{version} %define _use_internal_dependency_generator 0 -%define __find_provides %{_builddir}/seamonkey/find_provides.sh -cat > %{_builddir}/%{name}/find_provides.sh <<_EOF +%define __find_provides %{_builddir}/seamonkey-%{version}/find_provides.sh +cat > %{_builddir}/%{name}-%{version}/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 +chmod +x %{_builddir}/seamonkey-%{version}/find_provides.sh -%define __find_requires %{_builddir}/seamonkey/find_requires.sh -cat > %{_builddir}/%{name}/find_requires.sh <<_EOF +%define __find_requires %{_builddir}/seamonkey-%{version}/find_requires.sh +cat > %{_builddir}/%{name}-%{version}/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 +chmod +x %{_builddir}/%{name}-%{version}/find_requires.sh -cd %{pkg_dir} #%patch0 -p0 #%patch1 -p0 #( @@ -148,60 +156,60 @@ cd %{pkg_dir} # 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 +#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 @@ -220,77 +228,81 @@ EOF # --disable-necko-wifi Disable necko wifi scanner %build +mkdir -p moz-build +cd moz-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 +export MOZILLA_OFFICIAL=1 -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`" +../configure \ + --enable-application="suite" \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --enable-release \ + --enable-gold \ + --enable-pie \ + --enable-optimize="-O2" \ + --enable-update-channel=release \ + --with-distribution-id="%{distroname}" \ + --with-system-zlib \ + --with-system-bz2 \ + --with-system-icu \ + --with-system-jpeg \ + --with-system-libvpx \ + --with-system-nspr \ + --with-system-nss \ + --enable-system-hunspell \ + --enable-system-sqlite \ + --enable-system-ffi \ + --enable-alsa \ + --enable-jack \ + --enable-startup-notification \ + --enable-crashreporter \ + --disable-updater \ + --disable-elf-hack \ + --enable-accessibility \ + --enable-extensions=default \ + --disable-strip + +# --enable-application=suite \ +# --with-user-appdir=.firefox \ +# --enable-official-branding \ +# --enable-rust-simd \ + +#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`" + +%make #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 +cd moz-build +#%ifarch %{ix86} +#cd obj-i686-pc-linux-gnu +#%else +#cd obj-%{_target_cpu}-unknown-linux-gnu +#%endif -DESTDIR=%{buildroot} make install MOZ_SERVICES_SYNC="1" +DESTDIR=%{buildroot} make install MOZ_SERVICES_SYNC="1" INSTALL_SDK= + +#echo > %{name}.lang -echo > ../%{name}.lang %if %build_langpack +install -d %{buildroot}%{firefoxappdir}/browser/extensions mkdir -p %{buildroot}%{seadir}/extensions -install -d seamonkey-langpacks && tar -C seamonkey-langpacks -xjf %{SOURCE7} +mkdir -p 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 + lang=$(basename $langpack .langpack.xpi | sed "s|seamonkey-%{version}\.||") + install -Dm644 $langpack \ + %{buildroot}%{seadir}/extensions/langpack-$lang@seamonkey.mozilla.org.xpi 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 @@ -317,6 +329,7 @@ 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 -d %{buildroot}%{seadir}/components install -pm 644 dist/bin/components/*.xpt \ %{buildroot}%{seadir}/components @@ -324,23 +337,25 @@ 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 +#rm -rf %{buildroot}%{seadir}/defaults/profile/bookmarks.html +install -D -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/ +#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 +#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 -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} -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/ +rm -rf %{buildroot}%{seadir}/{dictionaries,hyphenation} +ln -s %{_datadir}/myspell %{buildroot}%{seadir}/dictionaries +ln -s %{_datadir}/hyphen %{buildroot}%{seadir}/hyphenation %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -358,25 +373,28 @@ ln -sf %{_datadir}/myspell/*.{aff,dic} %{buildroot}%{seadir}/dictionaries/ %files %defattr(-,root,root) %{_bindir}/seamonkey -%dir %{_datadir}/idl/seamonkey-%{version} -%{_datadir}/idl/seamonkey-%{version}/*.idl +#%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 +#%{_mandir}/man1/seamonkey.1* +%doc mozilla/LEGAL +%doc mozilla/LICENSE -%files devel -%defattr(-,root,root) -%dir %{_includedir}/seamonkey-%{version} -%{_includedir}/seamonkey-%{version}/* -%dir %{_libdir}/seamonkey-devel-%{version} -%{_libdir}/seamonkey-devel-%{version}/* +#%files devel +#%defattr(-,root,root) +#%dir %{_includedir}/seamonkey-%{version} +#%{_includedir}/seamonkey-%{version}/* +#%dir %{_libdir}/seamonkey-devel-%{version} +#%{_libdir}/seamonkey-devel-%{version}/* +#%doc mozilla/README.txt %changelog +* Sat Jul 07 2018 Silvan Calarco 2.49.3-1mamba +- update to 2.49.3 + * Thu Oct 08 2015 Silvan Calarco 2.38-1mamba - update to 2.38