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 %define 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:      SUNWlibgnomecanvas
     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-icon-theme
     35 Requires: SUNWlibsoup
     36 Requires: SUNWgnome-spell
     37 Requires: SUNWiso-codes
     38 BuildRequires: SUNWlibgnomecanvas-devel
     39 BuildRequires: SUNWgnome-component-devel
     40 BuildRequires: SUNWgnome-libs-devel
     41 BuildRequires: SUNWlibgcrypt-devel
     42 BuildRequires: SUNWgnome-config-devel
     43 BuildRequires: SUNWgnome-print-devel
     44 BuildRequires: SUNWgnome-component-devel
     45 BuildRequires: SUNWgnome-icon-theme
     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 %dir %attr (0755, root, sys) %{_datadir}
    119 %{_datadir}/gtkhtml-%{gtkhtml.major_version}
    120 %dir %attr(0755, root, bin) %{_mandir}
    121 %dir %attr(0755, root, bin) %{_mandir}/*
    122 %{_mandir}/*/*
    123 
    124 %if %build_l10n
    125 %files l10n
    126 %defattr (-, root, bin)
    127 %dir %attr (0755, root, sys) %{_datadir}
    128 %attr (-, root, other) %{_datadir}/locale
    129 %endif
    130 
    131 %files devel
    132 %defattr (-, root, bin)
    133 %dir %attr (0755, root, bin) %{_libdir}
    134 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    135 %{_libdir}/pkgconfig/*
    136 %dir %attr (0755, root, bin) %{_includedir}
    137 %{_includedir}/*
    138 
    139 %changelog
    140 * Tue Sep 16 2008 - jeff.cai@sun.com
    141 - Add copyright
    142 * Mon Jul 28 2008 - jeff.cai@sun.com
    143 - Add manpages.
    144 * Thu Jun 12 2008 - jeff.cai@sun.com
    145   libsoup has been moved from this file, thus SUNWgnutls-devel is not needed.
    146 * Fri May 30 2008 - damien.carbery@sun.com
    147 - Add Build/Requires SUNWgnome-spell/-devel and SUNWiso-codes/-devel because
    148   gtkhtml requires enchant and iso-codes.
    149 * Thu May 29 2008 - damien.carbery@sun.com
    150 - Add %{_bindir}/gtkhtml-editor-test
    151 * Wed Apr 02 2008 - jeff.cai@sun.com
    152 - Add copyright file.
    153 * Tue Mar 04 2008- damien.carbery@sun.com
    154 - Move libsoup to SUNWlibsoup.spec.
    155 * Wed Feb 13 2008 - damien.carbery@sun.com
    156 - Update %install to delete libsoup html docs.
    157 * Tue Nov 13 2007 - damien.carbery@sun.com
    158 - Add Build/Requires SUNWgnome-themes/-devel because gtkhtml requires
    159   gnome-icon-theme.
    160 * Wed Sep 05 2007 - damien.carbery@sun.com
    161 - Remove references to SUNWgnome-a11y-base-libs as its contents have been
    162   moved to SUNWgnome-base-libs.
    163 * Tue Aug 22 2006 - damien.carbery@sun.com
    164 - Only change compiler options for non-debug builds.
    165 * Tue Aug 22 2006 - jeff.cai@sun.com
    166 - remove optimization compiler options to fix 6461613.
    167 * Sat Aug 12 2006 - laca@sun.com
    168 - delete some unnecessary env variables
    169 * Sun Jun 11 2006 - laca@sun.com
    170 - change group from other to bin/sys
    171 * Thu May 11 2006 - halton.huo@sun.com
    172 - Merge -share pkg(s) into the base pkg(s).
    173 - Change %defattr to (-, root, other).
    174 * Tue Apr 04 2006 - halton.huo@sun.com
    175 - Alter remove .a/.la files part into linux spec. 
    176 * Thu Mar 30 2006 - halton.huo@sun.com
    177 - Remove all *.a/*.la files.
    178 * Thu Feb 23 2006 - damien.carbery@sun.com
    179 - Use default pkg version to match other pkgs; add EVO25 to default category.
    180 * Mon Feb 20 2006 - damien.carbery@sun.com
    181 - Update Build/Requires after running check-deps.pl script.
    182 * Fri Sep 09 2005 - <laca@sun.com>
    183 - remove unpackaged files
    184 * Wed Aug 31 2005 - halton.huo@sun.com
    185 - Bump to 2.4.0 for evolution version changed.
    186 * Wed Aug 31 2005 - halton.huo@sun.com
    187 - Change SUNW_Category and Version for open solaris
    188 * Wed Aug 31 2005 - damien.carbery@sun.com
    189 - Remove the obsoleted libgal.
    190 * Tue Jul 12 2005 - damien.carbery@sun.com
    191 - Correct version numbers in dir names in share package.
    192 * Sat Oct 02 2004 - laca@sun.com
    193 - added %pkgbuild_postprocess
    194 * Tue Sep 27 2004 - halton.huo@sun.com
    195 - changed the version from "2.6.0" to "1.4.6" for consistent with SUNWevolution
    196 * Tue Aug 31 2004 - shirley.woo@sun.com
    197 - Bug 5091588 : Added BuildRequires SUNWgnutls-devel since SUNWgnutils was
    198   split
    199 * Thu Aug 26 2004 - dave.lin@sun.com
    200 - changed the spec file name from 'gal.spec' to 'libgal.spec' to keep
    201   consistent with file name and package name it defines
    202 * Tue Jul 27 2004 - damien.carbery@sun.com
    203 - Add SUNWgnome-component-devel as BuildRequires, for ORBit-2.0.
    204 * Fri Jul 23 2004 - laca@sun.com
    205 - use evolution-libs-copyright.txt as copyright notice
    206 * Sat Jun 26 2004  shirley.woo@sun.com
    207 - Changed install location to /usr/...
    208 * Wed Jun  2 2004 - takao.fujiwara@sun.com
    209 - Added %{_datadir}/locale to install l10n messages
    210 * Tue Apr 20 2004 - <laca@sun.com>
    211 - Add libgnomeprint dependencies
    212 * Thu Mar 11 2004 - <laca@sun.com>
    213 - initial version created
    214 
    215