Summary: C, C++, Objective C and Objective C++ front-end for the LLVM compiler. Name: clang Version: 3.9.1 Release: 1%{?dist} License: NCSA URL: http://clang.llvm.org Group: Development/Tools Vendor: VMware, Inc. Distribution: Photon Source0: http://releases.llvm.org/%{version}/cfe-%{version}.src.tar.xz %define sha1 cfe=95e4be54b70f32cf98a8de36821ea5495b84add8 BuildRequires: cmake BuildRequires: llvm-devel = %{version} BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: libxml2-devel BuildRequires: python2-devel Requires: libstdc++-devel Requires: ncurses Requires: llvm Requires: zlib Requires: libxml2 Requires: python2 %description The goal of the Clang project is to create a new C based language front-end: C, C++, Objective C/C++, OpenCL C and others for the LLVM compiler. You can get and build the source today. %package devel Summary: Development headers for clang Requires: %{name} = %{version}-%{release} %description devel The clang-devel package contains libraries, header files and documentation for developing applications that use clang. %prep %setup -q -n cfe-%{version}.src %build mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -Wno-dev .. make %{?_smp_mflags} %install [ %{buildroot} != "/"] && rm -rf %{buildroot}/* cd build make DESTDIR=%{buildroot} install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %check make %{?_smp_mflags} check %clean rm -rf %{buildroot}/* %files %defattr(-,root,root) %{_bindir}/* %{_libexecdir}/* %{_libdir}/*.so.* %{_datadir}/* %files devel %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/cmake/* %{_libdir}/clang/* %{_includedir}/* %changelog * Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com> 3.9.1-1 - Initial build.