1 # 2 # spec file for package SUNWgnome-file-mgr 3 # 4 # includes module(s): eel, nautilus, gnome-mount, 5 # gnome-volume-manager 6 # 7 # Copyright 2009 Sun Microsystems, Inc. 8 # This file and all modifications and additions to the pristine 9 # package are under the same license as the package itself. 10 # 11 %define owner padraig 12 13 %include Solaris.inc 14 15 %define with_hal %(pkginfo -q SUNWhal && echo 1 || echo 0) 16 17 %use eel = eel.spec 18 %use nautilus = nautilus.spec 19 %use open_terminal= nautilus-open-terminal.spec 20 21 %if %with_hal 22 %use gmount = gnome-mount.spec 23 %endif 24 25 Name: SUNWgnome-file-mgr 26 Summary: GNOME file manager 27 Version: %{default_pkg_version} 28 Source: %{name}-manpages-0.1.tar.gz 29 SUNW_BaseDir: %{_basedir} 30 SUNW_Copyright: %{name}.copyright 31 BuildRoot: %{_tmppath}/%{name}-%{version}-build 32 33 %include default-depend.inc 34 BuildRequires: SUNWgtk2-devel 35 BuildRequires: SUNWgnome-component-devel 36 BuildRequires: SUNWlibrsvg-devel 37 BuildRequires: SUNWgnome-audio-devel 38 BuildRequires: SUNWlibexif-devel 39 BuildRequires: SUNWlibpopt-devel 40 BuildRequires: SUNWgnome-libs-devel 41 BuildRequires: SUNWgnome-vfs-devel 42 BuildRequires: SUNWgnome-config-devel 43 BuildRequires: SUNWgnome-panel-devel 44 BuildRequires: SUNWgnome-print-devel 45 BuildRequires: SUNWlibunique-devel 46 BuildRequires: SUNWgtk-doc 47 Requires: SUNWgtk2 48 Requires: SUNWgnome-file-mgr-root 49 Requires: SUNWgnome-libs 50 Requires: SUNWgnome-vfs 51 Requires: SUNWgnome-config 52 Requires: SUNWgnome-panel 53 Requires: SUNWgnome-print 54 Requires: SUNWgnome-audio 55 Requires: SUNWgnome-component 56 Requires: SUNWlibunique 57 Requires: SUNWlibexif 58 Requires: SUNWlibms 59 Requires: SUNWlibpopt 60 Requires: SUNWlibrsvg 61 Requires: SUNWperl584usr 62 Requires: SUNWbzip 63 Requires: SUNWzlib 64 Requires: SUNWlxml 65 Requires: SUNWzfsr 66 Requires: SUNWdesktop-cache 67 %if %with_hal 68 Requires: SUNWhal 69 %endif 70 71 %package root 72 Summary: %{summary} - / filesystem 73 SUNW_BaseDir: / 74 %include default-depend.inc 75 76 %package devel 77 Summary: %{summary} - development files 78 SUNW_BaseDir: %{_basedir} 79 %include default-depend.inc 80 81 %if %build_l10n 82 %package l10n 83 Summary: %{summary} - l10n files 84 SUNW_BaseDir: %{_basedir} 85 %include default-depend.inc 86 Requires: %{name} 87 %endif 88 89 %prep 90 rm -rf %name-%version 91 mkdir %name-%version 92 %eel.prep -d %name-%version 93 %nautilus.prep -d %name-%version 94 %open_terminal.prep -d %name-%version 95 96 %if %with_hal 97 %gmount.prep -d %name-%version 98 %endif 99 cd %{_builddir}/%name-%version 100 gzcat %SOURCE0 | tar xf - 101 102 %build 103 PKG_CONFIG_DISABLE_UNINSTALLED= 104 unset PKG_CONFIG_DISABLE_UNINSTALLED 105 106 export PKG_CONFIG_PATH=../eel-%{eel.version}:../nautilus-%{nautilus.version}/libnautilus-extension:%{_pkg_config_path} 107 export CFLAGS="%optflags -I%{_includedir} -DGNOME_DESKTOP_USE_UNSTABLE_API" 108 export RPM_OPT_FLAGS="$CFLAGS" 109 export LDFLAGS="%_ldflags" 110 export ACLOCAL_FLAGS="-I /usr/share/aclocal" 111 112 %eel.build -d %name-%version 113 %nautilus.build -d %name-%version 114 %open_terminal.build -d %name-%version 115 116 %if %with_hal 117 export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -lX11 -lresolv" 118 %gmount.build -d %name-%version 119 %endif 120 121 %install 122 rm -rf $RPM_BUILD_ROOT 123 %eel.install -d %name-%version 124 %nautilus.install -d %name-%version 125 %open_terminal.install -d %name-%version 126 127 %if %with_hal 128 %gmount.install -d %name-%version 129 %endif 130 131 rm -rf $RPM_BUILD_ROOT%{_mandir} 132 cd %{_builddir}/%name-%version/sun-manpages 133 make install DESTDIR=$RPM_BUILD_ROOT 134 135 %if %build_l10n 136 %else 137 # REMOVE l10n FILES 138 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 139 %endif 140 141 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 142 143 %clean 144 rm -rf $RPM_BUILD_ROOT 145 146 %post 147 %restart_fmri desktop-mime-cache mime-types-cache gconf-cache 148 149 %postun 150 %restart_fmri desktop-mime-cache mime-types-cache 151 152 %files 153 %doc eel-%{eel.version}/AUTHORS eel-%{eel.version}/MAINTAINERS 154 %doc eel-%{eel.version}/README 155 %doc(bzip2) eel-%{eel.version}/COPYING eel-%{eel.version}/COPYING.LIB 156 %doc(bzip2) eel-%{eel.version}/NEWS eel-%{eel.version}/ChangeLog 157 %doc gnome-mount-%{gmount.version}/AUTHORS gnome-mount-%{gmount.version}/README 158 %doc(bzip2) gnome-mount-%{gmount.version}/COPYING 159 %doc(bzip2) gnome-mount-%{gmount.version}/NEWS 160 %doc(bzip2) gnome-mount-%{gmount.version}/ChangeLog 161 %doc nautilus-%{nautilus.version}/README 162 %doc nautilus-%{nautilus.version}/AUTHORS 163 %doc nautilus-%{nautilus.version}/MAINTAINERS 164 %doc(bzip2) nautilus-%{nautilus.version}/COPYING 165 %doc(bzip2) nautilus-%{nautilus.version}/NEWS 166 %doc(bzip2) nautilus-%{nautilus.version}/ChangeLog 167 %doc nautilus-open-terminal-%{open_terminal.version}/AUTHORS 168 %doc nautilus-open-terminal-%{open_terminal.version}/README 169 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/COPYING 170 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/NEWS 171 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/ChangeLog 172 %dir %attr (0755, root, other) %{_datadir}/doc 173 %defattr (-, root, bin) 174 %dir %attr (0755, root, bin) %{_bindir} 175 %{_bindir}/* 176 %dir %attr (0755, root, bin) %{_libdir} 177 #%{_libdir}/bonobo/servers 178 %{_libdir}/nautilus/extensions-2.0/*.so 179 %{_libdir}/lib*.so* 180 %{_libdir}/nautilus-convert-metadata 181 %dir %attr (0755, root, sys) %{_datadir} 182 %dir %attr (0755, root, other) %{_datadir}/applications 183 %{_datadir}/applications/* 184 %if %with_hal 185 %dir %attr (0755, root, other) %{_datadir}/gnome-mount 186 %{_datadir}/gnome-mount/* 187 %endif 188 %{_datadir}/gtk-doc 189 %dir %attr (-, root, other) %{_datadir}/icons 190 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 191 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 192 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 193 %{_datadir}/icons/hicolor/16x16/apps/nautilus.png 194 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 195 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 196 %{_datadir}/icons/hicolor/22x22/apps/nautilus.png 197 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 198 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 199 %{_datadir}/icons/hicolor/24x24/apps/nautilus.png 200 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 201 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 202 %{_datadir}/icons/hicolor/32x32/apps/nautilus.png 203 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 204 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 205 %{_datadir}/icons/hicolor/scalable/apps/nautilus.svg 206 %{_datadir}/nautilus 207 %dir %attr (0755, root, other) %{_datadir}/pixmaps 208 %{_datadir}/pixmaps/* 209 %dir %attr (0755, root, root) %{_datadir}/mime 210 %dir %attr (0755, root, root) %{_datadir}/mime/packages 211 %{_datadir}/mime/packages/* 212 %dir %attr(0755, root, bin) %{_mandir} 213 %dir %attr(0755, root, bin) %{_mandir}/* 214 %{_mandir}/*/* 215 216 %files root 217 %defattr (-, root, sys) 218 %attr (0755, root, sys) %dir %{_sysconfdir} 219 %{_sysconfdir}/gconf/schemas/apps_nautilus_preferences.schemas 220 %{_sysconfdir}/gconf/schemas/nautilus-open-terminal.schemas 221 %if %with_hal 222 %{_sysconfdir}/gconf/schemas/gnome-mount.schemas 223 %endif 224 225 %files devel 226 %defattr (-, root, bin) 227 %dir %attr (0755, root, bin) %{_includedir} 228 %{_includedir}/* 229 %dir %attr (0755, root, bin) %{_libdir} 230 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 231 %{_libdir}/pkgconfig/* 232 233 %if %build_l10n 234 %files l10n 235 %defattr (-, root, bin) 236 %dir %attr (0755, root, sys) %{_datadir} 237 %attr (-, root, other) %{_datadir}/locale 238 %endif 239 240 %changelog 241 * Wed Oct 28 2009 - jedy.wang@sun.com 242 - Update mime directory attribute to fix install problem. 243 * Tue Oct 27 2009 - jedy.wang@sun.com 244 - Ship mime files. 245 * Fri Apr 3 2009 - laca@sun.com 246 - use desktop-cache instead of postrun 247 * Thu Mar 19 2009 - jeff.cai@sun.com 248 - Remove gnome-volume-manager since it is obsolete in GNOME 2.26. 249 * Tue Feb 10 2009 - halton.huo@sun.com 250 - Add BuildRequires: SUNWlibunique-devel, Requires: SUNWlibunique 251 - Add Requires: SUNWzfsr to fix issue #1 for CR6753371 252 * Thu Jan 08 2009 - christian.kelly@sun.com 253 - Add dependency on libunique. 254 * Thu Sep 11 2008 - padraig.obriain@sun.com 255 - Add %doc to %files for copyright 256 * Wed Jun 04 2008 - damien.carbery@sun.com 257 - Update %files (add %{_datadir}/gtk-doc). 258 * Thu May 01 2008 - damien.carbery@sun.com 259 - Update %files (remove %{_datadir}/gnome and add %{_sysconfdir}/xdg) after 260 bumping gnome-volume-manager. 261 * Fri Feb 29 2008 - damien.carbery@sun.com 262 - Add nautilus-open-terminal.schemas to %files and %preun root. 263 * Tue Jan 29 2008 - damien.carbery@sun.com 264 - Add -DGNOME_DESKTOP_USE_UNSTABLE_API to CFLAGS to get it to build. 265 * Thu Jan 17 2008 - damien.carbery@sun.com 266 - Set ACLOCAL_FLAGS to pick up the modified intltool.m4. 267 * Fri Jan 11 2008 - padraig.obriain@sun.com 268 - Change extensions directory to extensions-2.0 269 * Thu Jan 3 2008 - laca@sun.com 270 - use gconf-install.script instead of an inline script 271 * Fri Sep 28 2007 - laca@sun.com 272 - delete Nevada X dep 273 * Wed Sep 05 2007 - damien.carbery@sun.com 274 - Remove references to SUNWgnome-a11y-base-libs as its contents have been 275 moved to SUNWgnome-base-libs. 276 * Tue Apr 24 2007 - laca@sun.com 277 - s/0755/-/ in defattr so that files are not made all executable 278 * Tue Dec 19 2006 - damien.carbery@sun.com 279 - Update %files for new graphics files. 280 * Fri Oct 20 2006 - damien.carbery@sun.com 281 - Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51. 282 * Mon Sep 18 2006 - Brian.Cameron@sun.com 283 - Add SUNWhalh BuildRequires. 284 * Fri Sep 01 2006 - Matt.Keenan@sun.com 285 - New Manpage tarball 286 * Mon Aug 14 2006 - damien.carbery@sun.com 287 - Add Build/Requires SUNWhal after check-deps.pl run. 288 * Sat Aug 12 2006 - laca@sun.com 289 - delete some unnecessary env variables 290 * Thu Jul 25 2006 - brian.cameron@sun.com 291 - Add gnome-volume-manager and gnome-mount for HAL integration. 292 * Fri Jul 14 2006 - laca@sun.com 293 - update %post/%postun/etc scripts to support diskless client setup, 294 part of 6448317 295 * Thu Jun 29 2006 - laca@sun.com 296 - update postrun scripts 297 * Sun Jun 11 2006 - laca@sun.com 298 - change group from other to bin/sys 299 * Thu Jun 1 2006 - laca@sun.com 300 - use post/preun scripts to install schemas into the merged gconf files 301 * Wed May 10 2006 - laca@sun.com 302 - merge -share pkg(s) into the base pkg(s) 303 * Mon Feb 20 2006 - damien.carbery@sun.com 304 - Update Build/Requires after running check-deps.pl script. 305 * Mon Jan 09 2006 - damien.carbery@sun.com 306 - Delete mime dir structure. 307 * Sat Dec 3 2005 - laca@sun.com 308 - add %post script that runs update-desktop-database 309 * Thu Jul 28 2005 - damien.carbery@sun.com 310 - Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency. 311 * Thu Jun 02 2005 - brian.cameron 312 - Bumped to 2.10, fixed packaging. 313 * Sat Oct 02 2004 - laca@sun.com 314 - added %pkgbuild_postprocess 315 * Thu Sep 09 2004 - matt.keenan@sun.com 316 - Added nautlius-file-management-properties.1 manpage 317 * Mon Aug 23 2004 - laca@sun.com 318 - s/SUNWpl5u/SUNWperl584usr/ 319 * Wed Aug 18 2004 - damien.carbery@sun.com 320 - Change manpage perms for Solaris integration. 321 * Tue Jul 27 2004 - damien.carbery@sun.com 322 - Add SUNWgnome-component-devel as BuildRequires, for ORBit-2.0. 323 * Sat Jun 26 2004 - shirley.woo@sun.com 324 - Changed install location to /usr/... 325 * Mon Jun 07 2004 - brian.cameron@sun.com 326 - Added SUNWlibexif dependency, then removed it since it is alrady 327 a dependency of SUNWgnome-libs. 328 * Wed Jun 02 2004 - takao.fujiwara@sun.com 329 - Added %{_datadir}/locale to install l10n messages 330 * Thu May 20 2004 - brian.cameron@sun.com 331 - Added man page to share package. 332 * Thu May 13 2004 - brian.cameron@sun.com 333 - Removed %{_libdir}/nautilus-*-helper from packages since Glynn 334 removed these files that were added via ext-sources on May 5th. 335 * Fri Apr 30 2004 - niall.power@sun.com 336 - adjust %files for new nautilus version 337 * Fri Mar 26 2004 - laca@sun.com 338 - fix %files for libexecdir change 339 * Wed Mar 24 2004 - brian.cameron@sun.com 340 - Added SGML man page integration 341 * Mon Mar 01 2004 - laca@sun.com 342 - remove dependencies on SUNWgnome-libs-root and -share 343 * Thu Feb 26 2004 - niall.power@sun.com 344 - remove clashing (and empty gconf.xml files) after schema installation 345 - add "-R%{_libdir}" to LDFLAGS 346 - define PERL5LIB for XML::Parser 347 - add a defattr for %package devel 348 * Mon Feb 23 2004 - niall.power@sun.com 349 - install gconf schemas at the end of the install stage 350 * Wed Feb 18 2004 - niall.power@sun.com 351 - removed gnome-desktop as it's provided by the panel pkgs now. 352 - removed rsvg man pages from file maps + tidy up 353 - removed unnecessary exported CFLAGS 354 * Wed Feb 18 2004 - laca (at] sun.com 355 - moved librsvg to SUNWgnome-libs as it is required by other modules as well 356 * Mon Feb 16 2004 - niall.power (at] sun.com 357 - initial spec file created 358 359