%define mozdate DATE_20071122_0000_PDT Name: spicebird Version: 0.4 Release: 0.beta.1%{?dist} Summary: One platform for many collaboration needs Group: Applications/Internet License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: http://www.spicebird.com Source: mozilla_%{mozdate}.tar.bz2 Source1: spicebird-beta-%{version}.source.tar.bz2 Source2: patches_%{mozdate}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cairo-devel >= %{cairo_version} BuildRequires: libpng-devel, libjpeg-devel, gtk2-devel BuildRequires: zlib-devel, gzip, zip, unzip BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} BuildRequires: libIDL-devel BuildRequires: desktop-file-utils BuildRequires: freetype-devel BuildRequires: libXt-devel BuildRequires: libXrender-devel %define mozappdir %{_libdir}/spicebird-%{version} %description Spicebird is your one platform for many collaboration needs. It provides e-mail, calendaring and instant messaging with intuitive integration and unlimited extensibility. %prep %setup -q -n mozilla %setup -q -T -D -a 1 -n mozilla %setup -q -T -D -a 2 -n mozilla patches/patch.sh %build cp collab/config/mozconfig .mozconfig #MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-O2/-Os/' -e 's/-Wall//') #RPM_OPT_FLAGS="-Os -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector" #export RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param=ssp-buffer-size=4" export PREFIX='%{_prefix}' export LIBDIR='%{_libdir}' %ifarch ppc ppc64 s390 s390x %define moz_make_flags -j1 %else %define moz_make_flags %{?_smp_mflags} %endif #export LDFLAGS="-Wl,-rpath,%{mozappdir}" export MAKE="gmake %{moz_make_flags}" make -f client.mk build %install rm -rf $RPM_BUILD_ROOT #make -C collab/installer installer DESTDIR=$RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT make install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %changelog