Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWevolution-exchange
      3 #
      4 # includes module(s): exchange-connector
      5 #
      6 # Copyright 2009 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 %define owner jedy
     11 #
     12 %include Solaris.inc
     13 %use evolution = evolution.spec
     14 %use evoexchange = evolution-exchange.spec
     15 %define evo_prefix /usr/lib/evolution
     16 
     17 Name:          SUNWevolution-exchange
     18 Summary:       Exchange connector for Evolution
     19 Version:       %{default_pkg_version}
     20 SUNW_Category: EVO25,%{default_category}
     21 SUNW_Copyright: %{name}.copyright
     22 SUNW_BaseDir:  %{_basedir}
     23 BuildRoot:     %{_tmppath}/%{name}-%{version}-build
     24 %include default-depend.inc
     25 Source1:       %{name}-manpages-0.1.tar.gz
     26 Requires: SUNWlibgnomecanvas
     27 Requires: SUNWevolution
     28 Requires: SUNWgnome-print
     29 Requires: SUNWgnome-config
     30 Requires: SUNWgnome-libs
     31 Requires: SUNWevolution-data-server
     32 Requires: SUNWevolution-libs
     33 Requires: SUNWlibsoup
     34 Requires: SUNWgnome-component
     35 Requires: SUNWgnome-vfs
     36 Requires: SUNWgnome-panel
     37 Requires: SUNWgnutls
     38 Requires: SUNWlibgcrypt
     39 Requires: SUNWlibgpg-error
     40 Requires: SUNWlibms
     41 Requires: SUNWlibpopt
     42 Requires: SUNWlxml
     43 Requires: SUNWzlib
     44 Requires: %{name}-root
     45 Requires: SUNWdesktop-cache
     46 BuildRequires: SUNWlibgnomecanvas-devel
     47 BuildRequires: SUNWevolution-data-server-devel
     48 BuildRequires: SUNWevolution-libs-devel
     49 BuildRequires: SUNWlibsoup-devel
     50 BuildRequires: SUNWgnome-component-devel
     51 BuildRequires: SUNWgnome-vfs-devel
     52 BuildRequires: SUNWgnutls-devel
     53 BuildRequires: SUNWlibgcrypt-devel
     54 BuildRequires: SUNWlibgpg-error-devel
     55 BuildRequires: SUNWlibpopt-devel
     56 BuildRequires: SUNWgnome-print-devel
     57 BuildRequires: SUNWgnome-config-devel
     58 BuildRequires: SUNWgnome-libs-devel
     59 BuildRequires: SUNWevolution-devel
     60 
     61 %package root
     62 Summary:       %{summary} - / filesystem
     63 SUNW_BaseDir:            /
     64 %include default-depend.inc
     65 Requires: SUNWgnome-config
     66 
     67 %if %build_l10n
     68 %package l10n
     69 Summary:	%{summary} - l10n files
     70 SUNW_BaseDir:	%{_basedir}
     71 %include default-depend.inc
     72 Requires:	%{name}
     73 %endif
     74 
     75 %prep
     76 rm -rf %name-%version
     77 mkdir -p %name-%version
     78 %evoexchange.prep -d %name-%version
     79 cd %{_builddir}/%name-%version
     80 gzcat %SOURCE1 | tar xf -
     81 
     82 %build
     83 #FIXME: symbol clash in the evo libraries means we can't use -Bdirect
     84 #       should be re-enabled once these issues are fixed
     85 export LD=/usr/ccs/bin/ld
     86 export LDFLAGS="-z ignore %{?arch_ldadd} -L%{_libdir} -R%{_libdir} -L%{evo_prefix}/%{evolution.major_version} -R%{evo_prefix}/%{evolution.major_version}"
     87 export CFLAGS="%optflags"
     88 export RPM_OPT_FLAGS="$CFLAGS"
     89 export PKG_CONFIG_PATH="%_pkg_config_path"
     90 %evoexchange.build -d %name-%version
     91 
     92 %install
     93 %evoexchange.install -d %name-%version
     94 mv $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup-2.28 $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup
     95 
     96 # Delete gtk-doc files before packagine.
     97 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
     98 
     99 cd %{_builddir}/%name-%version/sun-manpages
    100 rm -rf $RPM_BUILD_ROOT%{_mandir}
    101 make install DESTDIR=$RPM_BUILD_ROOT
    102 
    103 %if %build_l10n
    104 %else
    105 # REMOVE l10n FILES
    106 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    107 %endif
    108 
    109 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    110 
    111 %clean
    112 rm -rf $RPM_BUILD_ROOT
    113 
    114 %post
    115 %restart_fmri gconf-cache
    116 
    117 %files
    118 %doc -d evolution-exchange-%{evoexchange.version} AUTHORS
    119 %doc(bzip2) -d evolution-exchange-%{evoexchange.version} ChangeLog
    120 %doc(bzip2) -d evolution-exchange-%{evoexchange.version} COPYING
    121 %dir %attr (0755, root, other) %{_datadir}/doc
    122 %defattr (-, root, bin)
    123 %dir %attr (0755, root, bin) %{_bindir}
    124 %{_bindir}/*
    125 %dir %attr (0755, root, bin) %{_libdir}
    126 %{_libdir}/evolution
    127 %{_libdir}/evolution-data-server-*
    128 %{_libdir}/bonobo/servers/*
    129 %dir %attr (0755, root, sys) %{_datadir}
    130 %{_datadir}/evolution-exchange
    131 %dir %attr(0755, root, bin) %{_mandir}
    132 %dir %attr(0755, root, bin) %{_mandir}/*
    133 %{_mandir}/*/*
    134 
    135 %if %build_l10n
    136 %files l10n
    137 %defattr (-, root, bin)
    138 %dir %attr (0755, root, sys) %{_datadir}
    139 %attr (-, root, other) %{_datadir}/locale
    140 %endif
    141 
    142 %files root
    143 %defattr (-, root, sys)
    144 %attr (0755, root, sys) %dir %{_sysconfdir}
    145 %{_sysconfdir}/gconf/schemas/apps_exchange_addressbook-*.schemas
    146 
    147 %changelog
    148 * Fri Sep 11 2009 - jedy.wang@sun.com
    149 - Remove SUNWmlib dependency.
    150 * Wed Sep 09 2009 - dave.lin@sun.com
    151 - Add dependency 'Requires: SUNWgnome-panel'.
    152 * Thu Jun 18 2009 - jedy.wang@sun.com
    153 - Update 2.26 to 2.28.
    154 _ Fix build problem.
    155 * Tue Jun 16 2009 - christian.kelly@sun.com
    156 - Minor build/pkg'ing issue.
    157 * Fri Apr  3 2009 - laca (at] sun.com
    158 - use desktop-cache instead of postrun
    159 * Fri Sep 19 2008 - christian.kelly (at] sun.com
    160 - Set permissions on /usr/share/doc.
    161 * Wed Sep 16 2008 - jedy.wang (at] sun.com
    162 - Add new copyright files.
    163 * Thu Jan  3 2008 - laca (at] sun.com
    164 - use gconf-install.script instead of an inline script
    165 * Fri Oct  5 2007 - laca (at] sun.com
    166 - add %{arch_ldadd} to LDFLAGS for GNU libiconv/libintl
    167 * Tue Apr 24 2007 - laca (at] sun.com
    168 - s/0755/-/ in defattr so that files are not made all executable
    169 * Wed Dec 13 2006 - jedy.wang (at] sun.com
    170 - Replace evo_major_version with major_version in evolution.spec.
    171 - Ship schema.
    172 * Wed Nov 29 2006 - damien.carbery (at] sun.com
    173 - Revert version to %{default_pkg_version} as this module has been integrated
    174   to Nevada with this version. Using the base module's version number (2.8.x)
    175   is lower than 2.16.x and will cause an integration error.
    176 - Bump evo_major_version to 2.10 to match SUNWevolution.
    177 - Remove unnecessary 'cd' calls in %prep.
    178 * Tue Nov 28 2006 - jeff.cai@sun.com
    179 - use evoexchange to refer to the spec file.
    180 * Mon Nov 27 2006 - jeff.cai@sun.com
    181 - Use evolution-exchange's version information to replace default one. 
    182 * Mon Oct 23 2006 - irene.huang (at] sun.com
    183 - Moved all patches to ../patches/
    184 * Fri Sep 01 2006 - matt.keenan (at] sun.com
    185 - Add new man page tarball
    186 * Sat Aug 12 2006 - laca (at] sun.com
    187 - delete some unnecessary env variables
    188 * Tue Jul 25 2006 - Jeff.Cai (at] sun.com
    189 - Reorder patches.
    190 * Mon Jun 24 2006 - Jeff.Cai (at] sun.com
    191 - Bump to trunk 2.7.4
    192   Remove patch evolution-exchange-01-ldap.diff.
    193 - Updated patch evolution-exchange-01-ldap.diff.
    194 * Sun Jun 22 2006 - Simon.zheng (at] sun.com
    195 - Updated patch evolution-exchange-01-ldap.diff.
    196 * Sun Jun 11 2006 - laca (at] sun.com
    197 - change group from other to bin/sys
    198 * Thu Jun 8 2006 - Jeff.Cai (at] sun.com
    199 - Add man page exchange-connector-setup.1
    200 * Thu Jun 1 2006 - Irene.Huang (at] sun.com
    201 - Change renaming of ximian-connector-setup to renaming
    202   of exchange-connector-setup in %install section. 
    203 * Wed May 31 2006 - damien.carbery (at] sun.com
    204 - When moving ximian-connector-setup-2.6 use %{tarball} instead of '*'.
    205 - Revmove references to gtk-doc dir from %files as files no longer installed.
    206 * Thu May 11 2006 - halton.huo (at] sun.com
    207 - Change %defattr to (-, root, other).
    208 * Thu Apr 27 2006 - halton.huo (at] sun.com
    209 - Move ximian-connector-setup-2.6 to ximian-connector-setup, 
    210   ARC request: no version binnaries under /usr/bin
    211 * Thu Apr 06 2006 - brian.cameron (at] sun.com
    212 - Now use tarball_version.
    213 * Tue Apr 04 2006 - halton.huo (at] sun.com
    214 - Alter remove .a/.la files part into linux spec. 
    215 * Thu Mar 30 2006 - halton.huo (at] sun.com
    216 - Remove all *.a/*.la files.
    217 * Thu Feb 23 2006 - damien.carbery (at] sun.com
    218 - Use default pkg version to match other pkgs; add EVO25 to default category.
    219 * Mon Feb 20 2006 - damien.carbery (at] sun.com
    220 - Complete update of Build/Requires after running check-deps.pl script.
    221 * Thu Feb 16 2006 - damien.carbery (at] sun.com
    222 - Update Build/Requires after running check-deps.pl script.
    223 * Fri Jan 06 2006 - simon.zheng (at] sun.com
    224 - Remove Solaris/patches/evolution-exchange-02-ldap-addfiles.diff
    225 * Wed Dec 21 2005 - halton.huo (at] sun.com
    226 - Change evo_major_version from 2.4 to 2.6.
    227 - Remove evolution-exchange-03-solaris-kerberos.diff and reorder.
    228 * Wed Dec  7 2005 - laca (at] sun.com
    229 - disable -Bdirect as due to symbol clashes
    230 * Wed Nov 09 2005 - damien.carbery (at] sun.com
    231 - Add Build/Requires SUNWgnome-print as required by evolution-exchange.
    232 * Tue Nov 08 2005 - halton.huo (at] sun.com
    233 - Add /usr/lib/evolution/2.4 to LDFLAGS, fix bug #6347334.
    234 * Mon Oct 10 2005 - halton.huo (at] sun.com
    235 - Moved define moz_prefix.
    236 - Moved "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" from LDFLAGS.
    237 * Thu Sep 15 2005 - halton.huo (at] sun.com
    238 - Added define moz_prefix.
    239 - Added "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" to LDFLAGS
    240   so mozilla libraries can be found.
    241 - Added patch evolution-exchange-01-ldap.diff, evolution-exchange-02-ldap-addfiles.diff
    242   for SUN LDAP.
    243 - Added patch evolution-exchange-03-solaris-kerberos.diff to disable krb5.
    244 - Added patch evolution-exchange-04-solaris-eutil.diff to fix -leutil not found problem.
    245 - Change %files section.
    246 - Change changelog more readable.
    247 * Wed Aug 31 2005 - halton.huo (at] sun.com
    248 - Change SUNW_Category for open solaris
    249 * Wed Aug 31 2005 - damien.carbery (at] sun.com
    250 - Use evolution-exchange instead of ximian-connector.
    251 * Thu Jul 14 2005 - damien.carbery (at] sun.com
    252 - Use ximian-connector instead of oxygen2. %files changes will be needed.
    253 * Sat Oct 02 2004 - laca (at] sun.com
    254 - added %pkgbuild_postprocess
    255 * Mon Sep 13 2004 - dave.lin (at] sun.com
    256 - change the component name from SUNWevolution-xchg-connect to SUNWevolution-exchange per Michelle Lei
    257 * Tue Sep 07 2004 - laca (at] sun.com
    258 - change copyright to ximian
    259 * Sun Jun 27 2004  shirley.woo (at] sun.com
    260 - Changed install location to /usr/...
    261 - Added -root package for /etc files
    262 * Wed Jun 16 2004 - laca (at] sun.com
    263 - rename back to SUNWevolution-xchg-connect
    264 * Fri Jun 11 2004 - damien.carbery (at] sun.com
    265 - Set perms on _sysconfdir to correct a conflict.
    266 
    267