1 # 2 # spec file for package SUNWdevhelp.spec 3 # 4 # Copyright 2009 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 %define owner halton 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: SUNWlibglade 26 Requires: SUNWgnome-panel 27 Requires: SUNWfirefox 28 Requires: %{name}-root 29 Requires: SUNWdesktop-cache 30 BuildRequires: SUNWlibglade-devel 31 BuildRequires: SUNWgnome-panel-devel 32 BuildRequires: SUNWfirefox-devel 33 34 %package root 35 Summary: %{summary} - / filesystem 36 SUNW_BaseDir: / 37 %include default-depend.inc 38 39 %package devel 40 Summary: %{summary} - developer files 41 SUNW_BaseDir: %{_basedir} 42 %include default-depend.inc 43 Requires: %name 44 Requires: SUNWlibglade-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 89 %restart_fmri gconf-cache 90 91 %files 92 %defattr (-, root, bin) 93 %dir %attr (0755, root, bin) %{_bindir} 94 %{_bindir}/* 95 %dir %attr (0755, root, bin) %{_libdir} 96 %{_libdir}/lib* 97 %{_libdir}/gedit-2/plugins/devhelp* 98 %dir %attr (0755, root, sys) %{_datadir} 99 %doc -d devhelp-%{devhelp.version} README AUTHORS 100 %doc(bzip2) -d devhelp-%{devhelp.version} COPYING NEWS ChangeLog po/ChangeLog 101 %dir %attr (0755, root, other) %{_datadir}/doc 102 %dir %attr (0755, root, bin) %{_datadir}/devhelp 103 %{_datadir}/devhelp/* 104 %dir %attr (0755, root, other) %{_datadir}/icons 105 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/ 106 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/ 107 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/ 108 %{_datadir}/icons/hicolor/scalable/apps/* 109 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16 110 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/ 111 %{_datadir}/icons/hicolor/16x16/apps/* 112 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/ 113 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/ 114 %{_datadir}/icons/hicolor/22x22/apps/* 115 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/ 116 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/ 117 %{_datadir}/icons/hicolor/24x24/apps/* 118 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/ 119 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps/ 120 %{_datadir}/icons/hicolor/32x32/apps/* 121 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/ 122 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/ 123 %{_datadir}/icons/hicolor/48x48/apps/* 124 %dir %attr (0755, root, other) %{_datadir}/applications 125 %{_datadir}/applications/* 126 %{_mandir}/*/* 127 128 %files root 129 %defattr (-, root, sys) 130 %attr (0755, root, sys) %dir %{_sysconfdir} 131 %{_sysconfdir}/gconf/schemas/devhelp.schemas 132 133 %files devel 134 %defattr (-, root, bin) 135 %dir %attr (0755, root, bin) %{_libdir} 136 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 137 %{_libdir}/pkgconfig/* 138 %dir %attr (0755, root, bin) %{_includedir} 139 %{_includedir}/* 140 141 %if %build_l10n 142 %files l10n 143 %defattr (-, root, bin) 144 %dir %attr (0755, root, sys) %{_datadir} 145 %attr (-, root, other) %{_datadir}/locale 146 %endif 147 148 %changelog 149 * Mon May 26 2008 - evan.yan@sun.com 150 - Modification has been made in base/devhelp.spec, so that we can support both 151 of FF2 and FF3 now. Using --with-ff3 to build with FF3 152 * Fri May 16 2008 - damien.carbery@sun.com 153 - Undo Evan's change - revert to depend on SUNWfirefox/-devel because FF3 is 154 not stable enough to be the default browser in Nevada. 155 * Thu May 08 2008 - evan.yan (at] sun.com 156 - Replace Build/Requires SUNWfirefox/-devel to SUNWfirefox3/-devel 157 - Remove hardcode of firefox inlude path. 158 * Thu Mar 27 2008 - simon.zheng (at] sun.com 159 - Add file SUNWgnome-devhelp.copyright. 160 * Thu Jan 3 2008 - laca (at] sun.com 161 - use gconf-install.script instead of an inline script 162 * Wed Oct 31 2007 - simon.zheng (at] sun.com 163 - Change the inline postinstall script to an include. 164 * Tue Apr 24 2007 - laca (at] sun.com 165 - make gconf postrun scripts consistent with other packages 166 - use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install 167 (CR 6537817) 168 * Tue Apr 24 2007 - laca (at] sun.com 169 - s/0755/-/ in defattr so that files are not made all executable 170 * Thu Mar 19 2007 - simon.zheng (at] sun.com 171 - Add manpage. 172 * Thu Mar 15 2007 - damien.carbery (at] sun.com 173 - Add Build/Requires SUNWgnome-panel/-devel for libwnck. 174 * Wed March 14 2007 - simon.zheng (at] sun.com 175 - Initial version created, which stems from extra-spec-file 176 created by li.ma (at] sun.com on sourceforge.net svn repository. 177 178