File kdevelop4-plugin-clang.spec of Package kdevelop4-plugin-clang
#
# spec file for package kdevelop4-plugin-clang
#
# Copyright (c) 2014 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/
#
%define rname kdev-clang
%define rversion 1.6.60
Name: kdevelop4-plugin-clang
Version: 1.6.60+20141111
Release: 0
Summary: Clang support for KDevelop
License: GPL-2.0+
Group: Development/Tools/IDE
Url: https://projects.kde.org/kdev-clang
Source0: %{rname}-%{rversion}.tar.xz
BuildRequires: fdupes
BuildRequires: kdevelop4-devel
BuildRequires: libkde4-devel
BuildRequires: libkdevplatform4-devel >= 1.6.60
BuildRequires: libqjson-devel
BuildRequires: llvm-clang-devel >= 3.4
Requires: /usr/bin/clang
Requires: kdevelop4
Provides: kdevelop4-cpp-parser
Conflicts: otherproviders(kdevelop4-cpp-parser)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Integrates Clang into KDevelop for C/C++/Objective-C language support.
%prep
%setup -q -n %{rname}-%{rversion}
# needed for later clang versions
sed -i '/#include <unordered_map>/a #include <clang-c/Documentation.h>' duchain/tuduchain.h
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%kde_post_install
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%{_kde4_appsdir}/kdevclangsupport/
%{_kde4_libdir}/libkdevclangduchain.so
%{_kde4_modulesdir}/kdevclangsupport.so
%{_kde4_servicesdir}/kdevclangsupport.desktop
%changelog