Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-config-editor
      3 #
      4 # includes module(s): gconf-editor
      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 padraig
     11 #
     12 %include Solaris.inc
     13 
     14 %use gceditor = gconf-editor.spec
     15 
     16 Name:                    SUNWgnome-config-editor
     17 Summary:                 GNOME configuration database editor
     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 
     24 %include default-depend.inc
     25 Requires: SUNWgtk2
     26 Requires: SUNWgnome-config-editor-root
     27 Requires: SUNWgnome-config
     28 Requires: SUNWgnome-libs
     29 Requires: SUNWbzip
     30 Requires: SUNWzlib
     31 Requires: SUNWlxml
     32 Requires: SUNWlibpopt
     33 BuildRequires: SUNWgtk2-devel
     34 BuildRequires: SUNWlibpopt-devel
     35 BuildRequires: SUNWgnome-libs-devel
     36 BuildRequires: SUNWgnome-config-devel
     37 Requires: SUNWdesktop-cache
     38 
     39 %package root
     40 Summary:                 %{summary} - / filesystem
     41 SUNW_BaseDir:            /
     42 %include default-depend.inc
     43 
     44 %if %build_l10n
     45 %package l10n
     46 Summary:                 %{summary} - l10n files
     47 SUNW_BaseDir:            %{_basedir}
     48 %include default-depend.inc
     49 Requires:                %{name}
     50 %endif
     51 
     52 %prep
     53 rm -rf %name-%version
     54 mkdir %name-%version
     55 %gceditor.prep -d %name-%version
     56 cd %{_builddir}/%name-%version
     57 gzcat %SOURCE0 | tar xf -
     58 
     59 %build
     60 export PKG_CONFIG_PATH=%{_pkg_config_path}
     61 export LDFLAGS="%_ldflags"
     62 export CFLAGS="%optflags"
     63 export RPM_OPT_FLAGS="$CFLAGS"
     64 
     65 %gceditor.build -d %name-%version
     66 
     67 %install
     68 rm -rf $RPM_BUILD_ROOT
     69 %gceditor.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 rm -rf $RPM_BUILD_ROOT%{_prefix}/var
     75 rm -rf $RPM_BUILD_ROOT/var
     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][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 %doc -d gconf-editor-%{gceditor.version} README AUTHORS MAINTAINERS
     99 %doc(bzip2) -d gconf-editor-%{gceditor.version} COPYING NEWS ChangeLog
    100 %dir %attr (0755, root, other) %{_datadir}/doc
    101 %defattr (-, root, bin)
    102 %dir %attr (0755, root, bin) %{_bindir}
    103 %{_bindir}/*
    104 %dir %attr (0755, root, sys) %{_datadir}
    105 %dir %attr (0755, root, other) %{_datadir}/applications
    106 %{_datadir}/applications/*
    107 %dir %attr (0755, root, other) %{_datadir}/gnome
    108 %{_datadir}/gnome/help/gconf-editor/C
    109 %{_datadir}/omf/gconf-editor/*-C.omf
    110 %dir %attr (0755, root, other) %{_datadir}/gconf-editor
    111 %{_datadir}/gconf-editor/*
    112 %attr (-, root, other) %{_datadir}/icons
    113 %dir %attr(0755, root, bin) %{_mandir}
    114 %dir %attr(0755, root, bin) %{_mandir}/*
    115 %{_mandir}/*/*
    116 
    117 %files root
    118 %defattr (-, root, sys)
    119 %dir %attr (0755, root, sys) %{_sysconfdir}
    120 %{_sysconfdir}/gconf/schemas/gconf-editor.schemas
    121 
    122 %if %build_l10n
    123 %files l10n
    124 %defattr (-, root, bin)
    125 %dir %attr (0755, root, sys) %{_datadir}
    126 %dir %attr (0755, root, other) %{_datadir}/gnome
    127 %{_datadir}/gnome/help/gconf-editor/[a-z][a-z]
    128 %{_datadir}/gnome/help/gconf-editor/[a-z][a-z]_[A-Z][A-Z]
    129 %{_datadir}/omf/gconf-editor/gconf-editor-[a-z][a-z].omf
    130 %{_datadir}/omf/gconf-editor/gconf-editor-[a-z][a-z]_[A-Z][A-Z].omf
    131 %attr (-, root, other) %{_datadir}/locale
    132 %endif
    133 
    134 %changelog
    135 * Thu Oct 09 2008 - halton.huo@sun.com
    136 - Remove %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf if not use --with-l10n
    137 * Tue Sep 30 2008 - padraig.obriain@sun.com
    138 - Update copyright file.
    139 * Wed Sep 24 2008 - christian.kelly@sun.com
    140 - Fix %files l10n.
    141 * Thu Jan  3 2008 - laca@sun.com
    142 - use gconf-install.script instead of an inline script
    143 * Tue Dec 19 2006 - damien.carbery@sun.com
    144 - Add l10n files to the l10n package.
    145 * Fri Sep 01 2006 - Matt.Keenan@sun.com
    146 - New Manpage tarball
    147 * Wed Aug 16 2006 - damien.carbery@sun.com
    148 - Remove scrollkeeper files under /var. Remove missing help files from l10n 
    149   pkg.
    150 * Sat Aug 12 2006 - laca@sun.com
    151 - delete some unnecessary env variables; set CFLAGS
    152 * Sat Aug 12 2006 - laca@sun.com
    153 - change datadir/icons permissions back to root:other since it's a stable
    154   interface and wasn't supposed to be changed
    155 * Fri Jul 14 2006 - laca@sun.com
    156 - update %post/%postun/etc scripts to support diskless client setup,
    157   part of 6448317
    158 * Thu Jun 29 2006 - laca@sun.com
    159 - update postrun scripts
    160 * Sun Jun 11 2006 - laca@sun.com
    161 - change group from other to bin/sys
    162 * Thu May 25 2006 - laca@sun.com
    163 - use post/preun scripts to install schemas into the merged gconf files
    164 * Wed May 10 2006 - laca@sun.com
    165 - merge -share pkg(s) into the base pkg(s)
    166 * Mon Feb 20 2006 - damien.carbery@sun.com
    167 - Complete update of Build/Requires after running check-deps.pl script.
    168 * Thu Feb 16 2006 - damien.carbery@sun.com
    169 - Update Build/Requires after running check-deps.pl script.
    170 * Wed Jan 25 2006 - damien.carbery@sun.com
    171 - Call gconf-merge-tree in %post to process /etc/gconf/gconf.xml.defaults in 
    172   root pkg. Add required SUNWpostrun dependency.
    173 * Wed Jan 04 2006 - damien.carbery@sun.com
    174 - Add BuildRequires to avoid build errors.
    175 * Sat Dec  3 2005 - laca@sun.com
    176 - add %post script that runs update-desktop-database
    177 * Tue Nov 29 2005 - laca@sun.com
    178 - remove javahelp stuff
    179 * Tue Sep 13 2005 - laca@sun.com
    180 - define root subpkg, install gconf schemas, add unpackaged files to %files
    181 * Sat Oct 02 2004 - laca@sun.com
    182 - added %pkgbuild_postprocess
    183 * Wed Aug 25 2004  Kazuhiko.Maekawa@sun.com
    184 - Added l10n help entries in files
    185 * Tue Aug 24 2004  vinay.mandyakoppal@wipro.com
    186 - Added %{_datadir}/gnome/help/gconf-editor/C to install help.
    187 * Sun Jun 27 2004  shirley.woo@sun.com
    188 - Added BuildRequires SUNWgnome-javahelp-convert
    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 * Wed Mar 24 2004 - brian.cameron@sun.com
    194 - Added SGML man page integration
    195 * Thu Feb 26 2004 - <niall.power@sun.com>
    196 - define PERL5LIB for XML::Parser
    197 - remove unnecessary CFLAGS definitions
    198 - fix permissions of %{_mandir}
    199 * Tue Feb 17 2004 - <niall.power@sun.com>
    200 - Inital Solaris spec file created
    201 
    202