Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWevolution-libs
      3 #
      4 # includes module(s): gtkhtml
      5 #
      6 # Copyright (c) 2004 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 # Owner: jefftsai
     11 #
     12 %include Solaris.inc
     13 %use gtkhtml = gtkhtml.spec
     14 
     15 Name:          SUNWevolution-libs
     16 Summary:       Evolution Email and Calendar - support libraries
     17 Version:       %{default_pkg_version}
     18 SUNW_Category: EVO25,%{default_category}
     19 SUNW_BaseDir:  %{_basedir}
     20 SUNW_Copyright:%{name}.copyright
     21 BuildRoot:     %{_tmppath}/%{name}-%{version}-build
     22 %include default-depend.inc
     23 Requires:      SUNWgnome-base-libs
     24 Requires:      SUNWgnome-config
     25 Requires:      SUNWgnome-print
     26 Requires:      SUNWlxml
     27 Requires:      SUNWzlib
     28 Requires:      SUNWgnutls
     29 Requires: SUNWgnome-component
     30 Requires: SUNWgnome-libs
     31 Requires: SUNWlibgcrypt
     32 Requires: SUNWlibms
     33 Requires: SUNWgnome-themes
     34 Requires: SUNWlibsoup
     35 Requires: SUNWgnome-spell
     36 Requires: SUNWiso-codes
     37 BuildRequires: SUNWgnome-component-devel
     38 BuildRequires: SUNWgnome-libs-devel
     39 BuildRequires: SUNWlibgcrypt-devel
     40 BuildRequires: SUNWgnome-base-libs-devel
     41 BuildRequires: SUNWgnome-config-devel
     42 BuildRequires: SUNWgnome-print-devel
     43 BuildRequires: SUNWgnome-component-devel
     44 BuildRequires: SUNWgnome-themes-devel
     45 BuildRequires: SUNWlibsoup-devel
     46 BuildRequires: SUNWgnome-spell-devel
     47 BuildRequires: SUNWiso-codes-devel
     48 
     49 %if %build_l10n
     50 %package l10n
     51 Summary:		%{summary} - l10n files
     52 SUNW_BaseDir:		%{_basedir}
     53 %include default-depend.inc
     54 Requires:		%{name}
     55 %endif
     56 
     57 %package devel
     58 Summary:		%{summary} - development files
     59 SUNW_BaseDir:		%{_basedir}
     60 %include default-depend.inc
     61 Requires:      SUNWevolution-libs
     62 
     63 %prep
     64 rm -rf %name-%version
     65 mkdir -p %name-%version
     66 %gtkhtml.prep -d %name-%version
     67 
     68 %build
     69 %if %debug_build
     70 # Omit '-xO4 -xspace' from sparc flags as it crashes libgnome-gtkhtml-editor.
     71 # See #6461613.
     72 %else
     73 %ifarch sparc
     74 %define optflags           -i -xstrconst -xarch=v8a -mr
     75 %define cxx_optflags       -i -xarch=v8a -mr -norunpath
     76 %define optflags64	   -i -xstrconst -xarch=v9 -xcode=pic32 -mr
     77 %endif
     78 %endif
     79 export LDFLAGS="%_ldflags -L%{_libdir} -R%{_libdir}"
     80 export CFLAGS="%optflags"
     81 export RPM_OPT_FLAGS="$CFLAGS"
     82 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     83 export PKG_CONFIG_PATH=%{_pkg_config_path}
     84 %gtkhtml.build -d %name-%version
     85 
     86 %install
     87 %gtkhtml.install -d %name-%version
     88 
     89 %if %build_l10n
     90 %else
     91 # REMOVE l10n FILES
     92 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     93 %endif
     94 
     95 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     96 
     97 %clean
     98 rm -rf $RPM_BUILD_ROOT
     99 
    100 %files
    101 %defattr (-, root, bin)
    102 %dir %attr (0755, root, bin) %{_bindir}
    103 %{_bindir}/gtkhtml-editor-test
    104 %dir %attr (0755, root, bin) %{_libdir}
    105 %{_libdir}/lib*.so*
    106 %{_libdir}/gtkhtml
    107 %{_libdir}/bonobo
    108 %dir %attr (0755, root, sys) %{_datadir}
    109 %{_datadir}/gtkhtml-%{gtkhtml.major_version}
    110 
    111 %if %build_l10n
    112 %files l10n
    113 %defattr (-, root, bin)
    114 %dir %attr (0755, root, sys) %{_datadir}
    115 %attr (-, root, other) %{_datadir}/locale
    116 %endif
    117 
    118 %files devel
    119 %defattr (-, root, bin)
    120 %dir %attr (0755, root, bin) %{_libdir}
    121 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    122 %{_libdir}/pkgconfig/*
    123 %dir %attr (0755, root, bin) %{_includedir}
    124 %{_includedir}/*
    125 
    126 %changelog
    127 * Thu Jun 12 2008 - jeff.cai@sun.com
    128   libsoup has been moved from this file, thus SUNWgnutls-devel is not needed.
    129 * Fri May 30 2008 - damien.carbery@sun.com
    130 - Add Build/Requires SUNWgnome-spell/-devel and SUNWiso-codes/-devel because
    131   gtkhtml requires enchant and iso-codes.
    132 * Thu May 29 2008 - damien.carbery@sun.com
    133 - Add %{_bindir}/gtkhtml-editor-test
    134 * Wed Apr 02 2008 - jeff.cai@sun.com
    135 - Add copyright file.
    136 * Tue Mar 04 2008- damien.carbery@sun.com
    137 - Move libsoup to SUNWlibsoup.spec.
    138 * Wed Feb 13 2008 - damien.carbery@sun.com
    139 - Update %install to delete libsoup html docs.
    140 * Tue Nov 13 2007 - damien.carbery@sun.com
    141 - Add Build/Requires SUNWgnome-themes/-devel because gtkhtml requires
    142   gnome-icon-theme.
    143 * Wed Sep 05 2007 - damien.carbery@sun.com
    144 - Remove references to SUNWgnome-a11y-base-libs as its contents have been
    145   moved to SUNWgnome-base-libs.
    146 * Tue Aug 22 2006 - damien.carbery@sun.com
    147 - Only change compiler options for non-debug builds.
    148 * Tue Aug 22 2006 - jeff.cai@sun.com
    149 - remove optimization compiler options to fix 6461613.
    150 * Sat Aug 12 2006 - laca@sun.com
    151 - delete some unnecessary env variables
    152 * Sun Jun 11 2006 - laca@sun.com
    153 - change group from other to bin/sys
    154 * Thu May 11 2006 - halton.huo@sun.com
    155 - Merge -share pkg(s) into the base pkg(s).
    156 - Change %defattr to (-, root, other).
    157 * Tue Apr 04 2006 - halton.huo@sun.com
    158 - Alter remove .a/.la files part into linux spec. 
    159 * Thu Mar 30 2006 - halton.huo@sun.com
    160 - Remove all *.a/*.la files.
    161 * Thu Feb 23 2006 - damien.carbery@sun.com
    162 - Use default pkg version to match other pkgs; add EVO25 to default category.
    163 * Mon Feb 20 2006 - damien.carbery@sun.com
    164 - Update Build/Requires after running check-deps.pl script.
    165 * Fri Sep 09 2005 - <laca@sun.com>
    166 - remove unpackaged files
    167 * Wed Aug 31 2005 - halton.huo@sun.com
    168 - Bump to 2.4.0 for evolution version changed.
    169 * Wed Aug 31 2005 - halton.huo@sun.com
    170 - Change SUNW_Category and Version for open solaris
    171 * Wed Aug 31 2005 - damien.carbery@sun.com
    172 - Remove the obsoleted libgal.
    173 * Tue Jul 12 2005 - damien.carbery@sun.com
    174 - Correct version numbers in dir names in share package.
    175 * Sat Oct 02 2004 - laca@sun.com
    176 - added %pkgbuild_postprocess
    177 * Tue Sep 27 2004 - halton.huo@sun.com
    178 - changed the version from "2.6.0" to "1.4.6" for consistent with SUNWevolution
    179 * Tue Aug 31 2004 - shirley.woo@sun.com
    180 - Bug 5091588 : Added BuildRequires SUNWgnutls-devel since SUNWgnutils was
    181   split
    182 * Thu Aug 26 2004 - dave.lin@sun.com
    183 - changed the spec file name from 'gal.spec' to 'libgal.spec' to keep
    184   consistent with file name and package name it defines
    185 * Tue Jul 27 2004 - damien.carbery@sun.com
    186 - Add SUNWgnome-component-devel as BuildRequires, for ORBit-2.0.
    187 * Fri Jul 23 2004 - laca@sun.com
    188 - use evolution-libs-copyright.txt as copyright notice
    189 * Sat Jun 26 2004  shirley.woo@sun.com
    190 - Changed install location to /usr/...
    191 * Wed Jun  2 2004 - takao.fujiwara@sun.com
    192 - Added %{_datadir}/locale to install l10n messages
    193 * Tue Apr 20 2004 - <laca@sun.com>
    194 - Add libgnomeprint dependencies
    195 * Thu Mar 11 2004 - <laca@sun.com>
    196 - initial version created
    197