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