File gedit-code-assistance.spec of Package gedit-code-assistance

#
# spec file for package gedit-code-assistance
#
# Copyright (c) 2015 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/
#


Name:           gedit-code-assistance
Version:        3.16.0
Release:        0
Summary:        Plugin for gedit which provides code assistance for C, C++ and Objective-C
License:        GPL-3.0+
Group:          Productivity/Text/Editors
Url:            http://git.gnome.org/browse/gedit-code-assistance
Source:         http://download.gnome.org/sources/gedit-code-assistance/3.16/%{name}-%{version}.tar.xz
BuildRequires:  gnome-code-assistance
BuildRequires:  llvm-clang-devel >= 2.8
BuildRequires:  llvm-devel >= 2.8
BuildRequires:  vala
BuildRequires:  pkgconfig(gedit) >= 3.8
BuildRequires:  pkgconfig(gee-0.8)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gedit-code-assistance is a plugin for gedit which provides code
assistance for C, C++ and Objective-C by utilizing clang.

%package -n gedit-plugin-code-assistance
Summary:        Plugin for gedit which provides code assistance for C, C++ and Objective-C
Group:          Productivity/Text/Editors
Requires:       gedit
Provides:       %{name} = %{version}

%description -n gedit-plugin-code-assistance
gedit-code-assistance is a plugin for gedit which provides code
assistance for C, C++ and Objective-C by utilizing clang.

%prep
%setup -q

%build
export CC=clang
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir}/gedit/plugins/ -type f -name "*.la" -delete -print

%files -n gedit-plugin-code-assistance
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%dir %{_includedir}/gedit-3.0
%dir %{_includedir}/gedit-3.0/gca
%{_includedir}/gedit-3.0/gca/gca.h
%{_libdir}/gedit/plugins/codeassistance.plugin
%{_libdir}/gedit/plugins/libcodeassistance.so
%dir %{_libdir}/gedit/plugins/gca
%dir %{_libdir}/gedit/plugins/gca/indent-backends
%{_libdir}/gedit/plugins/gca/indent-backends/libgcaindentbackendc.so
%{_libdir}/gedit/plugins/gca/indent-backends/gcaindentbackendc.plugin
%dir %{_datadir}/gedit/plugins/codeassistance
%{_datadir}/gedit/plugins/codeassistance/codeassistance.css
%dir %{_datadir}/appdata
%{_datadir}/appdata/gedit-code-assistance.metainfo.xml
%{_datadir}/vala/vapi/gca.vapi

%changelog
openSUSE Build Service is sponsored by