/[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 149792 - (hide annotations) (download)
Wed Sep 28 06:01:32 2011 UTC (12 years, 6 months ago) by fwang
Original Path: cauldron/mozilla-thunderbird-lightning/current/SPECS/mozilla-thunderbird-lightning.spec
File size: 3326 byte(s)
fix str fmt
1 ahmad 68164 %define name mozilla-thunderbird-lightning
2 ahmad 68159 %define oname lightning
3 fwang 132667 #fwang 1.0b5 only compatible with tb >= 5.0
4 fwang 149753 %define version 1.0b7
5     %define release %mkrel 1
6 ahmad 68164 %define epoch 1
7    
8 fwang 149753 %define thunderbird_version 7.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 ahmad 68343 # lightning doesn't offer lang packs, so we extract them from the upstream .xpi
22 fwang 132667 # $ wget ftp://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b5/linux/lightning.xpi
23 ahmad 68343 # $ unzip -d lightning lightning.xpi
24     # $ cd lightning/
25 fwang 132667 # $ tar cJf SOURCES/lightning-langpacks-1.0b5.tar.xz chrome/
26 ahmad 68343 # $ cp chrome.manifest SOURCES/
27 ahmad 68159 Source1: chrome.manifest
28 fwang 149753 Source2: lightning-langpacks-%{version}.tar.xz
29 fwang 132667 Source10: thunderbird-mozconfig
30 fwang 149792 Patch0: thunderbird-7.0-fix-str-fmt.patch
31 ahmad 68159 License: GPL
32     Group: Networking/WWW
33     Url: http://www.mozilla.org/projects/calendar/lightning/
34     Requires: mozilla-thunderbird >= 0:%{thunderbird_version}
35 fwang 132669 BuildRequires: autoconf2.1
36 fwang 132670 BuildRequires: cairo-devel >= 1.8.8
37 fwang 149792 BuildRequires: sqlite3-devel >= 3.7.5
38 fwang 132670 BuildRequires: yasm
39     BuildRequires: mesagl-devel
40     BuildRequires: gtk2-devel
41     BuildRequires: gzip
42     BuildRequires: python-devel
43     BuildRequires: libjpeg-devel
44 fwang 149792 BuildRequires: libpng-devel >= 2:1.4
45 fwang 132670 BuildRequires: nspr-devel >= 2:4.8.8
46     BuildRequires: nss-static-devel >= 2:3.12.10
47     BuildRequires: unzip
48     BuildRequires: zip
49     BuildRequires: zlib-devel
50     BuildRequires: libIDL-devel
51     BuildRequires: freetype2-devel
52     BuildRequires: xft2-devel
53     BuildRequires: libxt-devel
54     BuildRequires: hunspell-devel
55 fwang 149792 BuildRequires: dbus-glib-devel
56 ahmad 68159 Obsoletes: mozilla-lightning
57 ahmad 68164 Obsoletes: %{name} < %{epoch}:%{version}
58 ahmad 68159
59     %description
60 ahmad 68164 Calendar extension for Thunderbird.
61 ahmad 68159
62     %prep
63 fwang 149753 %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 132667 tar xvf %SOURCE2
95 ahmad 68159 cp -fr %SOURCE1 .
96     rm -f lightning.xpi
97     cp -f -r * %buildroot%{tbextdir}/%{lightning_appid}
98     cp -f -r %SOURCE1 %buildroot%{tbextdir}/%{lightning_appid}
99    
100     %clean
101     rm -rf $RPM_BUILD_ROOT
102    
103     %files
104     %defattr(644,root,root,755)
105 fwang 132667 %{tbextdir}/*

  ViewVC Help
Powered by ViewVC 1.1.30