1 # 2 # spec file for package SUNWgobby 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 %define owner kevmca 9 # 10 11 %include Solaris.inc 12 13 %define OSR 9643:0.4 14 15 Name: SUNWgobby 16 License: GPLv2 17 Summary: A collaborative text editor 18 Version: 0.4.10 19 Source: http://releases.0x539.de/gobby/gobby-%{version}.tar.gz 20 Source1: l10n-configure.sh 21 # owner:trisk date:2007-8-17 type:bug 22 Patch1: gobby-01-prototype.diff 23 # owner:trisk date:2007-8-17 type:bug 24 Patch2: gobby-02-const.diff 25 # owner:trisk date:2007-8-17 type:bug 26 Patch3: gobby-03-auto_ptr.diff 27 # owner:mattman date:2009-02-27 type:branding 28 Patch8: gobby-08-manpage.diff 29 SUNW_Basedir: %{_basedir} 30 SUNW_Copyright: %{name}.copyright 31 URL: http://gobby.0x539.de/ 32 BuildRoot: %{_tmppath}/%{name}-%{version}-build 33 34 %include default-depend.inc 35 Requires: SUNWgtk2 36 Requires: SUNWgnutls 37 Requires: SUNWobby 38 Requires: SUNWgnome-gtksourceview 39 Requires: SUNWgnome-libs 40 Requires: SUNWlibxmlpp 41 Requires: SUNWgtkmm 42 Requires: SUNWdesktop-cache 43 BuildRequires: SUNWgtk2-devel 44 BuildRequires: SUNWgnutls-devel 45 BuildRequires: SUNWobby-devel 46 BuildRequires: SUNWgnome-gtksourceview-devel 47 BuildRequires: SUNWgnome-libs-devel 48 BuildRequires: SUNWlibxmlpp-devel 49 BuildRequires: SUNWgtkmm-devel 50 51 %if %build_l10n 52 %package l10n 53 Summary: %{summary} - l10n files 54 SUNW_BaseDir: %{_basedir} 55 %include default-depend.inc 56 Requires: %{name} 57 %endif 58 59 %description 60 Gobby is a free collaborative editor. This means that it 61 provides you with the possibility to edit files simultaneously 62 with other users over a network. It supports multiple 63 documents in one session and a multi-user chat. The platforms 64 on which you could use Gobby are so far Microsoft Windows, 65 Linux, Mac OS X and other Unix-like ones. Developed with the 66 Gtk+ toolkit it integrates nicely into the GNOME desktop 67 environment if you want it to. 68 69 %prep 70 %setup -q -n gobby-%version 71 bash %SOURCE1 --enable-sun-linguas 72 73 %patch1 -p1 74 %patch2 -p1 75 %patch3 -p1 76 %patch8 -p1 77 78 %build 79 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 80 if test "x$CPUS" = "x" -o $CPUS = 0; then 81 CPUS=1 82 fi 83 84 CXXFLAGS="-xO2" 85 export LDFLAGS="%_ldflags" 86 87 %if %cc_is_gcc 88 %else 89 export CXX="${CXX} -norunpath" 90 %endif 91 92 intltoolize --copy --force --automake 93 94 bash -x %SOURCE1 --enable-copyright 95 96 aclocal -I m4 97 autoconf 98 automake -a --copy --force 99 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 100 --libdir=%{_libdir} \ 101 --libexecdir=%{_libexecdir} \ 102 --sysconfdir=%{_sysconfdir} \ 103 --with-gnome 104 105 make -j$CPUS 106 107 %install 108 rm -rf $RPM_BUILD_ROOT 109 make install DESTDIR=$RPM_BUILD_ROOT 110 111 %if %build_l10n 112 %else 113 # REMOVE l10n FILES 114 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 115 %endif 116 117 %clean 118 rm -rf $RPM_BUILD_ROOT 119 120 %post 121 %restart_fmri icon-cache desktop-mime-cache 122 123 %postun 124 %restart_fmri desktop-mime-cache 125 126 %files 127 %doc AUTHORS 128 %doc(bzip2) COPYING NEWS ChangeLog README 129 %dir %attr (0755, root, sys) %{_datadir} 130 %dir %attr (0755, root, other) %{_datadir}/doc 131 %defattr (-, root, bin) 132 %dir %attr (0755, root, bin) %{_bindir} 133 %{_bindir}/* 134 %dir %attr (0755, root, other) %{_datadir}/applications 135 %{_datadir}/applications/* 136 %dir %attr (0755, root, other) %{_datadir}/pixmaps 137 %{_datadir}/pixmaps/* 138 %dir %attr (0755, root, other) %{_datadir}/icons 139 %attr (0755, root, other) %{_datadir}/icons/* 140 %dir %attr(0755, root, bin) %{_mandir} 141 %dir %attr(0755, root, bin) %{_mandir}/man1 142 %{_mandir}/man1/* 143 144 %if %build_l10n 145 %files l10n 146 %defattr (-, root, bin) 147 %dir %attr (0755, root, sys) %{_datadir} 148 %attr (-, root, other) %{_datadir}/locale 149 %endif 150 151 %changelog 152 * Fri Apr 3 2009 - laca@sun.com 153 - use desktop-cache instead of postrun 154 * Tue Mar 3 2009 - kevin.mcareavey@sun.com 155 - Bump to 0.4.10 156 * Fri Feb 27 2009 - matt.keenan@sun.com 157 - Add manpage patch for Attributes and ARC Comment 158 * Mon Dec 22 2008 - takao.fujiwara@sun.com 159 - Add gobby-06-g11n-desktop.diff for desktop.in 160 - Add gobby-07-g11n-po.diff for upstreamed translations. 161 * Fri Nov 28 2008 - takao.fujiwara@sun.com 162 - Add gobby-04-g11n-encoding.diff to support the current encoding. 163 - Add gobby-05-g11n-filename.diff to show the status on none UTF-8 locales. 164 * Tue Sep 23 2008 - dave.lin@sun.com 165 - Set attribute to %{_datadir} in base & l10n pkg 166 * Fri Sep 19 2008 - kevin.mcareavey@sun.com 167 - Changed %doc files to bzip2 168 - Changed %post and %postun to use scripts 169 * Thu Sep 18 2008 - kevin.mcareavey@sun.com 170 - Cleanup for spec-files-other integration 171 * Wed Nov 14 2007 - daymobrew@users.sourceforge.net 172 - Add l10n package. 173 * Mon Sep 17 2007 - trisk@acm.jhu.edu 174 - Bump to 0.4.5 175 * Fri Aug 17 2007 - trisk@acm.jhu.edu 176 - Initial version 177 178