%define		desktop_vendor 	asplinux

Summary:	A GTK2 web development application for experienced users.
Name:		bluefish
Version:	1.0.4
Release:	1asp
Epoch: 		1
Source:		ftp://ftp.ratisbona.com/pub/bluefish/%{name}-%{version}.tar.bz2
Source1:	%{name}.desktop
URL:		http://bluefish.openoffice.nl
License:	GPL
Group:          Development/Tools
Requires:	gtk2 >= 2.8.0, pcre >= 3.9, aspell >= 0.50, gnome-vfs2 >= 2.10.0
BuildRequires:  gtk2-devel >= 2.4.10, pcre-devel >= 3.9, desktop-file-utils
BuildRequires:  gnome-vfs2-devel >= 2.10.0 aspell-devel >= 0.50

BuildRoot: 	%{_tmppath}/%{name}-%{version}

%description
Bluefish is a GTK+ HTML editor for the experienced web designer or
programmer. It is not finished yet, but already a very powerful site
creating environment. Bluefish has extended support for programming
dynamic and interactive websites, there is for example a lot of PHP
support.

%prep
%setup -q

%build
%configure --disable-update-databases
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
install -D -m644 inline_images/bluefish_icon1.png \
    %{buildroot}%{_datadir}/pixmaps/%{name}-icon.png

make DESTDIR=$RPM_BUILD_ROOT install

%find_lang %{name}

install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications

desktop-file-install --vendor %{desktop_vendor} --delete-original \
  --dir %{buildroot}%{_datadir}/applications                      \
  --add-category X-Red-Hat-Base                                   \
  --add-category Application                                      \
  --add-category Development                                      \
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/%{name}*.desktop

%post
%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root, root)
%doc COPYING INSTALL
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/bluefish/*
%{_datadir}/applications/*
%{_datadir}/application-registry/bluefish.applications
%{_datadir}/mime-info/*
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*


%changelog
* Mon Aug 29 2005 Arkady L. Shane <shejn@msiu.ru>
- 1.0.4

* Mon Aug 22 2005 Arkady L. Shane <shejn@msiu.ru>
- 1.0.3

* Fri Jul 22 2005 Arkady L. Shane <shejn@msiu.ru>
- fixed desktop files

* Tue Jul  5 2005 Arkady L. Shane <shejn@msiu.ru>
- 1.0.2

* Tue Jun 14 2005 Arkady L. Shane <shejn@msiu.ru>
- 1.0.1

* Wed Jan 12 2005 Arkady L. Shane <shejn@msiu.ru>
- 1.0

* Sat Apr 10 2004 Arkady L. Shane <shejn@msiu.ru>
- 0.13

* Wed Jan 14 2004 Arkady L. Shane <shejn@msiu.ru>
- build with aspell support
 
* Tue Nov 25 2003 Arkady L. Shejn <shejn@msiu.ru>
- 0.12
 
* Thu Aug 14 2003 Arkady L. Shejn <shejn@msiu.ru>
- rebuild for ASPLinux
 
* Sun Aug  3 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.11.
                                                                                
* Thu Jul 17 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.10.
- Spec file cleanup... still ugly workarounds for the problematic Makefiles.
                                                                                
* Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Rebuilt for Red Hat Linux 9.

* Tue Feb 18 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.9.
- Added Makefile patch to support DESTDIR.
                                                                                
* Wed Jan 15 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to the latest snapshot which should be more stable.
                                                                                
* Sat Jan 11 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.8.
- Major spec file updates based on the one from Matthias Haase.
                                                                                
* Thu May  2 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Rebuilt against Red Hat Linux 7.3.
- Added the %{?_smp_mflags} expansion.
                                                                                
* Mon Nov 19 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 0.7.
- Spec file simplifications since the build is now cleaner :-)
                                                                                
* Wed May  2 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Spec file cleanup for Red Hat 7.1.
- Added a GNOME desktop entry.
- Compiled with kgcc and reported the problems encountered with gcc 2.96.

* Fri May 5 2000   Bo Forslund  <bo.forslund@abc.se>
- fine tuning of the spec file
- possible to build with all processors on smp machines
- an entry for RedHats wmconfig
                                                                                      
* Tue Mar 21 2000 CW Zuckschwerdt <zany@triq.net>
- complete rewrite of spec file
- relocateable on build-time
- no privileges required while building
- fix for install_location (should really be $(LIBDIR)/bluefish!)
- included man, locale and lib into RPM (was seriously broken)
		                                                                                
* Thu Jan 13 2000 Chris Lea <chrislea@luciddesigns.com>
- Fixed up spec file some. bluefish-0.3.5
		                                                                                  
* Wed Nov 17 1999 Chris Lea <chrislea@luciddesigns.com>
- added spec file. this is my third RPM that I've made a spec
 file for, so please be merciful if I've screwed something up
