/[packages]/cauldron/thunderbird-lightning/current/SPECS/thunderbird-lightning.spec
ViewVC logotype

Contents of /cauldron/thunderbird-lightning/current/SPECS/thunderbird-lightning.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203832 - (show annotations) (download)
Wed Feb 1 04:22:10 2012 UTC (8 years, 9 months ago) by fwang
File size: 3228 byte(s)
new version 1.2
1 %define name thunderbird-lightning
2 %define oname lightning
3 #fwang 1.2 only compatible with tb >= 10.0
4 %define version 1.2
5 %define release %mkrel 1
6 %define epoch 1
7
8 %define thunderbird_version 10.0
9 %define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
10 %define lightning_appid \{e2fda1a4-762b-4020-b5ad-a41df1933103\}
11 %define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}
12
13 %define _requires_exceptions libxul.so\\|libxpcom.so\\|libmozalloc.so
14
15 Summary: Calendar extension for Thunderbird
16 Name: %{name}
17 Version: %{version}
18 Release: %{release}
19 Epoch: %{epoch}
20 Source0: http://releases.mozilla.org/pub/mozilla.org/calendar/%oname/releases/%version/source/%{oname}-%version.source.tar.bz2
21 Source1: ftp://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/%{version}/linux/lightning.xpi
22 Source10: thunderbird-mozconfig
23 Patch0: thunderbird-7.0-fix-str-fmt.patch
24 License: GPL
25 Group: Networking/WWW
26 Url: http://www.mozilla.org/projects/calendar/lightning/
27 Requires: thunderbird >= 0:%{thunderbird_version}
28 BuildRequires: autoconf2.1
29 BuildRequires: cairo-devel >= 1.8.8
30 BuildRequires: sqlite3-devel >= 3.7.5
31 BuildRequires: yasm
32 BuildRequires: mesagl-devel
33 BuildRequires: gtk2-devel
34 BuildRequires: gzip
35 BuildRequires: python-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libpng-devel >= 2:1.4
38 BuildRequires: nspr-devel >= 2:4.8.8
39 BuildRequires: nss-static-devel >= 2:3.12.10
40 BuildRequires: unzip
41 BuildRequires: zip
42 BuildRequires: zlib-devel
43 BuildRequires: libIDL-devel
44 BuildRequires: freetype2-devel
45 BuildRequires: pkgconfig(xft)
46 BuildRequires: libxt-devel
47 BuildRequires: hunspell-devel
48 BuildRequires: dbus-glib-devel
49 BuildRequires: libalsa-devel
50 BuildRequires: python
51 BuildRequires: libnotify-devel
52 BuildRequires: startup-notification-devel
53 BuildRequires: libiw-devel
54 Obsoletes: mozilla-lightning
55 Obsoletes: %{name} < %{epoch}:%{version}
56 Obsoletes: mozilla-thunderbird-lightning < %{epoch}:%{version}-%{release}
57 Provides: mozilla-thunderbird-lightning = %{epoch}:%{version}-%{release}
58
59 %description
60 Calendar extension for Thunderbird.
61
62 %prep
63 %setup -q -n comm-beta -a1
64 cp %{SOURCE10} .mozconfig
65 cat >> .mozconfig << EOF
66 ac_add_options --host=%{_host}
67 ac_add_options --target=%{_target_platform}
68 EOF
69
70 %build
71 CFLAGS=$(echo %optflags | %{__sed} -e 's/-O2/-Os/' -e 's/-fexceptions//')
72 CFLAGS="$CFLAGS -fno-strict-aliasing"
73 CXXFLAGS="$CFLAGS"
74 LDFLAGS="%ldflags"
75 RPM_OPT_FLAGS="$CFLAGS"
76 export CFLAGS
77 export CXXFLAGS
78 export RPM_OPT_FLAGS
79
80 %make -f client.mk build STRIP=/bin/true
81
82 %install
83 rm -rf %buildroot
84 # Jar for the translation
85 mkdir -p %buildroot%{tbextdir}/%{lightning_appid}
86 cp objdir-tb/mozilla/dist/xpi-stage/calendar-timezones.xpi %buildroot%{tbextdir}/calendar-timezones@mozilla.org.xpi
87 cp objdir-tb/mozilla/dist/xpi-stage/gdata-provider.xpi %buildroot%{tbextdir}/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}.xpi
88
89 mkdir -p objdir-tb/mozilla/dist/xpi-stage/build
90 cp objdir-tb/mozilla/dist/xpi-stage/lightning.xpi objdir-tb/mozilla/dist/xpi-stage/build/
91 cp -fr chrome chrome.manifest objdir-tb/mozilla/dist/xpi-stage/build/
92 cd objdir-tb/mozilla/dist/xpi-stage/build
93 unzip -n lightning.xpi
94 cp -f -r * %buildroot%{tbextdir}/%{lightning_appid}
95
96 %files
97 %defattr(644,root,root,755)
98 %{tbextdir}/*

  ViewVC Help
Powered by ViewVC 1.1.28