+#
+# Conditional build:
+# _with_opts - use extra optimizations
+#
+# note: optflags used with this bcond are very strong, and partially
+# obsoleted for C (like -fno-rtti) - use at own risk!
+#
Summary: Bluefish - HTML editor for the experienced web designer
Summary(pl): Bluefish - Edytor HTML dla zaawansowanych
Summary(pt_BR): Editor HTML Bluefish
Name: bluefish
-Version: 0.9
+Version: 0.10
Release: 1
License: GPL
Group: X11/Applications/Editors
# The master server is here
Source0: http://pkedu.fbt.eitn.wau.nl/~olivier/downloads/%{name}-%{version}.tar.bz2
+# Source0-md5: 557271d19d53b0857c7290ff994a8637
# but if you want ftp: try this one
# Source0: ftp://bluefish.advancecreations.com/bluefish/downloads/%{name}-%{version}.tar.bz2
-Source1: %{name}.desktop
-Source2: %{name}.png
Patch0: %{name}-DESTDIR.patch
-#Patch1: %{name}-ac_lt.patch
-#Patch2: %{name}-locale.patch
-#Patch3: %{name}-netscape-now-mozilla.patch
-#Patch4: %{name}-pl.patch
+Patch1: %{name}-desktop.patch
URL: http://bluefish.openoffice.nl/
+BuildRequires: aspell-devel
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: libtool
BuildRequires: gettext-devel
BuildRequires: gtk+2-devel
BuildRequires: imlib-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng >= 1.2.5
BuildRequires: libtiff-devel
+BuildRequires: libtool
BuildRequires: libungif-devel
+BuildRequires: pcre-devel
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
%description
Bluefish is a GTK+ based HTML editor designed for the experienced web
designer.
%prep
%setup -q
%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
-#%patch3 -p1
-#%patch4 -p1
+%patch1 -p1
%build
-%ifarch i586
-OPTIMIZATION="--enable-gcc3-optimization=pentium"
-%endif
-%ifarch i686 athlon
-OPTIMIZATION="--enable-gcc3-optimization=pentiumpro"
-%endif
-
%{__gettextize}
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%configure \
- $OPTIMIZATION
+ %{?_with_opts:--enable-auto-optimization}
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_applnkdir}/Editors/HTML,%{_pixmapsdir},%{_datadir}/{applications,%{name}},%{_bindir}}
-
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Editors/HTML
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/
-
-make install DESTDIR=$RPM_BUILD_ROOT
-
-cd po
-make install DESTDIR=$RPM_BUILD_ROOT
-cd ..
-
-install src/%{name} $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
-install {images,icons}/*.png $RPM_BUILD_ROOT%{_datadir}/%{name}/
-install data/*.default $RPM_BUILD_ROOT%{_datadir}/%{name}/
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-rm -rf `find -name CVS`
+install -c inline_images/bluefish_icon1.png $RPM_BUILD_ROOT%{_pixmapsdir}/bluefish.png
%find_lang %{name}
%defattr(644,root,root,755)
%doc doc
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}/*
-%{_applnkdir}/Editors/HTML/bluefish.desktop
+%{_datadir}/%{name}
+%{_desktopdir}/*
%{_pixmapsdir}/*