Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package evolution
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: jefftsai
      9 #
     10 Name:         evolution
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.8.1.1
     14 Release:      1
     15 Distribution: java-desktop-system
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      Evolution
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.8/%{name}-%{version}.tar.bz2
     19 #date:2006-12-26 bugzilla:389664 owner:jyu_mit type:bug
     20 Patch1:       evolution-01-pltlk-version.diff
     21 # date:2005-01-01 bugzilla:none owner:jeff type:branding 
     22 Patch2:       evolution-02-menu-entry.diff
     23 # date:2005-12-21 bugzilla:319376 owner:jeff type:bug
     24 Patch3:       evolution-03-display-mail.diff
     25 # date:2006-09-28 bugzilla: 355919 owner: Simon Zheng type: bug
     26 Patch4:       evolution-04-pixmap-new.diff
     27 # date:2006-05-28 bugzilla: 344728 owner: Irene Huang type: bug
     28 Patch5:       evolution-05-kerberos.diff
     29 # date:2005-10-10 bugzilla:none owner:jeff type:bug
     30 Patch6:       evolution-06-solaris-sed.diff
     31 # date:2006-10-24 bugzilla:364618 owner:jyu_mit type:bug
     32 Patch7:	      evolution-07-charset.diff
     33 # date:2006-12-26 bugzilla:389668 bugster:6504980 owner:jyu_mit type:bug
     34 Patch8:	      evolution-08-memo.diff
     35 # date:2007-01-09 bugzilla:394579 bugster:6510008 owner:jedywang type:bug
     36 Patch9:       evolution-09-awk.diff
     37 URL:          http://www.gnome.org
     38 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     39 Docdir:       %{_defaultdocdir}/evolution
     40 Autoreqprov:  on
     41 Prereq:       /sbin/ldconfig
     42 Prereq:       scrollkeeper
     43 Prereq:       sh-utils
     44 Prereq:       GConf
     45 
     46 %define major_version 2.8
     47 
     48 %define GConf_version 2.5.0
     49 %define gtkhtml_version 3.2
     50 %define gnome_pilot_version 2.0.10
     51 %define libgnomeui_version 2.4.0
     52 %define scrollkeeper_version 0.3.11
     53 %define gtk_doc_version 1.1
     54 %define evolution_data_server_version 1.0.0
     55 
     56 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     57 BuildRequires: gtkhtml-devel >= %{gtkhtml_version}
     58 BuildRequires: GConf-devel >= %{GConf_version}
     59 BuildRequires: gnome-pilot-devel >= %{gnome_pilot_version}
     60 BuildRequires: evolution-data-server-devel >= %{evolution_data_server_version}
     61 BuildRequires: firefox
     62 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     63 BuildRequires: gtk-doc >= %{gtk_doc_version}
     64 BuildRequires: intltool
     65 BuildRequires: bison
     66 Requires:      libgnomeui >= %{libgnomeui_version}
     67 Requires:      gtkhtml >= %{gtkhtml_version}
     68 Requires:      GConf >= %{GConf_version}
     69 Requires:      gnome-pilot >= %{gnome_pilot_version}
     70 Requires:      evolution-data-server >= %{evolution_data_server_version}
     71 Requires:      firefox
     72 Requires:      scrollkeeper >= %{scrollkeeper_version}
     73 
     74 %description
     75 Evolution is a mail, calendar and addressbook client for the GNOME Desktop
     76 
     77 %package devel
     78 Summary:      Development Evolution Libraries
     79 Group:        System/GUI/GNOME
     80 Autoreqprov:  on
     81 Requires:     %name = %version
     82 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     83 BuildRequires: GConf-devel >= %{GConf_version}
     84 BuildRequires: gtkhtml-devel >= %{gtkhtml_version}
     85 BuildRequires: evolution-data-server-devel >= %{evolution_data_server_version}
     86 
     87 %description devel
     88 This package contains the development libraries for Evolution, the GNOME mail, calendar
     89 and addressbook client.
     90 
     91 %package pilot
     92 Summary:      Pilot support for Evolution
     93 Group:        System/GUI/GNOME
     94 Autoreqprov:  on
     95 Requires:     %name = %version
     96 BuildRequires: gnome-pilot-devel >= %{gnome_pilot_version}
     97 
     98 %description pilot
     99 This package contains the pilot support for Evolution, the GNOME mail, calendar and
    100 addressbook client, allowing you to synchronize your Palm with Evolution.
    101 
    102 %prep
    103 %setup -q
    104 %patch1 -p0
    105 %patch2 -p0
    106 %patch3 -p0
    107 %patch4 -p0
    108 %patch5 -p0
    109 %patch6 -p0
    110 %patch7 -p0
    111 %patch8 -p0
    112 %patch9 -p0
    113 
    114 %build
    115 
    116 %ifos linux
    117 %define ldap_option --with-openldap=%{_prefix}
    118 %define krb5_option --with-krb5=%{_prefix}
    119 %define nss_libs %{_libdir}/firefox
    120 %define nspr_libs %{_libdir}/firefox
    121 %define nss_includes %{_includedir}/firefox/nss
    122 %define nspr_includes %{_includedir}/firefox/nspr
    123 %else
    124 %define ldap_option --with-sunldap=%{_prefix}
    125 %define krb5_option --with-krb5=%{_prefix}
    126 %define nss_libs %{_libdir}/mps
    127 %define nspr_libs %{_libdir}/mps
    128 %define nss_includes %{_includedir}/mps
    129 %define nspr_includes %{_includedir}/mps
    130 %endif
    131 %define pilot_option --enable-pilot-conduits=yes --with-pisock=yes
    132 
    133 export LDFLAGS="$LDFLAGS -L%{nss_libs} -R%{nss_libs} -L%{nspr_libs} -R%{nspr_libs}"
    134 export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -I%{nss_includes} -I%{nspr_includes}" 
    135 
    136 aclocal $ACLOCAL_FLAGS
    137 libtoolize --force
    138 glib-gettextize --force --copy
    139 intltoolize --force --automake
    140 autoheader
    141 automake -a -f -c --gnu
    142 autoconf
    143 ./configure --prefix=%{_prefix}						\
    144 	    --libexecdir=%{_libexecdir}					\
    145 	    --sysconfdir=%{_sysconfdir}					\
    146 	    --localstatedir=/var					\
    147 	    --enable-default-binary					\
    148 	    --enable-nss=yes						\
    149 	    --enable-smime=yes						\
    150 	    --enable-nntp=yes						\
    151             %pilot_option						\
    152             %ldap_option						\
    153 	    --with-nss-includes=%{nss_includes}				\
    154             --with-nss-libs=%{nss_libs}					\
    155 	    --with-nspr-includes=%{nspr_includes}			\
    156             --with-nspr-libs=%{nspr_libs}				\
    157 	    --with-krb4=%{_prefix}					\
    158 	    %krb5_option
    159 
    160 make
    161 
    162 %install
    163 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
    164 make -i install DESTDIR=$RPM_BUILD_ROOT
    165 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
    166 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
    167 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
    168 
    169 %clean
    170 rm -rf $RPM_BUILD_ROOT
    171 
    172 %post
    173 /sbin/ldconfig
    174 for i in C zh_CN zh_TW ko_KR ja_JP de_DE es_ES fr_FR it_IT sv_SE ; do
    175         langtag=$i
    176         [ ${i:0:2} == "zh" ] || langtag=${i:0:2}
    177         [ -e  %{_datadir}/omf/evolution/evolution-2.0-$langtag.omf ] && \
    178         env LANG=$i LC_ALL=$i scrollkeeper-install -q %{_datadir}/omf/evolution/evolution-2.0-$langtag.omf
    179 done
    180 scrollkeeper-update -q
    181 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    182 SCHEMAS="apps_evolution_addressbook-%{major_version}.schemas apps_evolution_calendar-%{major_version}.schemas apps_evolution_shell-%{major_version}.schemas evolution-mail-%{major_version}.schemas"
    183 for S in $SCHEMAS; do
    184         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    185 done
    186 
    187 %postun
    188 /sbin/ldconfig
    189 scrollkeeper-update -q
    190 
    191 %files
    192 %defattr (-, root, root)
    193 %doc AUTHORS COPYING ChangeLog NEWS README
    194 %{_bindir}/*
    195 %{_libexecdir}/evolution/%{major_version}/*
    196 %{_libdir}/bonobo/servers
    197 %{_libdir}/evolution/%{major_version}/*.so.*
    198 %{_libdir}/evolution/%{major_version}/components/*.so
    199 %{_libdir}/evolution/%{major_version}/plugins/*.so
    200 %{_libdir}/evolution/%{major_version}/plugins/*.eplug
    201 %{_libdir}/evolution/%{major_version}/plugins/*.xml
    202 %{_libdir}/evolution/%{major_version}/plugins/*.glade
    203 %{_datadir}/applications/*
    204 %{_datadir}/evolution/%{major_version}/*
    205 %{_datadir}/gnome/help/evolution-%{major_version}/*
    206 %{_datadir}/mime-info/*
    207 %{_datadir}/omf/*
    208 %{_datadir}/pixmaps/*
    209 %config %{_sysconfdir}/gconf/schemas/*
    210 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    211 
    212 %files devel
    213 %defattr (-, root, root)
    214 %{_includedir}/evolution-%{major_version}/*
    215 %{_libdir}/pkgconfig/*.pc
    216 %{_libdir}/evolution/%{major_version}/*.so
    217 %{_datadir}/idl/*
    218 
    219 %files pilot
    220 %defattr (-, root, root)
    221 %{_libdir}/evolution/%{major_version}/conduits/*.so
    222 %{_datadir}/gnome-pilot/*
    223 
    224 %changelog
    225 * Wed Feb 16 2007 - jeff.cai@sun.com
    226 - Add patch evolution-09-awk.diff to fix 6524543.
    227 
    228 * Fri Jan 05 2007 - jijun.yu@sun.com
    229 - Its dependencies-gnome-pilot and pilot-link are updated to new version
    230 
    231 * Mon Oct 23 2006 - irene.huang@sun.com
    232 - Added new patch evolution-05-kerberos.diff
    233  and evolution-06-solaris-sed.diff (moved from
    234 Solaris/patches.
    235 
    236 * Fri Oct 20 2006 - jeff.cai@sun.com
    237 - Bump to 2.8.1.1
    238 
    239 * Mon Oct 02 2006 - damien.carbery@sun.com
    240 - Bump to 2.8.1.
    241 
    242 * Thu Sep 28 2006 - simon.zheng@sun.com
    243 - Add patch evolution-04-pixmap-new.diff
    244 
    245 * Wed Sep 06 2006 - irene.huang@sun.com
    246 - add patch 03-display-mail.
    247 
    248 * Mon Sep 04 2006 - damien.carbery@sun.com
    249 - Bump to 2.8.0.
    250 - Remove upstream patches, 01-display-mail and 04-local-account. Renumber rest.
    251 
    252 * Tue Aug 20 2006 - simon.zheng@sun.com
    253 - Add one patch evolution-04-local-account.diff
    254 
    255 * Tue Aug 08 2006 - damien.carbery@sun.com
    256 - Bump to 2.7.91.
    257 
    258 * Mon Jun 24 2006 - damien.carbery@sun.com
    259 - Bump to 2.7.90
    260 
    261 * Fri Jun 21 2006 - jeff.cai@sun.com
    262 - Bump to 2.7.4
    263   Remove following patches
    264      evolution-04-contact-print-dialog.diff
    265      evolution-05-message-list.diff
    266      evolution-06-e-sidebar.diff
    267      evolution-07-ecell-text.diff
    268   Change major version to 2.8
    269 
    270 * Thu Jun 22 2006 - li.yuan@sun.com
    271 - Add one patch:
    272   evolution-07-ecell-text.diff, make message can be grabbed by gok.
    273 
    274 * Fri Jun 09 2006 - li.yuan@sun.com
    275 - Add one patch:
    276   evolution-06-e-sidebar.diff, to fix an Evolution crash bug, CR6425103.
    277 
    278 * Thu May 30 2006 - li.yuan@sun.com
    279 - Add one patch:
    280   evolution-05-message-list.diff
    281 
    282 * Tue May 30 2006 - halton.huo@sun.com
    283 - Bump to 2.6.2.
    284 - Remove upstreamed patch evolution-05-exchange-operation.diff.
    285 
    286 * Thu Apr 29 2006 - simon.zheng@sun.com
    287 - Add two patches:
    288   evolution-04-contact-print-dialog.diff
    289   evolution-05-exchange-operation.diff
    290 
    291 * Wed Apr 26 2006 - halton.huo@sun.com
    292 - Use JES's NSS/NSPR(/usr/lib/mps) instead of that provided by
    293   mozilla or firefox, to fix bug #6418049.
    294 
    295 * Thu Apr 13 2006 - halton.huo (at] sun.com
    296 - Firefox move from /usr/sfw to /usr.
    297 
    298 * Tue Apr 11 2006 - halton.huo (at] sun.com
    299 - Remove upstream patch: 03-remove-uri.
    300 
    301 * Mon Apr 10 2006 - damien.carbery (at] sun.com
    302 - Bump to 2.6.1.
    303 
    304 * Tue Apr 04 2006 - halton.huo (at] sun.com
    305 - Remove .a/.la files in linux spec. 
    306 
    307 * Thu Mar 30 2006 - halton.huo (at] sun.com
    308 - Alter "remove *.a/*.la files part" to SUNWevolution.spec
    309 
    310 * Mon Mar 13 2006 - damien.carbery (at] sun.com
    311 - Bump to 2.6.0.
    312 - Remove upstream patches, 03-init-config and 05-show-border. Rename remainder.
    313 
    314 * Fri Mar 3 2006 - jeff.cai (at] sun.com
    315 - add three patches:
    316   evolution-03-init-config.diff
    317   evolution-04-remove-uri.diff
    318   evolution-05-show-border.diff
    319 * Tue Feb 28 2006 - halton.huo (at] sun.com
    320 - Bump to 2.5.92.
    321 - Remove upstreamed patches:
    322   evolution-03-caldav-startup-fail.diff,
    323   evolution-04-return-fix.diff.
    324 
    325 * Tue Feb 14 2006 - damien.carbery (at] sun.com
    326 - Bump to 2.5.91.
    327 
    328 * Mon Jan 30 2006 - damien.carbery (at] sun.com
    329 - Bump to 2.5.90.
    330 
    331 * Mon Jan 23 2006 - Irene.Huang (at] sun.com
    332 - Add patch evolution-03-caldav-startup-fail.diff.
    333 
    334 * Fri Jan 20 2006 - halton.huo (at] sun.com
    335 - Bump to 2.5.5.1.
    336 
    337 * Thu Jan 17 2006 - halton.huo (at] sun.com
    338 - Bump to 2.5.5.
    339 - Removed upstreamed patches and reorder:
    340   evolution-02-addressbook-config-ludcheck.diff
    341   evolution-04-build-fix.diff
    342   evolution-05-search-clear-crash.diff
    343 
    344 * Thu Jan 12 2006 - Irene.Huang (at] sun.com
    345 - Add patch evolution-05-search-clear-crash.diff 
    346   for bug 6371085 in bugzilla.
    347 
    348 * Thu Jan 12 2006 - glynn.foster (at] sun.com
    349 - Add upstream evolution-04-build-fix.diff which fixes
    350   send/receive crash.
    351 
    352 * Tue Jan 10 2006 - halton.huo (at] sun.com
    353 - Add patch evolution-03-conduit.diff.
    354 - Set --enable-pilot-conduits=yes.
    355 - Add define plink_prefix.
    356 
    357 * Fri Jan 06 2006 - simon.zheng (at] sun.om
    358 - Add patch evolution-02-dddressbook-config-ludcheck.diff.
    359 
    360 * Wed Jan 04 2006 - halton.huo (at] sun.com
    361 - Bump to 2.5.4.
    362 - Remove upstreamed patches: 
    363   evolution-02-be-po.diff,
    364   evolution-03-alarm-hang.diff.
    365 
    366 * Wed Dec 21 2005 - halton.huo (at] sun.com
    367 - Rename evolution-01-6334819.diff 
    368   to evolution-01-display-mail.diff.
    369 - Rename evolution-03-alarm-hang-6364800.diff 
    370   to evolution-03-alarm-hang.diff.
    371 
    372 * Wed Dec 21 2005 - halton.huo (at] sun.com
    373 - Correct Source filed.
    374 - Change major_verion from 2.4 to 2.6.
    375 - Add patch evolution-02-be-po.diff.
    376 - Add patch evolution-03-alarm-hang-6364800.diff.
    377 
    378 * Tue Dec 19 2005 - damien.carbery (at] sun.com
    379 - Bump to 2.5.3.
    380 
    381 * Tue Dec 13 2005 - halton.huo (at] sun.com
    382 - Bump to 2.4.2.1.
    383  
    384 * Fri Dec 02 2005 - dave.lin (at] sun.com
    385 - Add evolution-02-6355700.diff for 2.4.2
    386 
    387 * Tue Nov 29 2005 - damien.carbery (at] sun.com
    388 - Bump to 2.4.2.
    389 
    390 * Wed Nov 23 2005 - halton.huo (at] sun.com
    391 - Add patch evolution-01-6334819.diff.
    392 
    393 * Tue Nov 09 2005 - halton.huo (at] sun.com
    394 - Add option --enable-default-binary, create evolution link to 
    395   evolution-2.4, fix bug #6344895, better than old one.
    396 
    397 * Tue Nov 08 2005 - halton.huo (at] sun.com
    398 - Add evolution link to evolution-2.4, fix bug #6344895.
    399 
    400 * Fri Oct 21 2005 - halton.huo (at] sun.com
    401 - Disable pilot-conduits on solaris for does not work now.
    402 - Use firefox nss/nspr lib instead of mozilla's.
    403 
    404 * Wed Oct 12 2005 - halton.huo@sun.com
    405 - change --with-ldap to --with-sunldap.
    406 
    407 * Mon Oct 10 2005 - halton.huo@sun.com
    408 - Bump to 2.4.1.
    409 - Move upstreamed patch evolution-01-configure-grep.diff.
    410 
    411 * Thu Sep 15 2005 - halton.huo@sun.com
    412 - Add define krb5_option, disable Kerberos 5 on Solaris.
    413 
    414 * Thu Sep 8 2005 - halton.huo@sun.com
    415 - Add krb5_prefix define and Enable Kerberos 5.
    416 - Fix CFLAGS problem.
    417 - Use aclocal, ..., ./configure steps, not ./autogen,
    418   because download tarball does not have autogen.sh.
    419 
    420 * Wed Sep 7 2005 - damien.carbery@sun.com
    421 - Bump to 2.4.0.
    422 
    423 * Mon Sep 5 2005 - halton.huo@sun.com
    424 - Temporarily --enable-exchange=no because e-d-s with Kerberos is not ready.
    425 - Move patch evolution-01-solaris-ldap.diff to SUNWevolution.spec.
    426 - Add patch evolution-01-configure-grep.diff for configure.in "grep -q" bug.
    427 
    428 * Fri Sep 2 2005 - halton.huo@sun.com
    429 - Remove gal since it is merged in evolution itself.
    430 - Remove DB3 since it is merged in evolution-data-server.
    431 - Add option --enable-nntp=yes to support news groups.
    432 - Add option --enable-exchange=yes to support exchange plugin.
    433 - Use SUN LDAP on solaris with %ldap_option.
    434 - Use ./autogen.sh to replace libtoolize aclocal automake autoconf ./configure
    435   steps, because we need build code that checked out from community HEAD.
    436 - Temporarily disable Kerberos for header files are not installed on Nevada.
    437 
    438 * Tue Aug 30 2005 - glynn.foster@sun.com
    439 - Bump to 2.3.8
    440 
    441 * Mon Aug 15 2005 - damien.carbery@sun.com
    442 - Bump to 2.3.7.
    443 
    444 * Thu Jul 28 2005 - damien.carbery@sun.com
    445 - Rename --with-openldap configure option to --with-ldap as a result of Jerry's
    446   patch from Jul 27. Also remove '%ifos' code around this option.
    447 
    448 * Wed Jul 27 2005 - damien.carbery (at] sun.com
    449 - Add patch from Jerry Pu (Shi.Pu (at] sun.com) to support LDAP on Solaris.
    450 
    451 * Wed Jul 13 2005 - damien.carbery (at] sun.com
    452 - Remove gnome2-macros dir from aclocal call as that dir no longer exists.
    453 
    454 * Wed Jun 15 2005 - matt.keenan (at] sun.com
    455 - Bump to 2.2.3
    456 
    457 * Mon May 16 2005 - glynn.foster (at] sun.com
    458 - Bump to 2.2.2
    459 
    460 * Tue Nov 23 2004 - glynn.foster (at] sun.com
    461 - Bump to 2.0.2
    462 
    463 * Thu Jun 17 2004 - niall.power (at] sun.com
    464 - rpm4'ified
    465 
    466 * Thu Jun 17 2004 - glynn.foster@sun.com
    467 - Bump to 1.5.9.2
    468 
    469 * Tue Jun 08 2004 - glynn.foster@sun.com
    470 - Bump to 1.5.9
    471 
    472 * Fri May 21 2004 - glynn.foster@sun.com
    473 - Bump to 1.5.8
    474 
    475 * Tue Apr 20 2004 - glynn.foster@sun.com
    476 - Bump to 1.5.7
    477 
    478 * Mon Apr 19 2004 - glynn.foster@sun.com
    479 - Initial spec file for Evolution 1.5.x
    480