Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-character-map
      3 #
      4 # includes module(s): gucharmap
      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 dkenny
     11 #
     12 %include Solaris.inc
     13 
     14 %use gucharmap = gucharmap.spec
     15 
     16 Name:                    SUNWgnome-character-map
     17 Summary:                 GNOME character map utility
     18 Version:                 %{default_pkg_version}
     19 Source:                  %{name}-manpages-0.1.tar.gz
     20 SUNW_BaseDir:            %{_basedir}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 %include default-depend.inc
     24 Requires: SUNWgtk2
     25 Requires: SUNWgnome-libs
     26 BuildRequires: SUNWgtk2-devel
     27 BuildRequires: SUNWgnome-libs-devel
     28 BuildRequires: SUNWgnome-doc-utils
     29 Requires: SUNWdesktop-cache
     30 Requires: %{name}-root
     31 
     32 %package root
     33 Summary:                 %{summary} - / filesystem
     34 SUNW_BaseDir:            /
     35 %include default-depend.inc
     36 
     37 %package devel
     38 Summary:                 %{summary} - development files
     39 SUNW_BaseDir:            %{_basedir}
     40 %include default-depend.inc
     41 Requires: SUNWgnome-character-map
     42 Requires: SUNWperl584usr
     43 Requires: SUNWlibms
     44 
     45 %if %build_l10n
     46 %package l10n
     47 Summary:                 %{summary} - l10n files
     48 SUNW_BaseDir:            %{_basedir}
     49 %include default-depend.inc
     50 Requires:                %{name}
     51 %endif
     52 
     53 %prep
     54 rm -rf %name-%version
     55 mkdir %name-%version
     56 %gucharmap.prep -d %name-%version
     57 cd %{_builddir}/%name-%version
     58 gzcat %SOURCE0 | tar xf -
     59 
     60 %build
     61 export PKG_CONFIG_PATH=%{_pkg_config_path}
     62 export CFLAGS="%optflags -I%{_includedir}"
     63 export RPM_OPT_FLAGS="$CFLAGS"
     64 export LDFLAGS="%_ldflags"
     65 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     66 %gucharmap.build -d %name-%version
     67 
     68 %install
     69 %gucharmap.install -d %name-%version
     70 rm -rf $RPM_BUILD_ROOT%{_mandir}
     71 cd %{_builddir}/%name-%version/sun-manpages
     72 make install DESTDIR=$RPM_BUILD_ROOT
     73 
     74 # Remove scrollkeeper files.
     75 rm -rf $RPM_BUILD_ROOT%{_localstatedir}
     76 
     77 %if %build_l10n
     78 %else
     79 # REMOVE l10n FILES
     80 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     81 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
     82 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
     83 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
     84 %endif
     85 
     86 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     87 
     88 %clean
     89 rm -rf $RPM_BUILD_ROOT
     90 
     91 %post
     92 %restart_fmri desktop-mime-cache gconf-cache
     93 
     94 %postun
     95 %restart_fmri desktop-mime-cache 
     96 
     97 %files
     98 %defattr (-, root, bin)
     99 %dir %attr (0755, root, bin) %{_bindir}
    100 %{_bindir}/*char*map*
    101 %dir %attr (0755, root, bin) %{_libdir}
    102 %{_libdir}/libgucharmap*.so*
    103 %dir %attr (0755, root, sys) %{_datadir}
    104 %dir %attr (0755, root, other) %{_datadir}/applications
    105 %{_datadir}/applications/gucharmap.desktop
    106 %dir %attr (0755, root, other) %{_datadir}/gnome
    107 %{_datadir}/gnome/help/gucharmap/C
    108 %{_datadir}/omf/gucharmap/gucharmap-C.omf
    109 %dir %attr(0755, root, bin) %{_mandir}
    110 %dir %attr(0755, root, bin) %{_mandir}/*
    111 %{_mandir}/*/*char*map*
    112 %doc -d gucharmap-%{gucharmap.version} AUTHORS COPYING.UNICODE NEWS README
    113 %doc -d gucharmap-%{gucharmap.version} ChangeLog.README
    114 %doc(bzip2) -d gucharmap-%{gucharmap.version} COPYING ChangeLog
    115 %doc(bzip2) -d gucharmap-%{gucharmap.version} ChangeLog.pre-2-23
    116 %dir %attr(0755, root, other) %{_datadir}/doc
    117 
    118 %files root
    119 %defattr (-, root, sys)
    120 %attr (0755, root, sys) %dir %{_sysconfdir}
    121 %{_sysconfdir}/gconf/schemas/gucharmap.schemas
    122 
    123 %files devel
    124 %defattr (-, root, bin)
    125 %dir %attr (0755, root, bin) %{_libdir}
    126 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    127 %{_libdir}/pkgconfig/*
    128 %dir %attr (0755, root, bin) %{_includedir}
    129 %{_includedir}/*
    130 
    131 %if %build_l10n
    132 %files l10n
    133 %defattr (-, root, bin)
    134 %dir %attr (0755, root, sys) %{_datadir}
    135 %dir %attr (0755, root, other) %{_datadir}/gnome
    136 %attr (-, root, other) %{_datadir}/locale
    137 %{_datadir}/gnome/help/*/[a-z]*
    138 %{_datadir}/omf/*/*-[a-z][a-z].omf
    139 %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
    140 %endif
    141 
    142 %changelog
    143 * Fri Apr  3 2009 - laca@sun.com
    144 - use desktop-cache instead of postrun
    145 * Fri Sep 12 2008 - matt.keenn@sun.com
    146 - Update copyright
    147 * Tue Jun 17 2008 - damien.carbery@sun.com
    148 - Update %files as the %{_datadir}/icons dir is no longer delivered - a stock
    149   icon is used.
    150 * Thu Jun 12 2008 - darren.kenny@sun.com
    151 - Add missing root package dependency
    152 * Thu Jan  3 2008 - laca@sun.com
    153 - use gconf-install.script instead of an inline script
    154 * Wed Nov 05 2007 - damien.carbery@sun.com
    155 - Add root package and post/preun scripts for gucharmap.schemas.
    156 * Wed Oct 10 2007 - damien.carbery@sun.com
    157 - Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building;
    158   change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in
    159   SUNWgnome-doc-utils.spec.
    160 * Fri Sep 01 2006 - Matt.Keenan@sun.com
    161 - New Manpage tarball
    162 * Fri Aug 25 2006 - brian.cameron@sun.com
    163 - Add new charmap.1 manpage.
    164 * Sat Aug 12 2006 - laca@sun.com
    165 - delete some unnecessary env variables
    166 * Sat Aug 12 2006 - laca@sun.com
    167 - change datadir/icons permissions back to root:other since it's a stable
    168   interface and wasn't supposed to be changed
    169 * Fri Jul 14 2006 - laca@sun.com
    170 - update %post/%postun/etc scripts to support diskless client setup,
    171   part of 6448317
    172 * Thu Jun 29 2006 - laca@sun.com
    173 - update postrun scripts
    174 * Sun Jun 11 2006 - laca@sun.com
    175 - change group from other to bin/sys
    176 * Fri Jun 02 2006 - damien.carbery@sun.com
    177 - Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails.
    178 * Wed May 10 2006 - laca@sun.com
    179 - merge -share pkg(s) into the base pkg(s)
    180 * Mon Feb 20 2006 - damien.carbery@sun.com
    181 - Update Build/Requires after running check-deps.pl script.
    182 * Tue Feb 14 2006 - damien.carbery@sun.com
    183 - Change %files share for new tarball (gucharmap.png now under icons).
    184 * Mon Jan 30 2006 - damien.carbery@sun.com
    185 - Delete scrollkeeper files before packaging.
    186 * Sat Dec  3 2005 - laca@sun.com
    187 - add %post script that runs update-desktop-database
    188 * Tue Nov 29 2005 - laca@sun.com
    189 - remove javahelp stuff
    190 * Tue May 17 2005 - brian.cameron@sun.com
    191 - Split out from SUNWgnome-utils.spec, since it is now a dependancy
    192   on gnome-applets (in SUNWgnome-panel) and SUNWgnome-utils depends
    193   on SUNWgnome-panel.
    194 
    195