a0bd9cdf7f
+ minor bugfix release + various fixes for the tab-width on gtk 3.6 + improved auto-completion popup speed + more simple search options + paste improvements (to paste for example images from Libreoffice) + pylint, cssmin, jsmin, csstidy and php_beautifier integration + various language syntax definition files have also been improved OBS-URL: https://build.opensuse.org/package/show/Education/bluefish?expand=0&rev=13
149 lines
4.4 KiB
RPMSpec
149 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package bluefish
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: bluefish
|
|
Summary: A feature-Rich HTML Editor
|
|
License: GPL-3.0+
|
|
Group: Productivity/Publishing/HTML/Editors
|
|
Version: 2.2.4
|
|
Release: 0
|
|
Url: http://bluefish.openoffice.nl/
|
|
Provides: bluefish-unstable = %{version}-%{release}
|
|
Obsoletes: bluefish-unstable < 2.2.3
|
|
BuildRequires: aspell-devel
|
|
BuildRequires: enchant-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: gnome-mime-data
|
|
BuildRequires: gnome-vfs2-devel
|
|
BuildRequires: gnutls-devel
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: intltool
|
|
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
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: bluefish-rpmlintrc
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define prefix %{_prefix}
|
|
|
|
%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+.
|
|
|
|
%prep
|
|
%setup -q
|
|
for file in $(find src/plugin_zencoding -name "*.py"); do
|
|
sed -i "s|/usr/bin/env python|%{bindir}/python|g" $file
|
|
chmod +x $file
|
|
done
|
|
|
|
%build
|
|
%configure --with-icon-path=%{_datadir}/pixmaps \
|
|
--with-gnome2-menu=%{_datadir} \
|
|
--without-freedesktop_org-mime \
|
|
--disable-update-databases \
|
|
--disable-xml-catalog-update \
|
|
--enable-python \
|
|
--enable-libgnomeui
|
|
%{__make} %{?_smp_mflags} \
|
|
bflangsampledir="%{_docdir}/%{name}"
|
|
|
|
%install
|
|
mkdir -p "%{buildroot}%{_datadir}/pixmaps"
|
|
%make_install \
|
|
bflangsampledir="%{_docdir}/%{name}" \
|
|
UPDATE_DESKTOP=echo \
|
|
UPDATE_MIME=echo
|
|
|
|
%__rm -rf "%{buildroot}%{_datadir}/locale/ko_KR"
|
|
%suse_update_desktop_file -r bluefish Application Network WebDevelopment GNOME
|
|
|
|
%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
|
|
%find_lang bluefish_plugin_zencoding
|
|
cat bluefish*.lang >> all.lang
|
|
|
|
%fdupes -s "%{buildroot}%{_datadir}"
|
|
|
|
%post
|
|
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 ]; then
|
|
%{_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 ]; then
|
|
%{_bindir}/xmlcatalog --noout --del \
|
|
'http://bluefish.openoffice.nl/ns/bflang/2.0/' \
|
|
'%{_sysconfdir}/xml/catalog' || :
|
|
fi
|
|
|
|
%postun
|
|
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 || :
|
|
fi
|
|
|
|
%clean
|
|
rm -rf "%{buildroot}"
|
|
|
|
%files -f all.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING README TODO
|
|
%{_mandir}/man1/bluefish.1*
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_datadir}/xml/bluefish
|
|
%dir %{_datadir}/xml/bluefish/2.0
|
|
%{_libdir}/%{name}/*
|
|
%{_bindir}/bluefish
|
|
%{_datadir}/bluefish
|
|
%{_datadir}/pixmaps/*bluefish*.png
|
|
%{_datadir}/applications/bluefish*.desktop
|
|
%{_datadir}/xml/bluefish/2.0/bflang2.rng
|
|
%{_datadir}/xml/bluefish/catalog.xml
|
|
%{_datadir}/icons/hicolor/*/*/*
|
|
|
|
%changelog
|