1 # 2 # spec file for package SUNWbluefish 3 # 4 # includes module(s): bluefish 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 jouby 11 # 12 %include Solaris.inc 13 14 %define OSR 9360:1.x 15 16 Name: SUNWbluefish 17 Summary: Bluefish, a powerful editor for experienced web designers. 18 Version: 1.0.7 19 Source: http://www.bennewitz.com/bluefish/stable/source/bluefish-%{version}.tar.bz2 20 Source1: %{name}-manpages-0.1.tar.gz 21 URL: http://bluefish.openoffice.nl/index.html 22 SUNW_Copyright: SUNWbluefish.copyright 23 24 # owner:alfred date:2008-07-16 type:bug 25 # bugzilla.gnome.org 543369 26 Patch1: bluefish-01-no-debug.diff 27 # owner:alfred date:2008-07-16 type:bug bugster:6654493 28 # The root cause lies in pcre-config 29 # bugzilla.gnome.org 543369 30 # Replace pcre-config with pkg-config 31 Patch2: bluefish-02-pcre-cflags.diff 32 # owner:alfred date:2008-08-25 type:feature bugster:6740954 state:upsteam 33 Patch3: bluefish-03-firefox.diff 34 # owner:alfred date:2008-08-26 type:bug bugster:6738520 35 # bugzilla.gnome.org 548415 36 # Solaris find doesn't support maxdepth 37 Patch4: bluefish-04-find-maxdepth.diff 38 # owner:fujiwara date:2009-02-09 type:bug bugzilla:567592 state:upstream 39 Patch5: bluefish-05-desktop-l10n.diff 40 SUNW_BaseDir: %{_basedir} 41 BuildRoot: %{_tmppath}/%{name}-%{version}-build 42 %include default-depend.inc 43 Requires: SUNWlibgnomecanvas 44 Requires: SUNWpcre 45 Requires: SUNWgnome-spell 46 Requires: SUNWgnome-libs 47 BuildRequires: SUNWlibgnomecanvas-devel 48 BuildRequires: SUNWgnome-libs-devel 49 Requires: SUNWdesktop-cache 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 %prep 60 %setup -q -n bluefish-%version 61 %patch1 -p1 62 %patch2 -p1 63 %patch3 -p1 64 %patch4 -p1 65 %patch5 -p1 66 gzcat %SOURCE1 | tar xf - 67 68 %build 69 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 70 if test "x$CPUS" = "x" -o $CPUS = 0; then 71 CPUS=1 72 fi 73 export CFLAGS="%optflags -DANSICPP" 74 75 autoconf 76 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 77 --libdir=%{_libdir} \ 78 --libexecdir=%{_libexecdir} \ 79 --sysconfdir=%{_sysconfdir} \ 80 --disable-update-databases 81 make -j$CPUS 82 83 %install 84 rm -rf $RPM_BUILD_ROOT 85 make install DESTDIR=$RPM_BUILD_ROOT 86 87 rm -rf $RPM_BUILD_ROOT%{_mandir} 88 cd %{_builddir}/bluefish-%version/sun-manpages 89 make install DESTDIR=$RPM_BUILD_ROOT 90 91 %if %build_l10n 92 %else 93 # REMOVE l10n FILES 94 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 95 %endif 96 97 %clean 98 rm -rf $RPM_BUILD_ROOT 99 100 %post 101 %restart_fmri mime-types-cache 102 103 %postun 104 %restart_fmri mime-types-cache 105 106 %files 107 %doc(bzip2) COPYING NEWS ChangeLog 108 %doc AUTHORS README 109 %dir %attr (0755, root, other) %{_datadir}/doc 110 %defattr (-, root, bin) 111 %dir %attr (0755, root, bin) %{_bindir} 112 %{_bindir}/* 113 %dir %attr (0755, root, sys) %{_datadir} 114 %dir %attr (0755, root, other) %{_datadir}/application-registry 115 %{_datadir}/application-registry/* 116 %dir %attr (0755, root, other) %{_datadir}/applications 117 %{_datadir}/applications/* 118 %{_datadir}/bluefish 119 %ghost %attr (0755, root, root) %{_datadir}/mime 120 %dir %attr (0755, root, other) %{_datadir}/mime-info 121 %{_datadir}/mime-info/* 122 %dir %attr (0755, root, other) %{_datadir}/pixmaps 123 %{_datadir}/pixmaps/* 124 %dir %attr(0755, root, bin) %{_mandir} 125 %dir %attr(0755, root, bin) %{_mandir}/man1 126 %{_mandir}/man1/* 127 128 %if %build_l10n 129 %files l10n 130 %defattr (-, root, bin) 131 %dir %attr (0755, root, sys) %{_datadir} 132 %attr (-, root, other) %{_datadir}/locale 133 %endif 134 135 %changelog 136 * Fir Aug 28 2009 - yuntong.jin@sun.com 137 - Change owner to jouby 138 * Fri Apr 3 2009 - laca@sun.com 139 - use desktop-cache instead of postrun 140 * Thu Feb 19 2009 - alfred.peng@sun.com 141 - New manpage tarball. 142 * Tue Feb 10 2009 - alfred.peng@sun.com 143 - Remove /usr/gnu/ from CFLAGS and LDFLAGS. bugster CR#6803332. 144 * Mon Feb 09 2009 - takao.fujiwara@sun.com 145 - Add patch desktop-l10n.diff from trunk. 146 * Fri Sep 12 2008 - alfred.peng@sun.com 147 - Add %doc to %files for new copyright. 148 * Tue Aug 26 2008 - alfred.peng@sun.com 149 - Add bluefish-04-find-maxdepth.diff to cope with Solaris find. 150 * Mon Aug 25 2008 - takao.fujiwara@sun.com 151 - Add bluefish-03-firefox.diff to launch the browser. 152 * Mon Jul 21 2008 - alfred.peng@sun.com 153 - remove bluefish-01-timeval.diff which isn't needed. 154 add build configure --disable-update-databases to get rid of 155 bluefish-03-update-mime.diff. 156 add bluefish-02-pcre-cflags.diff to get rid of the build dependency on 157 SUNWpcre-devel. 158 update bluefish-01-no-debug.diff for Sun Studio compiler. 159 remove all the /usr/sfw from CFLAGS and LDFLAGS. 160 remove SUNWlibC dependency and CPPFLAGS as it's only C code. 161 add SUNWpostrun to the dependency. 162 update script so that the GNOME session waits for the postrun to finish. 163 * Wed Oct 17 2007 - laca@sun.com 164 - define l10n subpkg 165 * Tue Oct 16 2007 - laca@sun.com 166 - add /usr/gnu to search paths for the indiana build 167 * Thu Mar 29 2007 - daymobrew@users.sourceforge.net 168 - Change Requires of SUNWaspell to SUNWgnome-spell. Former has been obsoleted. 169 * Wed Jan 24 2007 - daymobrew@users.sourceforge.net 170 - s/SFEpcre/SUNWpcre/ because SUNWpcre is in Vermillion Devel. 171 * Fri Jan 07 2007 - daymobrew@users.sourceforge.net 172 - Bump to 1.0.7. Update source url. 173 * Mon Jun 12 2006 - laca@sun.com 174 - rename to SFEbluefish 175 - change to root:bin to follow other JDS pkgs. 176 * Mon Jan 30 2006 - glynn.foster@sun.com 177 - Initial version 178 179