%define name thunderbird-lightning %define oname lightning #fwang 1.8 only compatible with tb >= 16.0 %define version 1.9 %define release %mkrel 3 %define epoch 1 %define thunderbird_version 17.0 %define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\} %define lightning_appid \{e2fda1a4-762b-4020-b5ad-a41df1933103\} %define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid} %define _requires_exceptions libxul.so\\|libxpcom.so\\|libmozalloc.so Summary: Calendar extension for Thunderbird Name: %{name} Version: %{version} Release: %{release} Epoch: %{epoch} Source0: http://releases.mozilla.org/pub/mozilla.org/calendar/%{oname}/releases/%{version}/source/%{oname}-%{version}.source.tar.bz2 Source1: http://releases.mozilla.org/pub/mozilla.org/calendar/%{oname}/releases/%{version}/linux/lightning.xpi Source10: thunderbird-mozconfig Patch1: thunderbird-15-fix-cairo-build.patch Patch2: iceape-2.12-system-virtualenv.patch Patch3: firefox-17.0-nss-version.patch License: GPL Group: Office/Organizer Url: http://www.mozilla.org/projects/calendar/lightning/ Requires: thunderbird >= 0:%{thunderbird_version} BuildRequires: autoconf2.1 BuildRequires: cairo-devel >= 1.8.8 BuildRequires: sqlite3-devel >= 3.7.5 BuildRequires: yasm BuildRequires: mesagl-devel BuildRequires: gtk2-devel BuildRequires: gzip BuildRequires: python-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel >= 2:1.4 BuildRequires: nspr-devel >= 2:4.8.8 BuildRequires: nss-static-devel >= 2:3.12.10 BuildRequires: unzip BuildRequires: zip BuildRequires: zlib-devel BuildRequires: libIDL-devel BuildRequires: freetype2-devel BuildRequires: pkgconfig(xft) BuildRequires: libxt-devel BuildRequires: hunspell-devel BuildRequires: dbus-glib-devel BuildRequires: libalsa-devel BuildRequires: python BuildRequires: python-virtualenv BuildRequires: libnotify-devel BuildRequires: startup-notification-devel BuildRequires: libiw-devel Obsoletes: mozilla-lightning Obsoletes: %{name} < %{epoch}:%{version} Obsoletes: mozilla-thunderbird-lightning < %{epoch}:%{version}-%{release} Provides: mozilla-thunderbird-lightning = %{epoch}:%{version}-%{release} %description Calendar extension for Thunderbird. %prep %setup -q -n comm-beta -a1 %patch1 -p0 %patch2 -p1 %patch3 -p0 -d mozilla cp %{SOURCE10} .mozconfig cat >> .mozconfig << EOF ac_add_options --host=%{_host} ac_add_options --target=%{_target_platform} EOF # for patch2 (virtualenv) and patch3 (nss) pushd mozilla autoconf-2.13 popd autoconf-2.13 %build CFLAGS=$(echo %optflags | %{__sed} -e 's/-O2/-Os/' -e 's/-fexceptions//') CFLAGS="$CFLAGS -fno-strict-aliasing" CXXFLAGS="$CFLAGS" LDFLAGS="%ldflags" RPM_OPT_FLAGS="$CFLAGS" export CFLAGS export CXXFLAGS export RPM_OPT_FLAGS %make -f client.mk build STRIP=/bin/true %install rm -rf %buildroot # Jar for the translation mkdir -p %buildroot%{tbextdir}/%{lightning_appid} cp objdir-tb/mozilla/dist/xpi-stage/gdata-provider.xpi %buildroot%{tbextdir}/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}.xpi mkdir -p objdir-tb/mozilla/dist/xpi-stage/build cp objdir-tb/mozilla/dist/xpi-stage/lightning.xpi objdir-tb/mozilla/dist/xpi-stage/build/ cp -fr chrome chrome.manifest objdir-tb/mozilla/dist/xpi-stage/build/ cd objdir-tb/mozilla/dist/xpi-stage/build unzip -n lightning.xpi cp -f -r * %buildroot%{tbextdir}/%{lightning_appid} %files %defattr(644,root,root,755) %{tbextdir}/* %changelog * Thu Jan 24 2013 fwang <fwang> 1:1.9-3.mga3 + Revision: 391992 - update rpm group * Mon Jan 14 2013 umeabot <umeabot> 1:1.9-2.mga3 + Revision: 384558 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 11 2012 blino <blino> 1:1.9-1.mga3 + Revision: 329461 - run autoconf for virtualenv and nss patches - use firefox nss.m4 patch to fix nss version check - apply the nss/nspr check patch to mozilla/configure as well - 1.9 + luigiwalser <luigiwalser> - fix check for nspr and nss versions * Thu Oct 11 2012 fwang <fwang> 1:1.8-1.mga3 + Revision: 304584 - new version 1.8 * Wed Aug 29 2012 fwang <fwang> 1:1.7-1.mga3 + Revision: 285046 - br python-virtualenv - copy python patch - new version 1.7 - drop old tarball * Wed Jul 18 2012 fwang <fwang> 1:1.6-1.mga3 + Revision: 272222 - new version 1.6 * Sat Jun 16 2012 fwang <fwang> 1:1.5-2.mga3 + Revision: 260923 - bump tb req * Thu Jun 07 2012 fwang <fwang> 1:1.5-1.mga3 + Revision: 256753 - fix build with latest cairo - fix build - new version 1.5 * Tue Feb 28 2012 doktor5000 <doktor5000> 1:1.2.1-2.mga2 + Revision: 215813 - remove unneeded duplicate calendar-timezones@mozilla.org.xpi - remove unused string literal patch, already integrated upstream - use macros for Source URLs more consistently * Wed Feb 22 2012 fwang <fwang> 1:1.2.1-1.mga2 + Revision: 211781 - fix tar dir - new version 1.2.1 o fixes https://bugzilla.mozilla.org/show_bug.cgi?id=722635 (MODIFICATION_FAILED when writing to the Oracle stbeehive caldav server) * Wed Feb 01 2012 fwang <fwang> 1:1.2-1.mga2 + Revision: 203832 - new version 1.2 * Sun Jan 22 2012 fwang <fwang> 1:1.1.1-2.mga2 + Revision: 199550 - fix install * Sun Jan 22 2012 fwang <fwang> 1:1.1.1-1.mga2 + Revision: 199530 - new version 1.1 * Sun Dec 25 2011 fwang <fwang> 1:1.1-3.mga2 + Revision: 187366 - real obsolete * Sat Dec 24 2011 fwang <fwang> 1:1.1-2.mga2 + Revision: 187218 - rename spec file - rename to thunderbird * Wed Dec 21 2011 fwang <fwang> 1:1.1-1.mga2 + Revision: 185449 - new version 1.1 - drop chrome.manifest standalone Source, use bundled - use bundled language packs, extracted from prebuilt upstream .xpi * Wed Sep 28 2011 fwang <fwang> 1:1.0b7-1.mga2 + Revision: 149796 - added BuildRequires on alsa-devel, python, libnotify-devel, libiw-devel and startup-notification-devel - added BuildRequire on alsa-devel - fix string format issue - 1.0 b7 - added requires exceptions for shared mozilla libraries libxul.so, libxpcom.so and libmozalloc.so - sync BuildRequires with thunderbird, added BuildRequires on cairo-devel, sqlite3-devel, hunspell-devel, dbus-glib-devel, zlib-devel, nss-static-devel, nspr-devel, python-devel - added BuildRequires on autoconf2.1 - don't call autoconf manually, not needed - new version 1.0 b5 (compaitible with tb5, some synched from fedora) * Sat Mar 12 2011 ahmad <ahmad> 1:1.0b2-10.mga1 + Revision: 68343 - add the lang. packs for lightning-1.0b2; since there're no separate lang .packs we extract them from the upstream .xpi file * Fri Mar 11 2011 ahmad <ahmad> 1:1.0b2-9.mga1 + Revision: 68164 - add an epcoh to obsolete mozilla-thunderbird-lightning that was built from thunderbird .src.rpm - imported package mozilla-thunderbird-lightning