File geany-plugins.spec of Package geany-plugins

#
# spec file for package geany-plugins
#
# Copyright (c) 2011 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:           geany-plugins
Version:        0.20
Release:        1
# FIXME: gendoc requires ctpl (http://ctpl.tuxfamily.org/)
# FIXME: check if webhelper plugin builds (last checked: 0.20)
License:        GPLv2+ ; GPLv3+
Summary:        A collection of different plugins for Geany
Url:            http://plugins.geany.org/geany-plugins/
Group:          Development/Tools/IDE
Source:         geany-plugins-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(geany)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtkspell-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(lua)
# Build of webhelper plugin fail on x86_64 for a weird reason :/
#BuildRequires:  pkgconfig(webkit-1.0)
Requires:       %{name}-lang = %{version}
Requires:       geany >= 0.19
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

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes %{buildroot}%{_datadir}/doc/%{name}
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc NEWS README
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/geany-plugins/
%endif
%{_libdir}/geany-plugins/
# Explicitly list plugins, so we don't lose any by accident
%{_libdir}/geany/addons.so
%{_libdir}/geany/codenav.so
%{_libdir}/geany/geanydoc.so
%{_libdir}/geany/geanyextrasel.so
%{_libdir}/geany/geanygdb.so
%{_libdir}/geany/geanyinsertnum.so
%{_libdir}/geany/geanylatex.so
%{_libdir}/geany/geanylipsum.so
%{_libdir}/geany/geanylua.so
%{_libdir}/geany/geanyprj.so
%{_libdir}/geany/geanysendmail.so
%{_libdir}/geany/geanyvc.so
%{_libdir}/geany/pretty-print.so
%{_libdir}/geany/shiftcolumn.so
%{_libdir}/geany/spellcheck.so
%{_libdir}/geany/treebrowser.so
%{_datadir}/doc/geany-plugins/
%{_datadir}/geany-plugins/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by