Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWdevhelp.spec
      3 #
      4 # Copyright 2008 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # includes module(s): devhelp
      9 #
     10 # Owner: SimonZheng
     11 #
     12 
     13 %include Solaris.inc
     14 %use devhelp = devhelp.spec
     15 
     16 Name:                    SUNWgnome-devhelp
     17 Summary:                 API documentation browser for GNOME 2
     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:                SUNWgnome-base-libs
     26 Requires:                SUNWgnome-panel
     27 Requires:                SUNWfirefox
     28 BuildRequires:           SUNWgnome-base-libs-devel
     29 BuildRequires:           SUNWgnome-panel-devel
     30 BuildRequires:           SUNWfirefox-devel
     31 
     32 %package root
     33 Summary:                 %{summary} - / filesystem
     34 SUNW_BaseDir:            /
     35 %include default-depend.inc
     36 Requires: SUNWpostrun-root
     37 Requires: SUNWgnome-config
     38 
     39 %package devel
     40 Summary:                 %{summary} - developer files
     41 SUNW_BaseDir:            %{_basedir}
     42 %include default-depend.inc
     43 Requires: %name
     44 Requires: SUNWgnome-base-libs-devel
     45 
     46 %if %build_l10n
     47 %package l10n
     48 Summary:                 %{summary} - l10n files
     49 SUNW_BaseDir:            %{_basedir}
     50 %include default-depend.inc
     51 Requires:                %{name}
     52 %endif
     53 
     54 %prep
     55 rm -rf %name-%version
     56 mkdir %name-%version
     57 %devhelp.prep -d %name-%version
     58 cd %{_builddir}/%name-%version
     59 gzcat %SOURCE0 | tar xf -
     60 
     61 %build
     62 export CFLAGS="%optflags -I/usr/include/mps"
     63 export LDFLAGS="%_ldflags"
     64 export ACLOCAL_FLAGS="-I ./m4 -I /usr/share/aclocal"
     65 %if %cc_is_gcc
     66 %else
     67 export CXX="${CXX} -norunpath"
     68 %endif
     69 export CXXFLAGS="%cxx_optflags -I/usr/include/mps"
     70 %devhelp.build -d %name-%version
     71 
     72 %install
     73 rm -rf $RPM_BUILD_ROOT
     74 %devhelp.install -d %name-%version
     75 rm -rf $RPM_BUILD_ROOT%{_mandir}
     76 cd %{_builddir}/%name-%version/sun-manpages
     77 make install DESTDIR=$RPM_BUILD_ROOT
     78 
     79 %if %build_l10n
     80 %else
     81 # REMOVE l10n FILES
     82 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     83 %endif
     84 
     85 %clean
     86 rm -rf $RPM_BUILD_ROOT
     87 
     88 %post root
     89 %include gconf-install.script
     90 
     91 %preun root
     92 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
     93 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
     94   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
     95   echo '  exit 0';
     96   echo '}';
     97   echo 'umask 0022';
     98   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
     99   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    100   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    101   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    102   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    103   echo 'schemas="$SDIR/devhelp.schemas"';
    104   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    105 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    106 
    107 %files
    108 %defattr (-, root, bin)
    109 %dir %attr (0755, root, bin) %{_bindir}
    110 %{_bindir}/*
    111 %dir %attr (0755, root, bin) %{_libdir}
    112 %{_libdir}/lib*
    113 %{_libdir}/gedit-2/plugins/devhelp*
    114 %dir %attr (0755, root, sys) %{_datadir}
    115 %doc -d devhelp-%{devhelp.version} README AUTHORS
    116 %doc(bzip2) -d devhelp-%{devhelp.version} COPYING NEWS ChangeLog po/ChangeLog
    117 %dir %attr (0755, root, other) %{_datadir}/doc
    118 %dir %attr (0755, root, bin) %{_datadir}/devhelp
    119 %{_datadir}/devhelp/*
    120 %dir %attr (0755, root, other) %{_datadir}/icons
    121 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
    122 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
    123 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
    124 %{_datadir}/icons/hicolor/scalable/apps/*
    125 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
    126 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
    127 %{_datadir}/icons/hicolor/16x16/apps/*
    128 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
    129 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
    130 %{_datadir}/icons/hicolor/22x22/apps/*
    131 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
    132 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
    133 %{_datadir}/icons/hicolor/24x24/apps/*
    134 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/
    135 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps/
    136 %{_datadir}/icons/hicolor/32x32/apps/*
    137 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
    138 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
    139 %{_datadir}/icons/hicolor/48x48/apps/*
    140 %dir %attr (0755, root, other) %{_datadir}/applications
    141 %{_datadir}/applications/*
    142 %{_mandir}/*/*
    143 
    144 %files root
    145 %defattr (-, root, sys)
    146 %attr (0755, root, sys) %dir %{_sysconfdir}
    147 %{_sysconfdir}/gconf/schemas/devhelp.schemas
    148 
    149 %files devel
    150 %defattr (-, root, bin)
    151 %dir %attr (0755, root, bin) %{_libdir}
    152 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    153 %{_libdir}/pkgconfig/*
    154 %dir %attr (0755, root, bin) %{_includedir}
    155 %{_includedir}/*
    156 
    157 %if %build_l10n
    158 %files l10n
    159 %defattr (-, root, bin)
    160 %dir %attr (0755, root, sys) %{_datadir}
    161 %attr (-, root, other) %{_datadir}/locale
    162 %endif
    163 
    164 %changelog
    165 * Mon May 26 2008 - evan.yan@sun.com
    166 - Modification has been made in base/devhelp.spec, so that we can support both
    167   of FF2 and FF3 now. Using --with-ff3 to build with FF3
    168 * Fri May 16 2008 - damien.carbery@sun.com
    169 - Undo Evan's change - revert to depend on SUNWfirefox/-devel because FF3 is
    170   not stable enough to be the default browser in Nevada.
    171 * Thu May 08 2008 - evan.yan (at] sun.com
    172 - Replace Build/Requires SUNWfirefox/-devel to SUNWfirefox3/-devel
    173 - Remove hardcode of firefox inlude path.
    174 * Thu Mar 27 2008 - simon.zheng (at] sun.com
    175 - Add file SUNWgnome-devhelp.copyright.
    176 * Thu Jan  3 2008 - laca (at] sun.com
    177 - use gconf-install.script instead of an inline script
    178 * Wed Oct 31 2007 - simon.zheng (at] sun.com
    179 - Change the inline postinstall script to an include.
    180 * Tue Apr 24 2007 - laca (at] sun.com
    181 - make gconf postrun scripts consistent with other packages
    182 - use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
    183   (CR 6537817)
    184 * Tue Apr 24 2007 - laca (at] sun.com
    185 - s/0755/-/ in defattr so that files are not made all executable
    186 * Thu Mar 19 2007 - simon.zheng (at] sun.com
    187 - Add manpage.
    188 * Thu Mar 15 2007 - damien.carbery (at] sun.com
    189 - Add Build/Requires SUNWgnome-panel/-devel for libwnck.
    190 * Wed March 14 2007 - simon.zheng (at] sun.com
    191 - Initial version created, which stems from extra-spec-file
    192   created by li.ma (at] sun.com on sourceforge.net svn repository.
    193