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