2008-09-22 16:19:13 +02:00
|
|
|
#
|
|
|
|
# spec file for package bluefish
|
|
|
|
#
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: bluefish
|
|
|
|
Summary: A feature-Rich HTML Editor
|
2010-05-09 21:14:53 +02:00
|
|
|
Version: 2.0.0
|
|
|
|
Release: 0
|
2008-09-22 16:19:13 +02:00
|
|
|
Url: http://bluefish.openoffice.nl/
|
|
|
|
License: GPL
|
|
|
|
Group: Productivity/Publishing/HTML/Editors
|
|
|
|
Vendor: openSUSE-Education
|
2010-05-09 21:27:16 +02:00
|
|
|
BuildRequires: aspell-devel
|
|
|
|
BuildRequires: enchant-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
BuildRequires: gnome-mime-data
|
|
|
|
BuildRequires: gnome-vfs2-devel
|
|
|
|
BuildRequires: gtk2-devel
|
2010-05-09 21:14:53 +02:00
|
|
|
BuildRequires: intltool
|
2010-05-09 21:27:16 +02:00
|
|
|
BuildRequires: libglade2-devel
|
|
|
|
BuildRequires: libgnomeprint-devel
|
|
|
|
BuildRequires: libgnomeprintui-devel
|
|
|
|
BuildRequires: libwnck-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: tidy
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
Requires: libxml2
|
|
|
|
Requires: sgml-skel
|
2010-05-09 21:14:53 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2008-09-22 16:19:13 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-05-09 21:14:53 +02:00
|
|
|
%define prefix %{_prefix}
|
2008-09-22 16:19:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Bluefish is a HTML editor designed for the experienced Web designer
|
|
|
|
(supports HTML, PHP, Java, Perl, Python, Ruby, C, Pascal and more).
|
|
|
|
|
|
|
|
It is based on Gtk+.
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Info <bluefish@bluefish.linuxbox.com>
|
|
|
|
|
|
|
|
%prep
|
2010-05-09 21:14:53 +02:00
|
|
|
%setup -q
|
2008-09-22 16:19:13 +02:00
|
|
|
|
|
|
|
%build
|
2010-05-09 21:14:53 +02:00
|
|
|
%configure --with-icon-path=%{_datadir}/pixmaps \
|
|
|
|
--with-gnome2-menu=%{_datadir} \
|
2008-09-22 16:19:13 +02:00
|
|
|
--without-freedesktop_org-mime \
|
2010-05-09 21:27:16 +02:00
|
|
|
--disable-update-databases \
|
|
|
|
--disable-xml-catalog-update \
|
|
|
|
--enable-python \
|
|
|
|
--enable-libgnomeui
|
|
|
|
%{__make} %{?jobs:-j%jobs} \
|
|
|
|
bflangsampledir="%{_docdir}/%{name}"
|
2008-09-22 16:19:13 +02:00
|
|
|
|
|
|
|
%install
|
2010-05-09 21:27:16 +02:00
|
|
|
mkdir -p "%{buildroot}%{_datadir}/pixmaps"
|
|
|
|
%makeinstall \
|
|
|
|
bflangsampledir="%{_docdir}/%{name}" \
|
|
|
|
UPDATE_DESKTOP=echo \
|
|
|
|
UPDATE_MIME=echo
|
|
|
|
|
|
|
|
%__rm -rf "%{buildroot}%{_datadir}/locale/ko_KR"
|
2008-09-22 16:19:13 +02:00
|
|
|
%suse_update_desktop_file -r bluefish Application Network WebDevelopment GNOME
|
|
|
|
|
2010-05-09 21:27:16 +02:00
|
|
|
%find_lang bluefish
|
|
|
|
%find_lang bluefish_plugin_about
|
|
|
|
%find_lang bluefish_plugin_charmap
|
|
|
|
%find_lang bluefish_plugin_entities
|
|
|
|
%find_lang bluefish_plugin_htmlbar
|
|
|
|
%find_lang bluefish_plugin_infbrowser
|
|
|
|
%find_lang bluefish_plugin_snippets
|
|
|
|
cat bluefish*.lang >> all.lang
|
2008-09-22 16:19:13 +02:00
|
|
|
|
2010-05-09 21:27:16 +02:00
|
|
|
%fdupes -s "%{buildroot}%{_datadir}"
|
2008-09-22 16:19:13 +02:00
|
|
|
|
|
|
|
%post
|
2010-05-09 21:27:16 +02:00
|
|
|
if [ -x %{_bindir}/update-mime-database ]; then
|
|
|
|
/usr/bin/update-mime-database "%{_datadir}/mime" > /dev/null || :
|
|
|
|
fi
|
|
|
|
if [ -x %{_bindir}/update-desktop-database ]; then
|
|
|
|
%{_bindir}/update-desktop-database -q || :
|
|
|
|
fi
|
|
|
|
if [ -x %{_bindir}/xmlcatalog ];
|
|
|
|
%{_bindir}/xmlcatalog --noout --add \
|
|
|
|
'delegateURI' \
|
|
|
|
'http://bluefish.openoffice.nl/ns/bflang/2.0/' \
|
|
|
|
'%{_datadir}/xml/bluefish' \
|
|
|
|
'%{_sysconfdir}/xml/catalog' || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ -x %{_bindir}/xmlcatalog ];
|
|
|
|
%{_bindir}/xmlcatalog --noout --del \
|
|
|
|
'http://bluefish.openoffice.nl/ns/bflang/2.0/' \
|
|
|
|
'%{_sysconfdir}/xml/catalog' || :
|
2008-09-22 16:19:13 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
2010-05-09 21:27:16 +02:00
|
|
|
if [ -x %{_bindir}/update-mime-database ]; then
|
|
|
|
%{_bindir}/update-mime-database "%{_datadir}/mime" > /dev/null
|
|
|
|
fi
|
|
|
|
if [ -x %{_bindir}/update-desktop-database ]; then
|
|
|
|
%{_bindir}/update-desktop-database -q || :
|
2008-09-22 16:19:13 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
2010-05-09 21:27:16 +02:00
|
|
|
rm -rf "%{buildroot}"
|
2008-09-22 16:19:13 +02:00
|
|
|
|
2010-05-09 21:27:16 +02:00
|
|
|
%files -f all.lang
|
2008-09-22 16:19:13 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README TODO
|
2010-05-09 21:27:16 +02:00
|
|
|
%{_mandir}/man1/bluefish.1*
|
2008-09-22 16:19:13 +02:00
|
|
|
%{_bindir}/bluefish
|
|
|
|
%{_datadir}/bluefish
|
2010-05-09 21:27:16 +02:00
|
|
|
%{_datadir}/pixmaps/*bluefish*.png
|
|
|
|
%{_datadir}/applications/bluefish*.desktop
|
2010-05-09 21:14:53 +02:00
|
|
|
%{_datadir}/application-registry/bluefish.applications
|
|
|
|
%{_datadir}/mime-info/bluefish.*
|
2008-09-22 16:19:13 +02:00
|
|
|
|
|
|
|
%changelog
|