Home | History | Annotate | Download | only in trunk
      1 
      2 #
      3 # spec file for package SUNWevolution-data-server
      4 #
      5 # includes module(s): evolution-data-server
      6 #
      7 # Copyright 2007 Sun Microsystems, Inc.
      8 # This file and all modifications and additions to the pristine
      9 # package are under the same license as the package itself.
     10 #
     11 # Owner: jefftsai
     12 #
     13 %include Solaris.inc
     14 %use eds = evolution-data-server.spec
     15 %define with_bdb %(test %support_level = supported && echo 1 || echo 0)
     16 
     17 Name:          SUNWevolution-data-server
     18 Summary:       Backend library for Evolution
     19 Version:       %{default_pkg_version}
     20 SUNW_Category: EVO25,%{default_category}
     21 SUNW_BaseDir:  %{_basedir}
     22 SUNW_Copyright:%{name}.copyright
     23 BuildRoot:     %{_tmppath}/%{name}-%{version}-build
     24 %include default-depend.inc
     25 Source2:       %{name}-manpages-0.1.tar.gz
     26 Requires:      SUNWgnome-libs
     27 Requires:      SUNWtls
     28 Requires:      SUNWgnome-base-libs
     29 Requires:      SUNWgnome-component
     30 Requires:      SUNWevolution-libs
     31 Requires:      SUNWlibsoup
     32 Requires:      SUNWlibpopt
     33 Requires:      SUNWzlib
     34 Requires:      SUNWlibgpg-error
     35 Requires:      SUNWpr
     36 Requires:      SUNWgnome-config
     37 Requires:      SUNWgnome-vfs
     38 Requires:      SUNWgnutls
     39 Requires:      SUNWlibgcrypt
     40 Requires:      SUNWlibms
     41 Requires:      SUNWlxml
     42 Requires:      SUNWmlib
     43 Requires:      SUNWkrbu
     44 Requires:      SUNWgss
     45 %if %with_bdb
     46 Requires:      SUNWbdb
     47 %endif
     48 BuildRequires: SUNWgnutls-devel
     49 BuildRequires: SUNWlibgcrypt-devel
     50 BuildRequires: SUNWlibgpg-error-devel
     51 BuildRequires: SUNWgnome-base-libs-devel
     52 BuildRequires: SUNWgnome-libs-devel
     53 BuildRequires: SUNWgnome-component-devel
     54 BuildRequires: SUNWgnome-config-devel
     55 BuildRequires: SUNWgnome-vfs-devel
     56 BuildRequires: SUNWevolution-libs-devel
     57 BuildRequires: SUNWlibsoup-devel
     58 BuildRequires: SUNWtlsd
     59 BuildRequires: SUNWlibpopt-devel
     60 BuildRequires: SUNWhea
     61 %if %with_bdb
     62 # must build the supported SUNWevolution-data-server product using
     63 # the version of bdb included in Solaris
     64 BuildRequires: SUNWevolution-bdb-devel
     65 %endif
     66 
     67 %package devel
     68 Summary:       %{summary} - development files
     69 SUNW_BaseDir:  %{_basedir}
     70 %include default-depend.inc
     71 
     72 %if %build_l10n
     73 %package l10n
     74 Summary:                 %{summary} - l10n files
     75 SUNW_BaseDir:            %{_basedir}
     76 %include default-depend.inc
     77 Requires:                %{name}
     78 %endif
     79 
     80 %prep
     81 rm -rf %name-%version
     82 mkdir -p %name-%version
     83 %eds.prep -d %name-%version
     84 # Apply patch for SUN LDAP
     85 cd %{_builddir}/%name-%version/evolution-data-server-%{eds.version}
     86 cd ..
     87 # Expand manpages tarball
     88 cd %{_builddir}/%name-%version
     89 gzcat %SOURCE2 | tar xf -
     90 
     91 %build
     92 export LD=/usr/ccs/bin/ld
     93 export LDFLAGS="%_ldflags -L%{_libdir} -R%{_libdir}"
     94 export CFLAGS="%optflags"
     95 export RPM_OPT_FLAGS="$CFLAGS"
     96 export PKG_CONFIG_PATH="%{_pkg_config_path}"
     97 
     98 %if %with_bdb
     99 %define bdb_option --with-libdb=%{_basedir}
    100 %else
    101 %define bdb_option
    102 %endif
    103 
    104 %eds.build -d %name-%version
    105 
    106 %install
    107 %eds.install -d %name-%version
    108 
    109 rm -rf $RPM_BUILD_ROOT%{_mandir}
    110 cd %{_builddir}/%name-%version/sun-manpages
    111 make install DESTDIR=$RPM_BUILD_ROOT
    112 
    113 %if %build_l10n
    114 %else
    115 # REMOVE l10n FILES
    116 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    117 %endif
    118 
    119 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    120 
    121 %clean
    122 rm -rf $RPM_BUILD_ROOT
    123 
    124 %files
    125 %defattr (-, root, bin)
    126 %dir %attr (0755, root, bin) %{_libdir}
    127 %{_libdir}/lib*.so*
    128 %{_libdir}/camel-index-control-*
    129 %{_libdir}/camel-lock-helper-*
    130 %{_libdir}/evolution-data-server-*
    131 %{_libdir}/bonobo/servers/*.server
    132 %dir %attr (0755, root, sys) %{_datadir}
    133 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    134 %{_datadir}/pixmaps/*
    135 %{_datadir}/evolution-data-server-*
    136 %dir %attr(0755, root, bin) %{_mandir}
    137 %dir %attr(0755, root, bin) %{_mandir}/*
    138 %{_mandir}/*/*
    139 
    140 %files devel
    141 %defattr (-, root, bin)
    142 %dir %attr (0755, root, bin) %{_libdir}
    143 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    144 %{_libdir}/pkgconfig/*
    145 %dir %attr (0755, root, bin) %{_includedir}
    146 %{_includedir}/*
    147 %dir %attr (0755, root, sys) %{_datadir}
    148 %{_datadir}/idl
    149 %{_datadir}/gtk-doc
    150 
    151 %if %build_l10n
    152 %files l10n
    153 %defattr (-, root, bin)
    154 %dir %attr (0755, root, sys) %{_datadir}
    155 %attr (-, root, other) %{_datadir}/locale
    156 %endif
    157 
    158 %changelog
    159 * Wed Apr 02 2008 - jeff.cai@sun.com
    160 - Add copyright file.
    161 * Thu Dec 20 2007 - halton.huo@sun.com
    162 - Fix build problem when %support_level is not supported. Only set
    163   bdb_option and depend on SUNWbdb and SUNWevolution-bdb-devel when 
    164   %support_level is supported.
    165 * Mon Nov 05 2007 - jeff.cai@sun.com
    166 - Use system ldflag to enable -BDirect 
    167 * Fri Sep 28 2007 - laca@sun.com
    168 - delete -I%{_includedir} from CFLAGS -- it's redundant but breaks the
    169   indiana build; add %{?arch_ldadd} to LDFLAGS for iconv LDFLAGS
    170 * Wed Nov 29 2006 - damien.carbery (at] sun.com
    171 - Revert version to %{default_pkg_version} as this module has been integrated
    172   to Nevada with this version. Using the base module's version number (2.8.x)
    173   is lower than 2.16.x and will cause an integration error.
    174 * Tue Nov 28 2006 - jeff.cai@sun.com
    175 - Use eds to refer to the spec file.
    176 - Use evolution-data-server's version information to replace 
    177 * Mon Nov 27 2006 - jeff.cai (at] sun.com
    178 - Use evolution-data-server's version information to replace 
    179   default one. 
    180 * Mon Oct 23 2006 - irene.huang@sun.com
    181 - Moved all patches to ../patches
    182 * Fri Oct 20 2006 - damien.carbery@sun.com
    183 - Add code to expand manpage tarball, otherwise build breaks.
    184 * Thu Oct 19 2006 - irene.huang@sun.com
    185 - add manpages
    186 * Tue Oct 17 2006 - jeff.cai@sun.com
    187 - add patch evolution-data-server-03-mail-rlimit.diff to fix bug 348888
    188 * Sat Aug 12 2006 - laca@sun.com
    189 - delete some unnecessary env variables
    190 * Thu Jul 27 2006 - halton.huo@sun.com
    191 - Correct with_bdb_devel depend on SUNWbdb, not SUNWevolution-bdb-devel
    192 * Wed Jul 26 2006 - halton.huo@sun.com
    193 - Add SUNWbdb Requires and SUNWevolution-bdb-devel BuildRequires to use
    194   system BerkeleyDB.
    195 * Tue Jul 25 2006 - jeff.cai@sun.com
    196 - Reorder patches.
    197 * Fri Jul 20 2006 - jeff.cai@sun.com
    198 - Bump to 1.7.4
    199   Remove patch evolution-data-server-01-ldap-ssl.diff.
    200 * Sun Jun 11 2006 - laca@sun.com
    201 - change group from other to bin/sys
    202 * Tue May 30 2006 - Irene.Huang@sun.com
    203 - Remove '-I%{_includedir}/kerberosv5' from CFLAGS as this has been
    204   defined in evolution-data-server/configure.in
    205 * Mon May 29 2006 - damien.carbery@sun.com
    206 - Add '-I%{_includedir}/kerberosv5' to CFLAGS to find headers.
    207 * Sun May 28 2006 - irene.huang@sun.com
    208 - Add patch evolution-data-server-02-kerberos.diff, add package requirement of
    209   SUNWkrbu and SUNWgss.
    210 * Fri May 12 2006 - damien.carbery@sun.com
    211 - Small update to dependency list after check-deps.pl run.
    212 * Thu May 11 2006 - halton.huo@sun.com
    213 - Change %defattr to (-, root, other).
    214 * Thu May 04 2006 - laca@sun.com
    215 - merge -share pkg(s) into the base pkg(s)
    216 * Wed Apr 26 2006 - halton.huo@sun.com
    217 - Use JES's NSS/NSPR(/usr/lib/mps) instead of that provided by
    218   mozilla or firefox, to fix bug #6418049.
    219 * Thu Apr 13 2006 - halton.huo (at] sun.com
    220 - Use firefox_prefix defination in linux spec.
    221 * Tue Apr 04 2006 - halton.huo (at] sun.com
    222 - Alter remove .a/.la files part into linux spec.
    223 * Thu Mar 30 2006 - halton.huo (at] sun.com
    224 - Remove all *.a/*.la files.
    225 * Thu Feb 23 2006 - damien.carbery (at] sun.com
    226 - Use default pkg version to match other pkgs; add EVO25 to default category.
    227 * Mon Feb 20 2006 - damien.carbery (at] sun.com
    228 - Further update of Build/Requires after running check-deps.pl script.
    229 * Thu Feb 16 2006 - damien.carbery (at] sun.com
    230 - Update Build/Requires after running check-deps.pl script.
    231 * Fri Jan 6 2006 - simon.zheng (at] sun.com
    232 - Update patch evolution-data-server-01-ldap-ssl.diff
    233 - Remove patch evolution-data-server-02-ldap-ssl-addfiles.diff
    234 * Tue Dec  6 2005 - laca (at] sun.com
    235 - disable -Bdirect as due to symbol clashes
    236 * Fri Oct 21 2005 - halton.huo (at] sun.com
    237 - evolution-data-server-03-libexec.diff: Fix bug #6334159.
    238 - Add firefox dependence, add firefox lib to LDFLAGS, add firefox include to CFLAGS.
    239 * Mon Oct 10 2005 - halton.huo (at] sun.com
    240 - Move upstreamed patch evolution-data-server-03-solaris-kerberos.diff.
    241 * Thu Sep 15 2005 - halton.huo (at] sun.com
    242 - Change Source1 evolution-data-server-ldap-ssl-patch.tar 
    243   to Patch2 evolution-data-server-02-ldap-ssl-addfiles.diff,
    244   and re-order patch.
    245 - Remove define krb5_prefix and related.
    246 - Add patch evolution-data-server-03-solaris-kerberos.diff
    247   to disable krb5.
    248 * Thu Sep  8 2005 - halton.huo (at] sun.com
    249 - Add krb5_prefix define.
    250 - Add "-L%{krb5_prefix}/lib -R%{krb5_prefix}/lib" to LDFLAGS.
    251 - Add "-I%{krb5_prefix}/include" to CFLAGS.
    252 - Use /bin/tar to extract Source1.
    253 - Replace version number to * in %files section to avoid
    254   version update error.
    255 * Tue Sep 6 2006 - halton.huo (at] sun.com
    256 - Add patch evolution-data-server-01-ldap-ssl.diff and Source1
    257   evolution-data-server-ldap-ssl-patch.tar to support SUN LDAP.
    258 * Wed Aug 31 2005 - halton.huo (at] sun.com
    259 - Change SUNW_Category for open solaris.
    260 * Mon Jul 18 2005 - damien.carbery (at] sun.com
    261 - Add SUNWevolution-libs-devel (libsoup) dependency.
    262 - Fix %files sections.
    263 * Thu Jul 14 2005 - laca (at] sun.com
    264 - add missing dependencies
    265 * Thu Jul 14 2005 - damien.carbery (at] sun.com
    266 - Initial version created
    267