Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 66d01c9df164f89eefec1f27f190f45d > files > 3

mozilla-thunderbird-lightning-1.2.1-1.mga1.src.rpm

%define name  mozilla-thunderbird-lightning
%define oname lightning
#fwang 1.2 only compatible with tb >= 10.0
%define version 1.2.1
%define release %mkrel 1
%define epoch   1

 %define thunderbird_version 10.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: ftp://releases.mozilla.org/pub/mozilla.org/calendar/%{oname}/releases/%{version}/source/%{oname}-%{version}.source.tar.bz2
Source1: ftp://releases.mozilla.org/pub/mozilla.org/calendar/%{oname}/releases/%{version}/linux/lightning.xpi
Source10: thunderbird-mozconfig
License: GPL
Group: Networking/WWW
Url: http://www.mozilla.org/projects/calendar/lightning/
Requires: mozilla-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:  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:	xft2-devel
BuildRequires:	libxt-devel
BuildRequires:	hunspell-devel
BuildRequires:	dbus-glib-devel
BuildRequires:	libalsa-devel
BuildRequires:	python
BuildRequires:	libnotify-devel
BuildRequires:	startup-notification-devel
BuildRequires:	libiw-devel
Obsoletes:      mozilla-lightning
Obsoletes:      %{name} < %{epoch}:%{version}

%description
Calendar extension for Thunderbird.

%prep
%setup -q -n comm-release -a1

cp %{SOURCE10} .mozconfig
cat >> .mozconfig << EOF
ac_add_options --host=%{_host}
ac_add_options --target=%{_target_platform}
EOF

%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

* Sun Feb 19 2012 doktor5000 <doktor5000> 1:1.2.1-1.mga1
+ Revision: 210848
- 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)
- sync changes from cauldron
  o don't call autoconf manually
  o sync BuildRequires with thunderbird, added BuildReqquires on alsa-devel,
    python, libnotify-devel, startup-notification-devel and libiw-devel
  o added requires exceptions for libxul.so, libxpcom.so and libmozalloc.so
  o fix installation, drop chrome.manifest standalone Source, use bundled
  o use bundled language packs, extracted from prebuilt upstream .xpi
  o remove string literal patch, already integrated upstream
- use macros for Source URLs more consistently
- use bundled libpng
- remove unneeded duplicate calendar-timezones@mozilla.org.xpi

* 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