/[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 68343 - (show annotations) (download)
Sat Mar 12 00:35:05 2011 UTC (13 years, 1 month ago) by ahmad
Original Path: cauldron/mozilla-thunderbird-lightning/current/SPECS/mozilla-thunderbird-lightning.spec
File size: 3017 byte(s)
- add the lang. packs for lightning-1.0b2; since there're no separate lang .packs
  we extract them from the upstream .xpi file

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

  ViewVC Help
Powered by ViewVC 1.1.30