1 |
|
2 |
%define name mozilla-thunderbird-lightning |
3 |
%define oname lightning |
4 |
#fwang 1.0b2 only compatible with tb >= 3.1 |
5 |
%define version 1.0b2 |
6 |
%define release %mkrel 9 |
7 |
%define epoch 1 |
8 |
|
9 |
%define thunderbird_version 3.1.7 |
10 |
%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\} |
11 |
%define lightning_appid \{e2fda1a4-762b-4020-b5ad-a41df1933103\} |
12 |
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid} |
13 |
|
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: chrome.manifest |
22 |
Source2: langpack-0.9.tar.bz2 |
23 |
Patch0: lightning-1.0b2-fix-str-fmt.patch |
24 |
Patch2: lightning-sunbird-1.0b1-fix-branding-nightly.patch |
25 |
Patch3: lightning-1.0b2-link.patch |
26 |
License: GPL |
27 |
Group: Networking/WWW |
28 |
Url: http://www.mozilla.org/projects/calendar/lightning/ |
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
30 |
Requires: mozilla-thunderbird >= 0:%{thunderbird_version} |
31 |
BuildRequires: doxygen |
32 |
BuildRequires: pkgconfig |
33 |
BuildRequires: jpeg-devel |
34 |
BuildRequires: png-devel |
35 |
BuildRequires: libIDL-devel |
36 |
BuildRequires: zip |
37 |
BuildRequires: tcsh |
38 |
BuildRequires: gtk+2-devel >= 2.2.0 |
39 |
BuildRequires: gnome-vfs2-devel |
40 |
BuildRequires: imagemagick |
41 |
BuildRequires: freetype2-devel |
42 |
BuildRequires: X11-devel |
43 |
BuildRequires: python-devel |
44 |
BuildRequires: nsinstall |
45 |
BuildRequires: libalsa-devel |
46 |
BuildRequires: libnotify-devel >= 0.4 |
47 |
BuildRequires: libiw-devel |
48 |
Obsoletes: mozilla-lightning |
49 |
Obsoletes: %{name} < %{epoch}:%{version} |
50 |
|
51 |
%description |
52 |
Calendar extension for Thunderbird. |
53 |
|
54 |
%prep |
55 |
%setup -q -n comm-1.9.2 |
56 |
%patch0 -p1 -b .str |
57 |
%patch3 -p0 -b .link |
58 |
|
59 |
%build |
60 |
CFLAGS=$(echo %optflags | %{__sed} -e 's/-O2/-Os/' -e 's/-fexceptions//') |
61 |
CFLAGS="$CFLAGS -fno-strict-aliasing" |
62 |
CXXFLAGS="$CFLAGS" |
63 |
RPM_OPT_FLAGS="$CFLAGS" |
64 |
export CFLAGS |
65 |
export CXXFLAGS |
66 |
export RPM_OPT_FLAGS |
67 |
|
68 |
%configure2_5x --host=%{_host} --target=%{_target_platform} \ |
69 |
--enable-application=calendar --enable-calendar --disable-pedantic \ |
70 |
--disable-debug --enable-official-branding --disable-crashreporter |
71 |
%make |
72 |
|
73 |
%install |
74 |
rm -rf %buildroot |
75 |
# Jar for the translation |
76 |
mkdir -p %buildroot%{tbextdir}/%{lightning_appid} |
77 |
mkdir -p mozilla/dist/xpi-stage/build |
78 |
cp mozilla/dist/xpi-stage/lightning.xpi mozilla/dist/xpi-stage/build/ |
79 |
cd mozilla/dist/xpi-stage/build |
80 |
unzip -n lightning.xpi |
81 |
#tar xjvf %SOURCE2 |
82 |
cp -fr %SOURCE1 . |
83 |
rm -f lightning.xpi |
84 |
cp -f -r * %buildroot%{tbextdir}/%{lightning_appid} |
85 |
cp -f -r %SOURCE1 %buildroot%{tbextdir}/%{lightning_appid} |
86 |
|
87 |
%clean |
88 |
rm -rf $RPM_BUILD_ROOT |
89 |
|
90 |
%files |
91 |
%defattr(644,root,root,755) |
92 |
%{tbextdir}/%{lightning_appid} |