File geany-plugins.spec of Package geany-plugins
#
# spec file for package geany-plugins
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define gtk3_enable 0
Name: geany-plugins
Version: 1.29
Release: 0
# FIXME: Files listed inside the conditional "%if %%{gtk3_enable}" are disabled because they do not build when compiled against gtk3. On next update, try enabling each of these disabled libs and check if they build with gtk3 or not. When all of them compile against gtk3, remove the macro and conditional.
# FIXME: gendoc requires ctpl (http://ctpl.tuxfamily.org/)
Summary: A collection of different plugins for Geany
License: GPL-2.0+ and GPL-3.0+
Group: Development/Tools/IDE
Url: http://plugins.geany.org/geany-plugins/
Source: http://plugins.geany.org/geany-plugins/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM geany-plugins-lua-5_2.patch sf#3476581 dimstar@opensuse.org -- Fix build with lua 5.2.
# FIXME: the patch breaks GeanyLua building with lua 5.1.5
Patch0: geany-plugins-lua-5_2.patch
BuildRequires: devhelp-devel
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: libgeany0 >= 1.26
BuildRequires: libgpgme-devel
BuildRequires: libtool
BuildRequires: libwnck2-devel
BuildRequires: lua51-devel
BuildRequires: python-gtk-devel
BuildRequires: vala
BuildRequires: pkgconfig(enchant) >= 1.3
BuildRequires: pkgconfig(geany) >= 1.26
BuildRequires: pkgconfig(glib-2.0) >= 2.16
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtkspell3-3.0)
BuildRequires: pkgconfig(libgit2) >= 0.21
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.27
# Disable this as we do not want to use this unsupported version of webkit - Leaving it in place to remind us to enable for newer versions if upstream ports it.
#BuildRequires: pkgconfig(webkit-1.0) >= 1.1.18
Requires: %{name}-lang = %{version}
Requires: geany >= 1.26
Requires: lua
Enhances: geany
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Geany-Plugins is a collection of different plugins for Geany,
a lightweight IDE.
%lang_package
%prep
%setup -q
#patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
install -d -m755 %{buildroot}%{python_sitearch}
#mkdir -p -m 755 #{buildroot}#{python_sitearch}
pushd %{buildroot}%{python_sitearch}
%py_compile .
popd
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes %{buildroot}%{_datadir}/doc/%{name}
%find_lang %{name}
%files
%defattr(-,root,root)
%doc NEWS README
# Explicitly list plugins, so we don't lose any by accident
%dir %{_libdir}/geany-plugins
%dir %{_libdir}/geany-plugins/geanylua
%{_datadir}/doc/geany-plugins/
%{_datadir}/geany-plugins/
%{_datadir}/icons/hicolor/16x16/apps/prjorg*.png
%{_libdir}/geany/addons.so
%{_libdir}/geany/autoclose.so
%{_libdir}/geany/automark.so
%{_libdir}/geany/codenav.so
%{_libdir}/geany/commander.so
%{_libdir}/geany/defineformat.so
%{_libdir}/geany/geanyctags.so
%{_libdir}/geany/geanyextrasel.so
%{_libdir}/geany/geanyinsertnum.so
%{_libdir}/geany/lipsum.so
%{_libdir}/geany/geanylua.so
%{_libdir}/geany-plugins/geanylua/libgeanylua.so
%{_libdir}/geany/geanyminiscript.so
%{_libdir}/geany/geanypg.so
%{_libdir}/geany/sendmail.so
%{_libdir}/geany/geanyvc.so
%{_libdir}/geany/geniuspaste.so
%{_libdir}/geany/git-changebar.so
%{_libdir}/geany/lineoperations.so
%{_libdir}/geany/overview.so
%{_libdir}/geany/pairtaghighlighter.so
%{_libdir}/geany/pohelper.so
%{_libdir}/geany/pretty-printer.so
%{_libdir}/geany/projectorganizer.so
%{_libdir}/geany/shiftcolumn.so
%{_libdir}/geany/spellcheck.so
%{_libdir}/geany/tableconvert.so
%{_libdir}/geany/treebrowser.so
%{_libdir}/geany/updatechecker.so
%{_libdir}/geany/xmlsnippets.so
%{_libdir}/geany/geanylatex.so
%{_libdir}/geany/geanymacro.so
%{_libdir}/geany/geanynumberedbookmarks.so
%{_libdir}/geany/geanyprj.so
%if %{gtk3_enable}
%{_libdir}/geany/debugger.so
%{_libdir}/geany/devhelp.so
%{_libdir}/geany/markdown.so
%{_libdir}/geany/multiterm.so
%{_libdir}/geany/scope.so
%{_libdir}/geany/webhelper.so
%{_libdir}/geany/geanydoc.so
%dir %{_libdir}/geany/geanypy
%dir %{_libdir}/geany/geanypy/geany
%dir %{_datadir}/geany/geanypy
%dir %{_datadir}/geany/geanypy/plugins
%{_libdir}/geany/geanypy.so
%{_libdir}/geany/geanypy/geany/__init__.py
%{_libdir}/geany/geanypy/geany/__init__.pyc
%{_libdir}/geany/geanypy/geany/console.py
%{_libdir}/geany/geanypy/geany/console.pyc
%{_libdir}/geany/geanypy/geany/loader.py
%{_libdir}/geany/geanypy/geany/loader.pyc
%{_libdir}/geany/geanypy/geany/manager.py
%{_libdir}/geany/geanypy/geany/manager.pyc
%{_libdir}/geany/geanypy/geany/plugin.py
%{_libdir}/geany/geanypy/geany/plugin.pyc
%{_libdir}/geany/geanypy/geany/signalmanager.py
%{_libdir}/geany/geanypy/geany/signalmanager.pyc
%{_datadir}/geany/geanypy/plugins/console.py
%{_datadir}/geany/geanypy/plugins/demo.py
%{_datadir}/geany/geanypy/plugins/hello.py
%endif
%files lang -f %{name}.lang
%changelog