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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 199530 - (hide annotations) (download)
Sun Jan 22 07:03:38 2012 UTC (12 years, 2 months ago) by fwang
File size: 3304 byte(s)
new version 1.1
1 fwang 187218 %define name thunderbird-lightning
2 ahmad 68159 %define oname lightning
3 fwang 185449 #fwang 1.1 only compatible with tb >= 9.0
4 fwang 199530 %define version 1.1.1
5     %define release %mkrel 1
6 ahmad 68164 %define epoch 1
7    
8 fwang 185449 %define thunderbird_version 9.0
9 ahmad 68159 %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 fwang 132673 %define _requires_exceptions libxul.so\\|libxpcom.so\\|libmozalloc.so
14    
15 ahmad 68159 Summary: Calendar extension for Thunderbird
16     Name: %{name}
17     Version: %{version}
18     Release: %{release}
19 ahmad 68164 Epoch: %{epoch}
20 fwang 149753 Source0: http://releases.mozilla.org/pub/mozilla.org/calendar/%oname/releases/%version/source/%{oname}-%version.source.tar.bz2
21 fwang 199530 Source1: ftp://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/%{version}/linux/lightning.xpi
22 fwang 132667 Source10: thunderbird-mozconfig
23 fwang 149792 Patch0: thunderbird-7.0-fix-str-fmt.patch
24 ahmad 68159 License: GPL
25     Group: Networking/WWW
26     Url: http://www.mozilla.org/projects/calendar/lightning/
27 fwang 187218 Requires: thunderbird >= 0:%{thunderbird_version}
28 fwang 132669 BuildRequires: autoconf2.1
29 fwang 132670 BuildRequires: cairo-devel >= 1.8.8
30 fwang 149792 BuildRequires: sqlite3-devel >= 3.7.5
31 fwang 132670 BuildRequires: yasm
32     BuildRequires: mesagl-devel
33     BuildRequires: gtk2-devel
34     BuildRequires: gzip
35     BuildRequires: python-devel
36     BuildRequires: libjpeg-devel
37 fwang 149792 BuildRequires: libpng-devel >= 2:1.4
38 fwang 132670 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 fwang 199530 BuildRequires: pkgconfig(xft)
46 fwang 132670 BuildRequires: libxt-devel
47     BuildRequires: hunspell-devel
48 fwang 149792 BuildRequires: dbus-glib-devel
49 fwang 149796 BuildRequires: libalsa-devel
50     BuildRequires: python
51     BuildRequires: libnotify-devel
52     BuildRequires: startup-notification-devel
53     BuildRequires: libiw-devel
54 ahmad 68159 Obsoletes: mozilla-lightning
55 ahmad 68164 Obsoletes: %{name} < %{epoch}:%{version}
56 fwang 187366 Obsoletes: mozilla-thunderbird-lightning < %{epoch}:%{version}-%{release}
57     Provides: mozilla-thunderbird-lightning = %{epoch}:%{version}-%{release}
58 ahmad 68159
59     %description
60 ahmad 68164 Calendar extension for Thunderbird.
61 ahmad 68159
62     %prep
63 fwang 199530 %setup -q -n comm-release
64 fwang 149792 %patch0 -p1
65 fwang 132667 cp %{SOURCE10} .mozconfig
66     cat >> .mozconfig << EOF
67     ac_add_options --host=%{_host}
68     ac_add_options --target=%{_target_platform}
69     EOF
70 ahmad 68159
71     %build
72     CFLAGS=$(echo %optflags | %{__sed} -e 's/-O2/-Os/' -e 's/-fexceptions//')
73     CFLAGS="$CFLAGS -fno-strict-aliasing"
74     CXXFLAGS="$CFLAGS"
75 fwang 132667 LDFLAGS="%ldflags"
76 ahmad 68159 RPM_OPT_FLAGS="$CFLAGS"
77     export CFLAGS
78     export CXXFLAGS
79     export RPM_OPT_FLAGS
80    
81 fwang 132667 %make -f client.mk build STRIP=/bin/true
82 ahmad 68159
83     %install
84     rm -rf %buildroot
85     # Jar for the translation
86     mkdir -p %buildroot%{tbextdir}/%{lightning_appid}
87 fwang 132667 cp objdir-tb/mozilla/dist/xpi-stage/calendar-timezones.xpi %buildroot%{tbextdir}/calendar-timezones@mozilla.org.xpi
88     cp objdir-tb/mozilla/dist/xpi-stage/gdata-provider.xpi %buildroot%{tbextdir}/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}.xpi
89    
90     mkdir -p objdir-tb/mozilla/dist/xpi-stage/build
91     cp objdir-tb/mozilla/dist/xpi-stage/lightning.xpi objdir-tb/mozilla/dist/xpi-stage/build/
92     cd objdir-tb/mozilla/dist/xpi-stage/build
93 ahmad 68159 unzip -n lightning.xpi
94 fwang 199530 unzip -n %SOURCE1
95 ahmad 68159 rm -f lightning.xpi
96     cp -f -r * %buildroot%{tbextdir}/%{lightning_appid}
97 fwang 199530 cp -f -r chrome.manifest %buildroot%{tbextdir}/%{lightning_appid}
98 ahmad 68159
99     %clean
100     rm -rf $RPM_BUILD_ROOT
101    
102     %files
103     %defattr(644,root,root,755)
104 fwang 132667 %{tbextdir}/*

  ViewVC Help
Powered by ViewVC 1.1.30