1 # 2 # spec file for package SUNWgnome-commander 3 # 4 # includes module(s): gnome-commander 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 %define OSR gnome.org:0 15 16 Name: SUNWgnome-commander 17 License: GPL 18 Summary: gnome commander file manager 19 Version: 1.2.8.2 20 Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/gnome-commander-%{version}.tar.bz2 21 # date:2008-06-25 owner:padraig type:feature 22 Patch1: gnome-commander-01-desktop-menu.diff 23 SUNW_BaseDir: %{_basedir} 24 SUNW_Copyright: %{name}.copyright 25 BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 %include default-depend.inc 27 BuildRequires: SUNWlibgnomecanvas-devel 28 BuildRequires: SUNWlibgsf-devel 29 BuildRequires: SUNWgnome-libs-devel 30 BuildRequires: SUNWgnome-vfs-devel 31 BuildRequires: SUNWPython 32 BuildRequires: SUNWgnome-python-libs-devel 33 Requires: SUNWlibgnomecanvas 34 Requires: SUNWgnome-vfs 35 Requires: SUNWlibgsf 36 Requires: SUNWgnome-libs 37 Requires: SUNWgnome-python-libs 38 Requires: SUNWdesktop-cache 39 40 %if %build_l10n 41 %package l10n 42 Summary: %{summary} - l10n files 43 SUNW_BaseDir: %{_basedir} 44 %include default-depend.inc 45 Requires: %{name} 46 %endif 47 48 %prep 49 %setup -q -n gnome-commander-%version 50 %patch1 -p1 51 52 %build 53 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 54 if test "x$CPUS" = "x" -o $CPUS = 0; then 55 CPUS=1 56 fi 57 export PYTHON="/usr/bin/python2.4" 58 export CFLAGS="%optflags -I/usr/gnu/include" 59 export LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib" 60 61 intltoolize --force --copy --automake 62 aclocal $ACLOCAL_FLAGS -I m4 63 automake -a -c -f 64 autoconf 65 ./configure \ 66 --prefix=%{_prefix} \ 67 --without-poppler \ 68 --disable-scrollkeeper 69 make prefix=%{_prefix} -j$CPUS 70 71 %install 72 rm -rf $RPM_BUILD_ROOT 73 make install DESTDIR=$RPM_BUILD_ROOT 74 rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/*.a 75 rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/*.la 76 rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/plugins/*.a 77 rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/plugins/*.la 78 79 %if %build_l10n 80 %else 81 # REMOVE l10n FILES 82 rm -r $RPM_BUILD_ROOT%{_datadir}/locale 83 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/gnome-commander/[a-z]* 84 rm -r $RPM_BUILD_ROOT%{_datadir}/omf/gnome-commander/*-[a-z]*.omf 85 %endif 86 87 %clean 88 rm -rf $RPM_BUILD_ROOT 89 90 %post 91 %restart_fmri desktop-mime-cache 92 93 %postun 94 %restart_fmri desktop-mime-cache 95 96 %files 97 %doc(bzip2) COPYING ChangeLog 98 %doc README NEWS 99 %dir %attr (0755, root, other) %{_datadir}/doc 100 %defattr (-, root, bin) 101 %dir %attr (0755, root, bin) %{_bindir} 102 %{_bindir}/* 103 %dir %attr (0755, root, bin) %{_libdir} 104 %{_libdir}/* 105 %dir %attr (0755, root, sys) %{_datadir} 106 %dir %attr (0755, root, other) %{_datadir}/applications 107 %{_datadir}/applications/* 108 %dir %attr (0755, root, other) %{_datadir}/gnome 109 %{_datadir}/gnome/help/*/C 110 %{_datadir}/omf/gnome-commander/gnome-commander-C.omf 111 %dir %attr(0755, root, bin) %{_mandir} 112 %dir %attr(0755, root, bin) %{_mandir}/man1 113 %{_mandir}/man1/gnome-commander.1 114 %dir %attr (0755, root, other) %{_datadir}/pixmaps 115 %{_datadir}/pixmaps/* 116 117 %if %build_l10n 118 %files l10n 119 %defattr (-, root, bin) 120 %dir %attr (0755, root, sys) %{_datadir} 121 %attr (-, root, other) %{_datadir}/locale 122 %dir %attr (0755, root, other) %{_datadir}/gnome 123 %{_datadir}/gnome/help/gnome-commander/[a-z]* 124 %{_datadir}/omf/gnome-commander/*-[a-z]*.omf 125 %endif 126 127 %changelog 128 * Wed Oct 14 2009 - dave.lin@sun.com 129 - Bump to 1.2.8.2. 130 - Removed the upstreamed patch 02-g11n-collation-str.diff. 131 - Removed the upstreamed patch 03-g11n-search-wz-im.diff. 132 - Add the following l10n files 133 %{_datadir}/omf/gnome-commander/*-[a-z]* 134 %{_datadir}/gnome/help/gnome-commander/[a-z]* 135 * Fri Apr 3 2009 - laca@sun.com 136 - use desktop-cache instead of postrun 137 * Wed Sep 10 2008 - padraig.obriain@sun.com 138 - Add %doc to %files for copyright 139 * Fri Aug 22 2008 - takao.fujiwara@sun.com 140 - Add gnome-commander-02-g11n-collation-str.diff to avoid crash on none UTF-8. 141 - Add gnome-commander-03-g11n-search-wz-im.diff to enable input method. 142 * Wed Aug 06 2008 - padraig.obriain@sun.com 143 - Update following review; bump to 1.2.7. 144 * Wed Jul 02 2008 - padraig.obriain@sun.com 145 - Copy from SFEgnome-commander 146 * Mon Feb 11 2008 - laca@sun.com 147 - add --disable-scrollkeeper configure option 148 * Thu Nov 15 2007 - daymobrew@users.sourceforge.net 149 - Add support for Indiana builds. 150 * Wed Oct 17 2007 - laca@sun.com 151 - add /usr/gnu to search paths for the indiana build 152 * Mon Oct 08 2007 - damien.carbery@sun.com 153 - Add deletion of /var files back for building on pre-GNOME 2.20 systems where 154 scrollkeeper is used. The /var files are not installed when rarian is used. 155 * Mon Oct 08 2007 - damien.carbery@sun.com 156 - Add intltoolize call and remove some non-l10n rm calls. 157 * Tue Jun 12 2007 - damien.carbery@sun.com 158 - Add patches, 08-warnx and 09-other, to fix a few more build issues. 159 - Update %files and %install now that build is working. 160 * Mon Jun 11 2007 - damien.carbery@sun.com 161 - Initial version 162 163