File gnome-code-assistance.spec of Package gnome-code-assistance
#
# spec file for package gnome-code-assistance
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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: gnome-code-assistance
Version: 3.16.1
Release: 0
Summary: Code Assistance Service for Code Editors
License: GPL-3.0+
Group: Development/Tools/Other
Url: https://git.gnome.org/browse/gnome-code-assistance
Source: http://download.gnome.org/sources/gnome-code-assistance/3.16/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM 0001-Add-libvala-0.36-support.patch dimstar@opensuse.org -- Add vala-0.36 support
Patch0: 0001-Add-libvala-0.36-support.patch
# PATCH-FIX-UPSTREAM 0003-Fix-compilation-with-vala-0.36.patch dimstar@opensuse.org -- Fix build with vala 0.36
Patch1: 0003-Fix-compilation-with-vala-0.36.patch
# PATCH-FIX-UPSTREAM 0005-Add-vala-0.38-support.patch zaitor@opensuse.org -- Fix build with vala 0.38
Patch2: 0005-Add-vala-0.38-support.patch
# PATCH-FIX-UPSTREAM Add-vala-0.40-support.patch dimstar@opensuse.org -- Fix build with vala 0.40, from git
Patch3: Add-vala-0.40-support.patch
# PATCH-FIX-UPSTREAM vala-0.46.patch boo#1158384 mgorse@suse.com -- build against Vala 0.46.
Patch4: vala-0.46.patch
# Generic build dependenciesa
BuildRequires: libtool
BuildRequires: pkgconfig(gio-2.0)
# Python backend
BuildRequires: dbus-1-python3
BuildRequires: python3
BuildRequires: python3-gobject
# C backend
%ifnarch ppc
BuildRequires: llvm-devel
%endif
# Ruby backend
BuildRequires: ruby >= 2.0
BuildRequires: rubygem(ruby-dbus)
# GJS Backend
BuildRequires: gjs
# Vala backend
BuildRequires: libvala-devel
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0) >= 2.36
BuildRequires: pkgconfig(glib-2.0) >= 2.36
BuildRequires: pkgconfig(gobject-2.0) >= 2.36
BuildRequires: pkgconfig(vapigen)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
gnome-code-assistance provides common code assistance
services for code editors (simple editors as well as IDEs). It is an effort to
provide a centralized code-assistance as a service for the GNOME platform
instead of having every editor implement their own solution.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -fiv
%configure \
%ifnarch ppc
--enable-c \
%endif
--enable-python \
--enable-ruby \
--enable-css \
--enable-js \
--enable-xml \
--enable-sh \
--enable-vala
make %{?_smp_mflags}
%install
%make_install
# fixup hasbangs of executable scripts, do not point to /usr/bin/env
find %{buildroot}%{_libexecdir}/%{name} -type f -exec \
sed -i "s|#!/usr/bin/env |#!/usr/bin/|" {} \;
%if 0%{?suse_version} <= 1320
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
%endif
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_datadir}/dbus-1/services/org.gnome.CodeAssist.v1.sh.service
%{_datadir}/glib-2.0/schemas/org.gnome.codeassistance.gschema.xml
%{_libexecdir}/%{name}/
%{_datadir}/dbus-1/services/org.gnome.CodeAssist.v1.*.service
%changelog